0% found this document useful (0 votes)
12 views2 pages

EDrive SDET Questions

The document outlines various testing and coding tasks, including testing a POST request that creates data and a scheduled job for sending emails, strategies for testing microservices, automation for API testing, and coding challenges involving data processing and SQL queries. It also includes mathematical problems related to gift distribution and construction time calculations. Each section requires specific solutions or strategies to be implemented.

Uploaded by

mrcooldude1239
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views2 pages

EDrive SDET Questions

The document outlines various testing and coding tasks, including testing a POST request that creates data and a scheduled job for sending emails, strategies for testing microservices, automation for API testing, and coding challenges involving data processing and SQL queries. It also includes mathematical problems related to gift distribution and construction time calculations. Each section requires specific solutions or strategies to be implemented.

Uploaded by

mrcooldude1239
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

1.

Use case
a) A POST request creates some data in table t (id, description, timestamp, emailSent). For
e.g. (1, ‘This is Test Description’, 2020-05-27 00:00:00, ‘Yes’)
b) A scheduled job reads data from above table, sends email for newly created data, and
marks it as emailSent as ‘Yes’. The job runs every 24 hours.

How will you test it? Will you wait for 24 hours after POST request? If not, what all
options will you try out?

2. How will you test a microservice A which is dependent on another microservice B which is
further dependent on microservice C and so on? What will be your testing strategy for testing
microservice A?

3. Use case
a) POSTS data to an API test.bold.com/api/v1/create with request body
{ planName:”<SomeName>”, city : “<city>”, description : “<description>” } - does allow
duplicate entries with same name
b) GETS data using test.bold.com/api/v1/{planName}
Write automation (in any language, tool specific language etc.) which tests the functionality of POST
request.
Try to make it scalable that it can be used in any test environment without much changes.

4.
A file has data in the following format
Id | Name | Surname | Time
1 | Arun | Kumar | 2020-05-27 02:00:56
2 | Prakhar| | 2019-01-01 00:00:00
3 | Aman | Sharma | 2020-05-20 17:54:34
And so on ……

Write a code to find Name (only Name) of all individuals added after 2019-05-09. Any
language/pseudo-code will work.

5.
Year Month Product Revenue
2019 Jan ABC $2,732.00
2019 Feb ABC $2,162.00
2019 Mar ABC $3,829.00
2019 Apr ABC $3,527.00
2019 May ABC $2,983.00
2019 Jun ABC $1,987.00
2019 Jul ABC $3,249.00
2019 Aug ABC $2,792.00
2019 Sep ABC $3,172.00
2019 Oct ABC $3,482.00
2019 Nov ABC $1,926.00
2019 Dec ABC $2,437.00
2019 Jan XYZ $2,692.00
2019 Feb XYZ $3,278.00
2019 Mar XYZ $2,583.00
2019 Apr XYZ $3,628.00
2019 May XYZ $3,199.00
2019 Jun XYZ $1,892.00
2019 Jul XYZ $2,982.00
2019 Aug XYZ $2,937.00
2019 Sep XYZ $3,283.00
2019 Oct XYZ $3,398.00
2019 Nov XYZ $1,923.00
2019 Dec XYZ $2,573.00

Considering the ProductRevenue table design and data, as shown above, write a SQL query for each of
the following:-

a) For the ABC product, find the months which have above the monthly average Revenue
for the year 2019?
b) Find the months in which XYZ product has a better Revenue than ABC product?
c) Which quarter (Q1 Jan-Mar & so on) has the best Revenue?

6. On Christmas eve, a certain number of gifts would be distributed equally among 1080 people. On
Christmas eve 240 people were absent. Hence, each person got 8 more gifts. How many gifts would each
person have got if no one was absent on Christmas eve?

7. The building can be constructed by 14 workers if they work for 8 hrs/day. If the additional 14 workers
join them, it would take 7 lesser days to construct the same building. If the 8 workers take 24.5 days to
construct the building, how many hours will it take for the 4 workers to construct the building?

You might also like