Amazon Interview Question for Quality Assurance Engineers

Country: United States
Interview Type: Phone Interview

Comment hidden because of low score. Click to expand.
of 2 vote

Method 1:
The class that provides the GPS coordinates from the phone's sensor should be behind an interface and the concrete class not referenced directly by the code being tested. It should be passed into the constructor or created via dependency injection.
Create a test object that implements the interface and use dependency injection/pass it in to the code being tested. The test object returns pre-determined test coordinates allowing you to test the location services logic.

Method 2:
Instead of using an interface, you could use a mocking framework and do the same thing.

- shinsetsu October 21, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
of 1 vote

Mocking is a good way to test, but the interface should allow us to mock the concrete class.

- siva October 21, 2013 | Flag
Comment hidden because of low score. Click to expand.
of 1 vote

Test the location service of smartphone
1. Check network connectivity, open gprs, gps and then open the google map and find your location and match with your exact location.
2. Don't open the gps, just open gprs and find your location on map.
3. Try to find the location while moving on high speed vehicle i.e. bike, car etc.
4. Try to find location in rural area.
5. Try to find the location on mountain area, in valley.
6. Find your location on the top of the very high building.
7. Try to find the location in river, sea on boat etc.
8. Open gps find location, pause application and close gps and move to new location then again open gps and resume application and check your current location.
9. Create VPN and use location map application over VPN and check the accuracy of the location.

- naps April 30, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
of 0 vote

1) Take the smartphone at various places like (basement, on the roof, inside a room), to check the accuracy of location
2) Use the service when you are moving
3) You may try it at places like rivers, mountains to check if its working over there or not.

- Gaurav Khurana November 27, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
of 0 vote

- what happen when a phone call rings while searchin
- When mob battery if about to die.
- When plugin the charger
- when gps is switched off during search
- when there is not enough space in phone.
- when a new update is going on and memory gets full in phone
- when phone get auto switched off and resumed.
- when a new message or email notification comes.

- manoj June 04, 2016 | Flag Reply

Add a Comment

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.


is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More


CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More