Amazon Interview Question
Quality Assurance EngineersCountry: United States
Interview Type: Phone Interview
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.
- 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.
Method 1:
- shinsetsu October 21, 2013The 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.