Home / Projects / Mobile Applications / JSTA UI Catalog
Mobile Applications (APK)

JSTA UI Catalog

Android’s own API Demos is what most people practise gestures on. This is the same idea, built here, carrying our logo – and with a stable id and an accessibility description on every single control, which API Demos does not have.

This application is for practice purpose, for automation testers.

ApplicationJSTA UI Catalog
Packagein.co.jstestingacademy.uicatalog
First activity.LoginActivity
Loginstudent / practice123
Screens13
Minimum Android7.0 (API 24)
DownloadDownload the APK (ZIP) – the zip holds the APK and a README
What you can practise here
  • Click, long press, double tap, and a button that is disabled until you enable it
  • Six text fields – password, numeric, read-only, maximum length, multiline
  • A parent checkbox that drives three children, and has to untick itself
  • A dropdown whose options depend on another dropdown
  • Seven kinds of dialog, including multi-choice and a snackbar with an action
  • Date and time pickers with limits that really refuse an out-of-range date
  • A progress bar that takes five seconds, so a sleep is the wrong answer
  • Two hundred rows – scroll to one that is not in the view tree yet
  • Swipe, drag and drop, long press and double tap, each reporting what it saw
  • Three tabs that keep their state when you switch away and come back

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.uicatalog:id/login_username")
login_passwordAppiumBy.id("in.co.jstestingacademy.uicatalog:id/login_password")
login_rememberAppiumBy.id("in.co.jstestingacademy.uicatalog:id/login_remember")
login_submitAppiumBy.id("in.co.jstestingacademy.uicatalog:id/login_submit")
login_errorAppiumBy.id("in.co.jstestingacademy.uicatalog:id/login_error")
login_go_registerAppiumBy.id("in.co.jstestingacademy.uicatalog:id/login_go_register")
login_fill_demoAppiumBy.id("in.co.jstestingacademy.uicatalog:id/login_fill_demo")
SCREEN.RegisterActivity

Create account

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

Index

Resource idAppium locator
home_listAppiumBy.id("in.co.jstestingacademy.uicatalog:id/home_list")
home_noteAppiumBy.id("in.co.jstestingacademy.uicatalog:id/home_note")
SCREEN.ButtonsActivity

Buttons and clicks

Resource idAppium locator
buttons_clickAppiumBy.id("in.co.jstestingacademy.uicatalog:id/buttons_click")
buttons_long_clickAppiumBy.id("in.co.jstestingacademy.uicatalog:id/buttons_long_click")
buttons_double_tapAppiumBy.id("in.co.jstestingacademy.uicatalog:id/buttons_double_tap")
buttons_counterAppiumBy.id("in.co.jstestingacademy.uicatalog:id/buttons_counter")
buttons_disabledAppiumBy.id("in.co.jstestingacademy.uicatalog:id/buttons_disabled")
buttons_enableAppiumBy.id("in.co.jstestingacademy.uicatalog:id/buttons_enable")
buttons_resultAppiumBy.id("in.co.jstestingacademy.uicatalog:id/buttons_result")
buttons_countAppiumBy.id("in.co.jstestingacademy.uicatalog:id/buttons_count")
SCREEN.TextFieldsActivity

Text fields

Resource idAppium locator
text_plainAppiumBy.id("in.co.jstestingacademy.uicatalog:id/text_plain")
text_passwordAppiumBy.id("in.co.jstestingacademy.uicatalog:id/text_password")
text_numberAppiumBy.id("in.co.jstestingacademy.uicatalog:id/text_number")
text_max5AppiumBy.id("in.co.jstestingacademy.uicatalog:id/text_max5")
text_readonlyAppiumBy.id("in.co.jstestingacademy.uicatalog:id/text_readonly")
text_multilineAppiumBy.id("in.co.jstestingacademy.uicatalog:id/text_multiline")
text_submitAppiumBy.id("in.co.jstestingacademy.uicatalog:id/text_submit")
text_clearAppiumBy.id("in.co.jstestingacademy.uicatalog:id/text_clear")
text_resultAppiumBy.id("in.co.jstestingacademy.uicatalog:id/text_result")
SCREEN.ChoicesActivity

Checkboxes, radios and switches

Resource idAppium locator
choice_allAppiumBy.id("in.co.jstestingacademy.uicatalog:id/choice_all")
choice_appiumAppiumBy.id("in.co.jstestingacademy.uicatalog:id/choice_appium")
choice_seleniumAppiumBy.id("in.co.jstestingacademy.uicatalog:id/choice_selenium")
choice_playwrightAppiumBy.id("in.co.jstestingacademy.uicatalog:id/choice_playwright")
choice_levelAppiumBy.id("in.co.jstestingacademy.uicatalog:id/choice_level")
choice_notifyAppiumBy.id("in.co.jstestingacademy.uicatalog:id/choice_notify")
choice_toggleAppiumBy.id("in.co.jstestingacademy.uicatalog:id/choice_toggle")
choice_resultAppiumBy.id("in.co.jstestingacademy.uicatalog:id/choice_result")
SCREEN.DropdownActivity

Dropdowns

Resource idAppium locator
drop_countryAppiumBy.id("in.co.jstestingacademy.uicatalog:id/drop_country")
drop_cityAppiumBy.id("in.co.jstestingacademy.uicatalog:id/drop_city")
drop_courseAppiumBy.id("in.co.jstestingacademy.uicatalog:id/drop_course")
drop_resultAppiumBy.id("in.co.jstestingacademy.uicatalog:id/drop_result")
SCREEN.DialogsActivity

Alerts and dialogs

Resource idAppium locator
dialog_alertAppiumBy.id("in.co.jstestingacademy.uicatalog:id/dialog_alert")
dialog_confirmAppiumBy.id("in.co.jstestingacademy.uicatalog:id/dialog_confirm")
dialog_inputAppiumBy.id("in.co.jstestingacademy.uicatalog:id/dialog_input")
dialog_listAppiumBy.id("in.co.jstestingacademy.uicatalog:id/dialog_list")
dialog_multiAppiumBy.id("in.co.jstestingacademy.uicatalog:id/dialog_multi")
dialog_toastAppiumBy.id("in.co.jstestingacademy.uicatalog:id/dialog_toast")
dialog_snackbarAppiumBy.id("in.co.jstestingacademy.uicatalog:id/dialog_snackbar")
dialog_resultAppiumBy.id("in.co.jstestingacademy.uicatalog:id/dialog_result")
SCREEN.PickersActivity

Date and time pickers

Resource idAppium locator
picker_dateAppiumBy.id("in.co.jstestingacademy.uicatalog:id/picker_date")
picker_date_valueAppiumBy.id("in.co.jstestingacademy.uicatalog:id/picker_date_value")
picker_timeAppiumBy.id("in.co.jstestingacademy.uicatalog:id/picker_time")
picker_time_valueAppiumBy.id("in.co.jstestingacademy.uicatalog:id/picker_time_value")
SCREEN.SlidersActivity

Sliders and progress

Resource idAppium locator
slider_seekAppiumBy.id("in.co.jstestingacademy.uicatalog:id/slider_seek")
slider_seek_valueAppiumBy.id("in.co.jstestingacademy.uicatalog:id/slider_seek_value")
slider_ratingAppiumBy.id("in.co.jstestingacademy.uicatalog:id/slider_rating")
slider_rating_valueAppiumBy.id("in.co.jstestingacademy.uicatalog:id/slider_rating_value")
slider_progressAppiumBy.id("in.co.jstestingacademy.uicatalog:id/slider_progress")
slider_progress_valueAppiumBy.id("in.co.jstestingacademy.uicatalog:id/slider_progress_value")
slider_startAppiumBy.id("in.co.jstestingacademy.uicatalog:id/slider_start")
slider_doneAppiumBy.id("in.co.jstestingacademy.uicatalog:id/slider_done")
SCREEN.LongListActivity

Long list

Resource idAppium locator
list_itemsAppiumBy.id("in.co.jstestingacademy.uicatalog:id/list_items")
list_noteAppiumBy.id("in.co.jstestingacademy.uicatalog:id/list_note")
SCREEN.GesturesActivity

Gestures

Resource idAppium locator
gesture_swipe_areaAppiumBy.id("in.co.jstestingacademy.uicatalog:id/gesture_swipe_area")
gesture_swipe_resultAppiumBy.id("in.co.jstestingacademy.uicatalog:id/gesture_swipe_result")
gesture_drag_sourceAppiumBy.id("in.co.jstestingacademy.uicatalog:id/gesture_drag_source")
gesture_drop_targetAppiumBy.id("in.co.jstestingacademy.uicatalog:id/gesture_drop_target")
gesture_drop_resultAppiumBy.id("in.co.jstestingacademy.uicatalog:id/gesture_drop_result")
gesture_press_areaAppiumBy.id("in.co.jstestingacademy.uicatalog:id/gesture_press_area")
gesture_press_resultAppiumBy.id("in.co.jstestingacademy.uicatalog:id/gesture_press_result")
SCREEN.TabsActivity

Tabs

Resource idAppium locator
tabs_barAppiumBy.id("in.co.jstestingacademy.uicatalog:id/tabs_bar")
tab_page_overviewAppiumBy.id("in.co.jstestingacademy.uicatalog:id/tab_page_overview")
tab_page_detailsAppiumBy.id("in.co.jstestingacademy.uicatalog:id/tab_page_details")
tab_details_noteAppiumBy.id("in.co.jstestingacademy.uicatalog:id/tab_details_note")
tab_page_settingsAppiumBy.id("in.co.jstestingacademy.uicatalog:id/tab_page_settings")
tab_settings_switchAppiumBy.id("in.co.jstestingacademy.uicatalog:id/tab_settings_switch")
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.