Home / Projects / Mobile Applications / TravelGo Mobile
Mobile Applications (APK)

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.

ApplicationTravelGo Mobile
Packagein.co.jstestingacademy.travelgo
First activity.LoginActivity
Loginstudent / practice123
Screens9
Minimum Android7.0 (API 24)
DownloadDownload the APK (ZIP) – the zip holds the APK and a README
AccessInside the Lifetime Membership – sign in first
What you can practise here
  • 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.

Step 1

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.

SCREEN.LoginActivity

Sign in

Resource idAppium locator
login_usernameAppiumBy.id("in.co.jstestingacademy.travelgo:id/login_username")
login_passwordAppiumBy.id("in.co.jstestingacademy.travelgo:id/login_password")
login_rememberAppiumBy.id("in.co.jstestingacademy.travelgo:id/login_remember")
login_submitAppiumBy.id("in.co.jstestingacademy.travelgo:id/login_submit")
login_errorAppiumBy.id("in.co.jstestingacademy.travelgo:id/login_error")
login_go_registerAppiumBy.id("in.co.jstestingacademy.travelgo:id/login_go_register")
login_fill_demoAppiumBy.id("in.co.jstestingacademy.travelgo:id/login_fill_demo")
SCREEN.RegisterActivity

Create account

Resource idAppium locator
register_full_nameAppiumBy.id("in.co.jstestingacademy.travelgo:id/register_full_name")
register_usernameAppiumBy.id("in.co.jstestingacademy.travelgo:id/register_username")
register_emailAppiumBy.id("in.co.jstestingacademy.travelgo:id/register_email")
register_phoneAppiumBy.id("in.co.jstestingacademy.travelgo:id/register_phone")
register_passwordAppiumBy.id("in.co.jstestingacademy.travelgo:id/register_password")
register_confirmAppiumBy.id("in.co.jstestingacademy.travelgo:id/register_confirm")
register_termsAppiumBy.id("in.co.jstestingacademy.travelgo:id/register_terms")
register_errorAppiumBy.id("in.co.jstestingacademy.travelgo:id/register_error")
register_submitAppiumBy.id("in.co.jstestingacademy.travelgo:id/register_submit")
SCREEN.HomeActivity

Home

Resource idAppium locator
home_welcomeAppiumBy.id("in.co.jstestingacademy.travelgo:id/home_welcome")
home_countAppiumBy.id("in.co.jstestingacademy.travelgo:id/home_count")
home_searchAppiumBy.id("in.co.jstestingacademy.travelgo:id/home_search")
home_bookingsAppiumBy.id("in.co.jstestingacademy.travelgo:id/home_bookings")
home_bookings_subAppiumBy.id("in.co.jstestingacademy.travelgo:id/home_bookings_sub")
home_noteAppiumBy.id("in.co.jstestingacademy.travelgo:id/home_note")
SCREEN.SearchActivity

Search buses

Resource idAppium locator
search_fromAppiumBy.id("in.co.jstestingacademy.travelgo:id/search_from")
search_toAppiumBy.id("in.co.jstestingacademy.travelgo:id/search_to")
search_swapAppiumBy.id("in.co.jstestingacademy.travelgo:id/search_swap")
search_dateAppiumBy.id("in.co.jstestingacademy.travelgo:id/search_date")
search_errorAppiumBy.id("in.co.jstestingacademy.travelgo:id/search_error")
search_submitAppiumBy.id("in.co.jstestingacademy.travelgo:id/search_submit")
SCREEN.ResultsActivity

Buses

Resource idAppium locator
results_typeAppiumBy.id("in.co.jstestingacademy.travelgo:id/results_type")
results_sortAppiumBy.id("in.co.jstestingacademy.travelgo:id/results_sort")
results_countAppiumBy.id("in.co.jstestingacademy.travelgo:id/results_count")
results_emptyAppiumBy.id("in.co.jstestingacademy.travelgo:id/results_empty")
results_listAppiumBy.id("in.co.jstestingacademy.travelgo:id/results_list")
SCREEN.SeatsActivity

Choose seats

Resource idAppium locator
seats_operatorAppiumBy.id("in.co.jstestingacademy.travelgo:id/seats_operator")
seats_detailAppiumBy.id("in.co.jstestingacademy.travelgo:id/seats_detail")
seats_lower_labelAppiumBy.id("in.co.jstestingacademy.travelgo:id/seats_lower_label")
seats_lowerAppiumBy.id("in.co.jstestingacademy.travelgo:id/seats_lower")
seats_upper_labelAppiumBy.id("in.co.jstestingacademy.travelgo:id/seats_upper_label")
seats_upperAppiumBy.id("in.co.jstestingacademy.travelgo:id/seats_upper")
seats_summaryAppiumBy.id("in.co.jstestingacademy.travelgo:id/seats_summary")
seats_errorAppiumBy.id("in.co.jstestingacademy.travelgo:id/seats_error")
seats_nextAppiumBy.id("in.co.jstestingacademy.travelgo:id/seats_next")
SCREEN.PassengerActivity

Passenger details

Resource idAppium locator
passenger_journeyAppiumBy.id("in.co.jstestingacademy.travelgo:id/passenger_journey")
passenger_seatsAppiumBy.id("in.co.jstestingacademy.travelgo:id/passenger_seats")
passenger_nameAppiumBy.id("in.co.jstestingacademy.travelgo:id/passenger_name")
passenger_ageAppiumBy.id("in.co.jstestingacademy.travelgo:id/passenger_age")
passenger_phoneAppiumBy.id("in.co.jstestingacademy.travelgo:id/passenger_phone")
passenger_emailAppiumBy.id("in.co.jstestingacademy.travelgo:id/passenger_email")
passenger_genderAppiumBy.id("in.co.jstestingacademy.travelgo:id/passenger_gender")
passenger_femaleAppiumBy.id("in.co.jstestingacademy.travelgo:id/passenger_female")
passenger_maleAppiumBy.id("in.co.jstestingacademy.travelgo:id/passenger_male")
passenger_termsAppiumBy.id("in.co.jstestingacademy.travelgo:id/passenger_terms")
passenger_errorAppiumBy.id("in.co.jstestingacademy.travelgo:id/passenger_error")
passenger_payableAppiumBy.id("in.co.jstestingacademy.travelgo:id/passenger_payable")
passenger_payAppiumBy.id("in.co.jstestingacademy.travelgo:id/passenger_pay")
SCREEN.TicketActivity

Ticket

Resource idAppium locator
ticket_pnrAppiumBy.id("in.co.jstestingacademy.travelgo:id/ticket_pnr")
ticket_routeAppiumBy.id("in.co.jstestingacademy.travelgo:id/ticket_route")
ticket_operatorAppiumBy.id("in.co.jstestingacademy.travelgo:id/ticket_operator")
ticket_dateAppiumBy.id("in.co.jstestingacademy.travelgo:id/ticket_date")
ticket_passengerAppiumBy.id("in.co.jstestingacademy.travelgo:id/ticket_passenger")
ticket_seatsAppiumBy.id("in.co.jstestingacademy.travelgo:id/ticket_seats")
ticket_fareAppiumBy.id("in.co.jstestingacademy.travelgo:id/ticket_fare")
ticket_bookingsAppiumBy.id("in.co.jstestingacademy.travelgo:id/ticket_bookings")
ticket_homeAppiumBy.id("in.co.jstestingacademy.travelgo:id/ticket_home")
SCREEN.BookingsActivity

My bookings

Resource idAppium locator
bookings_countAppiumBy.id("in.co.jstestingacademy.travelgo:id/bookings_count")
bookings_emptyAppiumBy.id("in.co.jstestingacademy.travelgo:id/bookings_empty")
bookings_listAppiumBy.id("in.co.jstestingacademy.travelgo:id/bookings_list")
booking_pnrAppiumBy.id("in.co.jstestingacademy.travelgo:id/booking_pnr")
booking_routeAppiumBy.id("in.co.jstestingacademy.travelgo:id/booking_route")
booking_detailAppiumBy.id("in.co.jstestingacademy.travelgo:id/booking_detail")
booking_statusAppiumBy.id("in.co.jstestingacademy.travelgo:id/booking_status")
booking_cancelAppiumBy.id("in.co.jstestingacademy.travelgo:id/booking_cancel")
Step 2

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 upA phone or an emulator that adb devices can see. Turn on Developer options, then USB debugging. Android 7.0 or newer.
2. Install the appadb install jsta-shopkart.apk, or copy the file to the phone and open it. Allow installing from this source when Android asks.
3. Start AppiumAppium 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 appSet appPackage and appActivity from the table above. Nothing else is needed — no server, no seed data, no network.
5. Find your first elementUse 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 inRegister your own account, or press Fill in the practice account and sign in as student / practice123.
7. Work through the screensEach 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 twiceTurn 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.
Step 3

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 notIt 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 livesOffline: on the phone only. Online: {prefix}jsta_api_records, one row per record, scoped to your account.
The website’s own practice appsThe 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 itThe 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.
The same record, two ways
  1. Settings → Connect to the live API, then register and sign in.
  2. Do the thing in the app – place the order, book the appointment.
  3. 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.

Step 4

Getting it onto a device

The short version of the steps above, for reference.

1. Download and unzipThe zip holds the .apk and a README with the package name and the login.
2. Put it on the deviceadb 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 Appiumappium --base-path /wd/hub, with the UiAutomator2 driver installed.
4. Point your test at itSet 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.