Amazon Interview Question
Quality Assurance EngineersCountry: India
Ask following clarifying questions:
1. What is the maximum length of string that the server accepts?
2. What should be the behavior in case the length of the string is more than the maximum length allowed.
3. Does the server return date and time in some specific time zone? If so, which time zone?
4. What is the expected load on the server?
5. What is the acceptable latency requirements?
Once the interviewer clarifies the above questions, then start writing the tests:
1. Functional:
Invalid:
a. Try with an empty string.
b. Try passing Null as the input string.
Valid:
Check the correctness of response in all the below test-cases
c. Try passing strings with special characters.
d. Try passing strings with unicode characters.
e. Try dates which are on the last day of the month for all 12 months.
f. Try dates which are on the last day of February for a leap year and for non-leap year.
g. In case of time zone specific requirements, simulate user requests from geo locations in different time zones.
Boundary Value Tests:
h. Try passing string with length one less than the maximum allowed length.
i. Try passing string with length equal to the maximum allowed length.
j. Try passing string with length one more than the maximum allowed length.
2. Security:
a. Check for Denial of Service attacks.
b. Check for SQL and script injection vulnerabilities, by passing such strings as input.
c. What are the different ways, client can send request to the server?
3. Performance:
a. Try hitting the server with fixed number of concurrent requests and record the response time metrics.
b. Try hitting the server with large number of concurrent requests and see upto what load the server responds within an acceptable response time limit.
1.Verify if the string sent by client is actually appended in response string.
2.Verify if the string received by server is actually what the client has sent(if it has not been altered by some third party in between)
3.Verify the string sent by server is actually received by client
4.verify if string is not null
GUI Testing
- Khyati Sehgal September 22, 20151. String format should be same both sides.
2. Check if display of the string should be same.
3. Check the date format, according to the current location.
4. Check if the client is in INDIA and server in US, then the date time should be correctly appended.
Web Services Testing
The request should have proper authentication for client
The request should have proper authentication for server
The request should have proper authorization for client
The request should have proper authorization for server.
In case of server down, , message should not be lost.
Check the history of messages transferring.
Check the proper fingerprinting, packet transfer norms should be applied both sides.
Check the timeout on both client, server side.
Check the maximum length of string which can be sent.