In this repository, you will find our Mobitru Android demo App. You can use it as a demo App for test automation or manual practice on your local machine or on the Real Device Platform.
This app contains variations of the most useful UI controls like
- TextView
- EditText
- Password Input
- Button
- ImageButton
- BottomNavigation
- ImageView
More details about Android UI controls can be found here.
You can find autotests for all kinds of controls here, for example:
- LoginViewTests - enter data to EditText, Password Input, and perform a click on Button.
- MyAccountEditInfoTests - work with BottomNavigation, replace data in EditText and read info from TextView.
- CartChangeProductNumberTests - click on ImageButton, verify data in TextView and check ImageView.
This app supports Biometric authentication on the Login Screen.
You only need to enable it on your Device, and then you will be able to log in without entering credentials.
Just open the Login Screen -> tap the 'Biometric authentication' button -> complete identity verification.
This app also has various UI interface layouts, which are related to significant groups of elements, like
- ListView
- FrameLayout
- RecyclerView
- GridLayout
More details about Android UI layouts can be found here.
You can find autotests for all kinds of layouts here, for example:
- ProductListViewTest - check elements in a ListView
- MyAccountViewTests - verify text data on a FrameLayout
- ReviewOrderProductItemTests - validate elements on a RecyclerView
- CompletedOrdersTests - check presence on a GridLayout
Specific Matcher, which is used for complicated views, can be found here.
Different kinds of User Actions are available in the App, for example:
- add or remove from the cart
- change the product number
- validate user info fields
- sort a list of products
All of them are covered by using specific Event Listeners and Handlers. More details can be found here.
You can find autotests for all kinds of actions here, for example:
- ProductListCartTests - add/remove products from the cart and check the total number
- ProductListSortingTests - change sorting and verify updated Products List
- ReviewOrderProductItemTests - add product to cart, enter user info and complete the Order
You can also scan a QR code in Mobitru demo app.
Just add several items to the cart and activate The QR Code scanning on the Cart screen:
- tap on the 'Apply promo code' button.
- allow the app to use the camera (needed for the first usage only).
- scan a QR code.
As a result, you will see related content (like URL) on the Cart Screen, and a random discount will be applied to any item in the Cart.
You can use the following image to demo this option.
This App is adopted to demonstrate how Accessibility works on a Device. You only need to enable the Screen reader on the Device:
- Find Accessibility in the Settings.
- Find a Screen reader (TalkBack, Voice Assistant, etc.).
- Turn on the Screen reader.
After enabling it, you can go to the Products List screen and focus on some elements like Product Title or Image. Then, you should hear what the Screen reader pronounces for focused elements.
Here you can find more information about added Accessibility Test Automation
If you want to contribute to the App and add new functionalities, please check the documentation here.
Here you will find more information about:
- how to write Espresso tests
- how to run tests on a local machine
- how to run tests in the cloud
- You can build the App from Android Studio or console. All details can be found here.
- Tests can be executed on a local machine or on Mobitru. All details can be found here.
This App supports Android 9.0 and greater.
Not now, but it's in our plans.