Project | Mobile
Mobile Testing on Real Devices (BrowserStack)
A mobile-first shop tested with Selenium on real phones through BrowserStack Local (layout, touch targets, keyboards, iOS zoom, checkout), a native iOS app tested with Appium XCUITest on a real iPhone, all within a 100-minute trial.
The same mobile web suite passed on Safari on a real iPhone and Chrome on a real Android phone, and the Android phone found a failure emulation never showed: with the keyboard open, the tap missed the checkout button.
Evidence checked 17 Oct 2026 | Real-device evidence and CI workflow
On this page
Problem and purpose
Emulators and desktop browsers miss what only a phone has: the real Safari engine, the on-screen keyboard, touch, OS behaviour. This project runs the same suite on emulation and on real devices, and shows how a real-device-only failure was diagnosed with a probe instead of guesswork.
Architecture
this machine: PocketShop :4330 ◄── BrowserStack Local tunnel ◄── real iPhone (Safari) / real Galaxy S24 (Chrome)
▲
Selenium tests ──── WebDriver ──► BrowserStack hub ──────────────┘
Appium tests ──── WebDriver ──► BrowserStack hub ──► real iPhone ──► sample app (XCUITest)Technology and tools
| Area | Tools |
|---|---|
| Web | Selenium 4 against PocketShop (in the repository), served by the JDK HTTP server, reached by real devices through BrowserStack Local |
| Native | Appium Java client 11, XCUITest, BrowserStack's sample iOS app on App Automate |
| Devices | iPhone 16 (iOS 18, Safari and native), Samsung Galaxy S24 (Android 14, Chrome), Chrome mobile emulation |
| Tests | TestNG, Java 21: 13 web tests, 5 native tests |
| CI | GitHub Actions: emulation on every push; real devices only when started by hand, so a push never spends minutes |
Engineering decisions and approach
- Page objects for the web shop (a header component, one class per page) and screen objects for the native app; tests hold no locators
- Develop on Chrome mobile emulation; spend device minutes only to prove and to diagnose
- One device session per suite; state reset through localStorage instead of new sessions
- Native locators from one discovery session (element trees saved to files): no trial and error on the device
- A probe instead of a guess when the real Android phone failed
- An app in the repository reached through a tunnel: no bot checks, no shared environment
Test scope and execution approach
Project-specific checks and execution details documented in the repository:
- Phone checks: viewport meta, one column, no sideways scrolling, hamburger menu, 44 px touch targets
- Keyboards and autofill per field, and 16 px inputs against the iOS Safari zoom-on-focus problem
- Found only on the real Android phone: with the keyboard open, the automated tap landed on the page, not the button
- Native iOS: text on the real keyboard, a native alert, a web view, tab navigation
- About 9.5 Automate and 1.3 App Automate minutes used for everything, including the failed tries
- Design notes and 52 interview questions on real-device testing (Markdown + PDF)
Results with dated evidence
Historical repository or workflow evidence · older evidence; recheck the linked source
Real-device evidence and CI workflow
The same mobile web suite passed on Safari on a real iPhone and Chrome on a real Android phone, and the Android phone found a failure emulation never showed: with the keyboard open, the tap missed the checkout button.
Evidence checked: | Open dated evidence
Evidence explorer
Static screenshots are labelled as images; dated workflow links identify the execution evidence and its check date.
Static material from the public repository. The linked verification record was checked 2026-10-17; that date is not a screenshot capture date.
Dated workflow record
Evidence checked 2026-10-17. Open Real-device evidence and CI workflow
Local setup and execution
mvnw.cmd test :: web suite, Chrome mobile emulation (free)
mvnw.cmd test -Dtarget=iphone :: web suite, Safari on a real iPhone
mvnw.cmd test -Dtarget=android :: web suite, Chrome on a real Android phone
mvnw.cmd test -Dsuite=app :: native app, real iPhoneWorkflow and reports
Known limitations
- Two phones; a product would choose its device matrix from analytics
- The native part uses BrowserStack's sample app: the Sauce Labs demo app could not be re-signed for BrowserStack's devices
- The device matrix covers one iPhone and one Android phone; it is not a representative customer device matrix.