Skip to content
Bugwise
Menu
Features & Flows

Location and Maps

Test features that use the user's location and show maps, from accuracy and simulated locations to pins, clusters, addresses, delivery zones and live courier tracking, then hunt five bugs in a delivery app's map.

35–50 min intermediate Mobile & web

A food delivery app launched in a new city. In the office, everything worked: the map showed the restaurants, “Use my location” filled in the address, the courier moved smoothly across the screen. On the first evening, customers on a river island could order but never received anything. People in tall apartment blocks got their food delivered to the building next door. And a courier’s icon kept jumping back two streets, so customers called support asking why their order was going the wrong way.

None of those bugs could be found by sitting at one desk. Location features depend on where you are, how well the phone knows it, and how it changes over time. This lesson shows how to test them without travelling around the city.

Part Not started

How a phone knows where it is

A phone combines several sources and picks the best one available:

SourceTypical accuracyNotes
GPS and other satellite systemsA few meters outdoorsNeeds open sky. Slow for the first position. Weak indoors and between tall buildings.
Wi-Fi networks nearby10–100 mFast, works indoors, needs Wi-Fi turned on (not necessarily connected).
Mobile network cellsHundreds of meters to kilometersWorks almost everywhere, very rough.
IP address (desktop browsers)A city, sometimes the wrong oneThe IP address is the number your internet provider gives your connection, and it only hints at a region. A VPN (a service that sends your traffic through another place) or a phone used as a hotspot can put you in another city or country.

Every position comes with an accuracy radius: “you are probably within 35 m of this point”. Apps should use it. A position that’s accurate to ±900 m must not be turned into an exact street and house number. This is location accuracyLocation accuracyThe radius around a reported position within which the real position probably lies, such as ±5 m outdoors or ±900 m indoors.Open in glossary →, and it’s one of the most common sources of location bugs.

Pick a condition below and watch the reported position and its radius:

Where does the phone think you are?

✕ real position● reported position○ accuracy radius
Accuracy radius
±5 m
Off by (this time)
4 m
Time to first position
2–5 s
Source
GPS + Wi-Fi + cell

Good enough to find the right building entrance.

What this means for testing

Check this part

  1. The phone reports a position with an accuracy radius of ±900 m. What should a delivery app do?

  2. Why can a laptop browser place you in another city?

Where a phone's position comes from, what the accuracy radius means, and why indoors, tall buildings and laptops give very different results.

Part Not started

Testing anywhere without moving

You can’t walk to the edge of every delivery zone. Instead, you simulate the position. Every platform has a way to do it, and testers use it daily. On a real deviceReal deviceA physical phone or tablet used for testing, as opposed to an emulator or simulator.Open in glossary → this is called a mock locationMock locationA simulated position that replaces the device's real location, used to test places and routes without travelling.Open in glossary →.

You don’t need all of these on day one. The web browser way needs nothing installed, so start there if the product has a website. The iOS Simulator needs a Mac with Xcode, and the Android Emulator comes with Android Studio (both are explained in Simulators and Emulators). Real phones take the most setup, so ask a developer to help the first time.

Most of these tools ask for coordinates: two numbers, latitude and longitude, that pin a point on Earth (central Belgrade is 44.8176, 20.4569). To get them, right-click a place in Google Maps on a computer and click the numbers to copy them.

Dev note: Coordinates and routes

The Android emulator console command adb emu geo fix 20.4569 44.8176 is one that takes longitude first. iOS routes come from GPX files: a list of points with times, which developers add to the Xcode project.

What to simulate

Check this part

  1. Where do you simulate a location in Chrome on a laptop?

  2. You need to check that the app refreshes restaurants when the user lands in another city. What do you simulate?

How to fake a location and a route on iOS, Android and in the browser, so you can test any city, border or journey from your desk.

Part Not started

Maps, addresses and zones

The map screen

CheckWhat good looks like
Pins and clustersZoomed out, nearby pins group into a cluster with a number. The number equals the pins you see after zooming in.
Map and list togetherThe list shows the same places as the map. After “Search this area” or a filter, both update.
Your location dotShown where you are, with an accuracy circle when it’s rough. A “recenter” button brings it back.
GesturesPinch to zoom, drag, double-tap, two-finger rotate. When a map sits inside a scrolling page, the user can still scroll past it.
Empty and error statesNo results in this area, map failed to load, offline. The app still lets the user continue.
AccessibilityA map is hard to use with a screen readerScreen readerSoftware that reads the screen aloud for blind and low-vision users, like VoiceOver or TalkBack.Open in glossary →. There must be a list alternative with the same information.
Dark mode and languagesMap style matches the theme. Labels and units follow the user’s language and region.

Positions to addresses and back

Turning an address into coordinates is called geocodingGeocodingTurning an address into map coordinates; reverse geocoding turns coordinates into an address.Open in glossary →, and turning coordinates into an address is reverse geocoding. Both are guesses made by a map service, so test:

  • Address formats from other countries: house number before or after the street, apartment numbers, postcodes with letters.
  • Typos and local names: “Knez Mihailova” vs “Kneza Mihaila”, old street names.
  • New buildings that the map service doesn’t know yet. The user must be able to move the pin and still order.
  • Distances and units: kilometers or miles by region, and straight-line distance (“0.4 km”) vs real route distance, which can be much longer across a river.
  • Number formats: coordinates or distances that show “44,8176” in some languages and “44.8176” in others, and must still be read correctly.

Delivery zones are boundary testing

A delivery zone (also used for pricing zones, service areas and store pickup) is a shape on the map. Apps check whether a point is inside it, and some also send events when a user enters or leaves it: that’s a geofenceGeofenceA virtual boundary on the map; the app checks whether a point is inside it or is notified when the user enters or leaves it.Open in glossary →.

Test it like any boundary, with boundary value analysis:

  • Just inside and just outside each edge.
  • Corners and odd shapes. A zone shaped like an L or with a hole (a park, a river) is a classic bug: the app checks the rectangle around the zone instead of its real outline.
  • Two zones touching: which fee or restaurant set applies on the line between them?
  • The same check everywhere: the restaurant list, the checkout and the server must agree. Saying “We deliver here” and then failing at payment is a bug.

Check this part

  1. Zoomed out, a cluster shows 2. Zoomed in, you count 3 pins in that area. Is that a bug?

  2. The delivery zone is L-shaped. Which test point is most likely to reveal a bug?

Map screens (pins, clusters, map and list in sync), turning positions into addresses and back, and delivery zones as boundary testing.

Part Not started

Movement and live tracking

Live tracking (couriers, taxis, runs, deliveries) adds time to every problem above. The app receives a stream of positions, often through a shaky mobile connection. From them it also works out the ETA (estimated time of arrival): “Your order arrives in 6 min”.

SituationWhat can go wrongWhat to check
Late updatesAn older position arrives after a newer oneThe marker never jumps back. Updates older than the last one are ignored.
GPS jumpsOne update is 300 m off, then it’s backThe app smooths the path: the marker doesn’t teleport and the ETA doesn’t jump around
Tunnels and no signalNo updates for two minutes“Last updated 2 min ago” instead of a frozen icon that looks live
Stale position (old, no longer true)The app keeps the position from app startDistances, address and results update when the user moves
App in the background (the user switched to another app or locked the phone, see Background and Foreground)The OS limits or stops location updatesTracking resumes correctly when the app returns. The app tracks in the background only if the feature needs it.
BatteryHigh-accuracy GPS all the time drains the battery fastAccuracy drops when it’s not needed. Location stops when the feature ends.

Geofence events

Apps can ask the OS to notify them when the user enters or leaves an area: “Your order is almost here”, “Welcome to the store, here’s your loyalty card”. Test entering and leaving with a simulated route (the moving presets and route playback from Testing anywhere without moving), staying on the edge, entering twice in a row, and doing it with the app closed. Geofence events are not instant: the OS can deliver them minutes late to save battery, so agree with the team what “on time” means.

Dev note

On Android, geofences are handled by Google Play services and can be delayed by battery restrictions such as Doze. On iOS, region monitoring works with the app closed but needs “Always” location permission. Both platforms limit how many regions one app can monitor at once.

Check this part

  1. The courier's icon jumps back two streets, then forward again. What's the most likely cause?

  2. Tracking shows no updates for two minutes in a tunnel. What should the screen show?

Live tracking, late and jumping GPS updates, stale positions, background location and geofence events.

Part ProNot started

Lab: find the bugs

This is a test build of QuickBite’s map screen. Under the phone is the tester’s mock location tool: change the simulated position, zoom the map, order from a restaurant and step through the courier’s GPS updates.

The red dashed line is the delivery area. Try each simulated position and compare what the app says with what the map shows.

🐞 Bug hunt: QuickBite map and tracking

This demo has 5 hidden bugs. Explore it like a tester, then check your findings.

Found0/5
9:41
42
--- delivery area

Delivering to your location

Cara Dušana 12

✓ We deliver here

7 restaurants nearby

Tester tools · mock location

Order from any restaurant to start live tracking. The courier’s updates arrive one by one, as on a real network.

  1. 1

    Hint: Simulate Ada Ciganlija. Is the blue dot inside the dashed line? Then try to order.

  2. 2

    Hint: Simulate Indoors, Wi-Fi only.

  3. 3

    Hint: Note a restaurant's distance, then simulate a different position.

  4. 4

    Hint: Order something, then step through the courier updates and watch the timestamps.

  5. 5

    Hint: Compare the zoomed-out clusters with the pins after zooming in.

The correct behavior is useful too: Zemun is correctly reported as outside the area, the blue dot and the address follow the simulated position, and the northern cluster count matches its pins.

Check this part

  1. The app says "We deliver here", but checkout fails with "outside the delivery area". What does this tell you?

  2. Which tester tool made it possible to find the distance bug without moving?

A delivery app with a map, a delivery zone and courier tracking, a mock location tool, and five bugs to find.

The rest of this lesson is in Bugwise Pro

The last parts of every lesson are part of Bugwise Pro. Sign in to unlock them if you have it.

Part ProNot started

Example test cases

Before you start, set up one way to simulate a location (see Testing anywhere without moving) and ask the team for the outline of the delivery zone. TC-LOC-005 and TC-LOC-006 control the courier’s positions, not your own, so they need a test build or a developer’s help. If you can’t get that yet, skip them and come back later.

TC-LOC-001A rough position asks the user to confirm the address

Preconditions

  • Location allowed with approximate location, or simulated position with ±500 m or worse

Steps

  1. Open the address screen
  2. Tap Use my current location

Expected result

The app shows the area, not an exact house number, and asks the user to confirm or move the pin before ordering.

TC-LOC-002Delivery zone check at the edges and corners

Preconditions

  • Zone outline from the team, including any corners or holes

Steps

  1. Simulate a point just inside each edge
  2. Simulate a point just outside each edge
  3. Simulate a point in each missing corner or hole
  4. For each point, try to complete checkout

Test data

Points about 50 m inside and 50 m outside each edge

Expected result

Inside points can order. Outside points see "Outside our delivery area" before checkout. The app and checkout always agree.

TC-LOC-003Results, distances and fees update after a location change

Preconditions

  • A way to simulate the location is set up

Steps

  1. Simulate a position in district A and note the list and distances
  2. Change the simulated position to district B
  3. Return to the list

Expected result

Distances, sorting by distance, the address and the delivery fee all reflect district B.

TC-LOC-004Cluster numbers match the pins

Steps

  1. Zoom out until places cluster
  2. Note the number on each cluster
  3. Zoom in on each cluster and count the pins

Expected result

Each cluster number equals the pins it contains.

TC-LOC-005Tracking ignores older GPS updates

Preconditions

  • Test build or tool that can send courier positions with custom timestamps

Steps

  1. Start tracking an order
  2. Send positions at t = 10, 20, 30 s
  3. Send a position with t = 15 s
  4. Send t = 40 s

Expected result

The marker never moves back and the ETA never increases because of the t = 15 s update.

TC-LOC-006Tracking shows when the position is stale

Preconditions

  • Test build or tool that can send courier positions

Steps

  1. Start tracking
  2. Stop sending courier positions for 2 minutes

Expected result

The screen says when the position was last updated. It does not look live.

TC-LOC-007Location works in the browser with a simulated position

Preconditions

  • Chrome or Edge on a computer

Steps

  1. Open DevTools › Sensors and set the location to the test city
  2. Reload the page and tap Use my location
  3. Change the location to another city and repeat
  4. Block location for the site (the icon next to the address bar), reload and search for an address by typing

Expected result

The address and results follow each simulated city. With location blocked, address search by typing still works.

Tip: click a test case to expand it.

Check this part

  1. In the delivery zone test case, what must always be true?

  2. In the tracking test case, what should happen when the t = 15 s update arrives after t = 30 s?

Ready-made test cases for accuracy, mock locations, clusters, zone edges, out-of-order tracking updates, stale positions and web location.

The rest of this lesson is in Bugwise Pro

The last parts of every lesson are part of Bugwise Pro. Sign in to unlock them if you have it.

Checklist

Location and maps

0 of 12 checked

Key takeaways

  • Every position has an accuracy radius. Apps must not turn a rough position into an exact address.
  • Results differ outdoors, indoors, between tall buildings, with approximate location and on a laptop. Test them all.
  • Use mock locations (Simulator, emulator, Developer options, DevTools Sensors) to test any place, route or jump from your desk.
  • Map checks: clusters match pins, map and list stay in sync, recenter works, and there’s an accessible list alternative.
  • Geocoding is a guess: test other address formats, typos, new buildings and units.
  • Test delivery zones as boundaries: edges, corners, holes, and the same answer in the app and on the server.
  • Live tracking must ignore late updates, smooth jumps, show stale positions honestly and stop using GPS when it’s done.

Finished this page?Nice work, this page is complete!

Mark it as done to track your progress. It's saved in this browser, no account needed.

Its cards are now in your Bites review ⚡
Esc

Type to search the whole site.