TravelGo Mobile
The mobile twin of the TravelGo web application, with the same twenty-four services, the same fares and the same timings. The seat map is what makes it worth automating: every berth is a button with its own id that says whether it is free, selected or sold, so a test never has to read a colour off the screen.
This application is for practice purpose, for automation testers.
| Application | TravelGo Mobile |
| Package | in.co.jstestingacademy.travelgo |
| First activity | .LoginActivity |
| Login | student / practice123 |
| Screens | 9 |
| Minimum Android | 7.0 (API 24) |
| Download | Download the APK (ZIP) – the zip holds the APK and a README |
| Access | Inside the Lifetime Membership – sign in first |
- Two dropdowns and a swap button that changes both at once
- A date picker that refuses yesterday and anything past sixty days
- A bus type filter and four sort orders over the same list
- A seat map with a lower and an upper deck, where sold berths cannot be tapped
- A ceiling of six seats a ticket, refused with its own message
- A passenger form with five rules, each refusing in its own words
- A PNR generated at the end – carry it the way you carry an id from a POST
- Cancelling behind a confirm dialog, after which the seats really go back on sale
Everything is held in memory, so closing the app is the reset. No server, no network, no leftovers from the last run.
The screens, and how to reach them
Every control carries a resource id and an accessibility description, so you can locate it either way. No XPath over the whole tree, and no counting positions.
.LoginActivitySign in
| Resource id | Appium locator |
|---|---|
login_username | AppiumBy.id("in.co.jstestingacademy.travelgo:id/login_username") |
login_password | AppiumBy.id("in.co.jstestingacademy.travelgo:id/login_password") |
login_remember | AppiumBy.id("in.co.jstestingacademy.travelgo:id/login_remember") |
login_submit | AppiumBy.id("in.co.jstestingacademy.travelgo:id/login_submit") |
login_error | AppiumBy.id("in.co.jstestingacademy.travelgo:id/login_error") |
login_go_register | AppiumBy.id("in.co.jstestingacademy.travelgo:id/login_go_register") |
login_fill_demo | AppiumBy.id("in.co.jstestingacademy.travelgo:id/login_fill_demo") |
.RegisterActivityCreate account
| Resource id | Appium locator |
|---|---|
register_full_name | AppiumBy.id("in.co.jstestingacademy.travelgo:id/register_full_name") |
register_username | AppiumBy.id("in.co.jstestingacademy.travelgo:id/register_username") |
register_email | AppiumBy.id("in.co.jstestingacademy.travelgo:id/register_email") |
register_phone | AppiumBy.id("in.co.jstestingacademy.travelgo:id/register_phone") |
register_password | AppiumBy.id("in.co.jstestingacademy.travelgo:id/register_password") |
register_confirm | AppiumBy.id("in.co.jstestingacademy.travelgo:id/register_confirm") |
register_terms | AppiumBy.id("in.co.jstestingacademy.travelgo:id/register_terms") |
register_error | AppiumBy.id("in.co.jstestingacademy.travelgo:id/register_error") |
register_submit | AppiumBy.id("in.co.jstestingacademy.travelgo:id/register_submit") |
.HomeActivityHome
| Resource id | Appium locator |
|---|---|
home_welcome | AppiumBy.id("in.co.jstestingacademy.travelgo:id/home_welcome") |
home_count | AppiumBy.id("in.co.jstestingacademy.travelgo:id/home_count") |
home_search | AppiumBy.id("in.co.jstestingacademy.travelgo:id/home_search") |
home_bookings | AppiumBy.id("in.co.jstestingacademy.travelgo:id/home_bookings") |
home_bookings_sub | AppiumBy.id("in.co.jstestingacademy.travelgo:id/home_bookings_sub") |
home_note | AppiumBy.id("in.co.jstestingacademy.travelgo:id/home_note") |
.SearchActivitySearch buses
| Resource id | Appium locator |
|---|---|
search_from | AppiumBy.id("in.co.jstestingacademy.travelgo:id/search_from") |
search_to | AppiumBy.id("in.co.jstestingacademy.travelgo:id/search_to") |
search_swap | AppiumBy.id("in.co.jstestingacademy.travelgo:id/search_swap") |
search_date | AppiumBy.id("in.co.jstestingacademy.travelgo:id/search_date") |
search_error | AppiumBy.id("in.co.jstestingacademy.travelgo:id/search_error") |
search_submit | AppiumBy.id("in.co.jstestingacademy.travelgo:id/search_submit") |
.ResultsActivityBuses
| Resource id | Appium locator |
|---|---|
results_type | AppiumBy.id("in.co.jstestingacademy.travelgo:id/results_type") |
results_sort | AppiumBy.id("in.co.jstestingacademy.travelgo:id/results_sort") |
results_count | AppiumBy.id("in.co.jstestingacademy.travelgo:id/results_count") |
results_empty | AppiumBy.id("in.co.jstestingacademy.travelgo:id/results_empty") |
results_list | AppiumBy.id("in.co.jstestingacademy.travelgo:id/results_list") |
.SeatsActivityChoose seats
| Resource id | Appium locator |
|---|---|
seats_operator | AppiumBy.id("in.co.jstestingacademy.travelgo:id/seats_operator") |
seats_detail | AppiumBy.id("in.co.jstestingacademy.travelgo:id/seats_detail") |
seats_lower_label | AppiumBy.id("in.co.jstestingacademy.travelgo:id/seats_lower_label") |
seats_lower | AppiumBy.id("in.co.jstestingacademy.travelgo:id/seats_lower") |
seats_upper_label | AppiumBy.id("in.co.jstestingacademy.travelgo:id/seats_upper_label") |
seats_upper | AppiumBy.id("in.co.jstestingacademy.travelgo:id/seats_upper") |
seats_summary | AppiumBy.id("in.co.jstestingacademy.travelgo:id/seats_summary") |
seats_error | AppiumBy.id("in.co.jstestingacademy.travelgo:id/seats_error") |
seats_next | AppiumBy.id("in.co.jstestingacademy.travelgo:id/seats_next") |
.PassengerActivityPassenger details
| Resource id | Appium locator |
|---|---|
passenger_journey | AppiumBy.id("in.co.jstestingacademy.travelgo:id/passenger_journey") |
passenger_seats | AppiumBy.id("in.co.jstestingacademy.travelgo:id/passenger_seats") |
passenger_name | AppiumBy.id("in.co.jstestingacademy.travelgo:id/passenger_name") |
passenger_age | AppiumBy.id("in.co.jstestingacademy.travelgo:id/passenger_age") |
passenger_phone | AppiumBy.id("in.co.jstestingacademy.travelgo:id/passenger_phone") |
passenger_email | AppiumBy.id("in.co.jstestingacademy.travelgo:id/passenger_email") |
passenger_gender | AppiumBy.id("in.co.jstestingacademy.travelgo:id/passenger_gender") |
passenger_female | AppiumBy.id("in.co.jstestingacademy.travelgo:id/passenger_female") |
passenger_male | AppiumBy.id("in.co.jstestingacademy.travelgo:id/passenger_male") |
passenger_terms | AppiumBy.id("in.co.jstestingacademy.travelgo:id/passenger_terms") |
passenger_error | AppiumBy.id("in.co.jstestingacademy.travelgo:id/passenger_error") |
passenger_payable | AppiumBy.id("in.co.jstestingacademy.travelgo:id/passenger_payable") |
passenger_pay | AppiumBy.id("in.co.jstestingacademy.travelgo:id/passenger_pay") |
.TicketActivityTicket
| Resource id | Appium locator |
|---|---|
ticket_pnr | AppiumBy.id("in.co.jstestingacademy.travelgo:id/ticket_pnr") |
ticket_route | AppiumBy.id("in.co.jstestingacademy.travelgo:id/ticket_route") |
ticket_operator | AppiumBy.id("in.co.jstestingacademy.travelgo:id/ticket_operator") |
ticket_date | AppiumBy.id("in.co.jstestingacademy.travelgo:id/ticket_date") |
ticket_passenger | AppiumBy.id("in.co.jstestingacademy.travelgo:id/ticket_passenger") |
ticket_seats | AppiumBy.id("in.co.jstestingacademy.travelgo:id/ticket_seats") |
ticket_fare | AppiumBy.id("in.co.jstestingacademy.travelgo:id/ticket_fare") |
ticket_bookings | AppiumBy.id("in.co.jstestingacademy.travelgo:id/ticket_bookings") |
ticket_home | AppiumBy.id("in.co.jstestingacademy.travelgo:id/ticket_home") |
.BookingsActivityMy bookings
| Resource id | Appium locator |
|---|---|
bookings_count | AppiumBy.id("in.co.jstestingacademy.travelgo:id/bookings_count") |
bookings_empty | AppiumBy.id("in.co.jstestingacademy.travelgo:id/bookings_empty") |
bookings_list | AppiumBy.id("in.co.jstestingacademy.travelgo:id/bookings_list") |
booking_pnr | AppiumBy.id("in.co.jstestingacademy.travelgo:id/booking_pnr") |
booking_route | AppiumBy.id("in.co.jstestingacademy.travelgo:id/booking_route") |
booking_detail | AppiumBy.id("in.co.jstestingacademy.travelgo:id/booking_detail") |
booking_status | AppiumBy.id("in.co.jstestingacademy.travelgo:id/booking_status") |
booking_cancel | AppiumBy.id("in.co.jstestingacademy.travelgo:id/booking_cancel") |
How to practise on it
Eight steps, in order. Nothing here needs a server or test data — install it, point Appium at it, and start.
| 1. Set the device up | A phone or an emulator that adb devices can see. Turn on Developer options, then USB debugging. Android 7.0 or newer. |
| 2. Install the app | adb install jsta-shopkart.apk, or copy the file to the phone and open it. Allow installing from this source when Android asks. |
| 3. Start Appium | Appium 2 with the UiAutomator2 driver, started with the base path /wd/hub. Check it is up at http://127.0.0.1:4723/wd/hub/status. |
| 4. Point your test at the app | Set appPackage and appActivity from the table above. Nothing else is needed — no server, no seed data, no network. |
| 5. Find your first element | Use the resource id or the accessibility description from the screen tables below. Both work. Never locate by position: that is the habit this app exists to break. |
| 6. Sign in | Register your own account, or press Fill in the practice account and sign in as student / practice123. |
| 7. Work through the screens | Each one below lists what it is there to teach. Start with the simple ones and keep the awkward ones — the gestures, the long list, the WebView — for when the straightforward parts pass reliably. |
| 8. Check your work twice | Turn on Connect to the live API in Settings, do the same thing again, and read the record back through the API. If both agree, your test is checking something real. |
Where the data goes
The app has two modes and the switch is in its Settings. Offline is the default, because a classroom with no wifi still needs a working app and a suite that waits on a server is a slower suite.
| Offline (the default) | Everything the app creates is held in memory on the phone. No network, no server, no account on anybody’s database. Closing the app clears it, so every test run starts from the same place. |
| Online (Settings → Connect to the live API) | The same screens, on top of the practice API. Sign-up goes to POST /auth/register, sign-in to POST /auth/token, and what you create is stored against your account in {prefix}jsta_api_records. Read the very same records back in Postman. |
| The honest answer | |
|---|---|
| Where a practice account lives | {prefix}jsta_api_accounts – a table of its own, with the password hashed. Cleared after 30 days. |
| What it is not | It is not a WordPress user and not a customer. A practice sign-up never reaches wp_users, never creates a WooCommerce order, and cannot buy anything. Real sign-ups and real orders are a different part of the site entirely. |
| Where an order or an appointment lives | Offline: on the phone only. Online: {prefix}jsta_api_records, one row per record, scoped to your account. |
| The website’s own practice apps | The web versions at /qa-apps/ keep their data in the browser’s localStorage, so they reset when you clear site data. They never touch the server either. |
| Why registering is worth it | The shared student login is scoped to the token: sign in again and you start empty. Your own account is scoped to the account, so your records follow you to Postman, to a second phone, and to tomorrow. |
- Settings → Connect to the live API, then register and sign in.
- Do the thing in the app – place the order, book the appointment.
- Sign in to the practice API with the same account and read it back.
It is one record, reached two ways. That is how a UI test and an API test can check each other instead of each trusting itself.
Getting it onto a device
The short version of the steps above, for reference.
| 1. Download and unzip | The zip holds the .apk and a README with the package name and the login. |
| 2. Put it on the device | adb install jsta-shopkart.apk over USB, or copy the file to the phone and open it. Android will ask you to allow installing from this source – that is normal for any app that did not come from the Play Store. |
| 3. Start Appium | appium --base-path /wd/hub, with the UiAutomator2 driver installed. |
| 4. Point your test at it | Set appPackage and appActivity from the table above. Nothing else is needed: the apps hold their data in memory, so a restart is a clean fixture and no server has to be running. |