Skip to content

Mobitru Android demo App, which can be used as a demo App for test automation or manual practice on your local machine or on the Real Device Platform.

License

Notifications You must be signed in to change notification settings

Mobitru/demo-android-app

Repository files navigation

Mobitru Android Demo Application

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.

mobitru.overview

Table of contents

  1. Functionalities
    1. UI Controls
    2. Biometric authentication
    3. UI Layouts
    4. Event Handling
    5. QR code scanner
    6. Accessibility
  2. Contributing to the App
  3. Test automation
    1. Espresso
  4. FAQ

Functionalities

UI Controls

UI controls

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:

Biometric authentication

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.

UI Layouts

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:

Specific Matcher, which is used for complicated views, can be found here.

Event Handling

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:

QR code scanner

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.

QR Code

Accessibility

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

Contributing to the App

If you want to contribute to the App and add new functionalities, please check the documentation here.

Test automation

Espresso

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

FAQ

How to build the Application and start tests?

  • 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.

Which Android versions are supported?

This App supports Android 9.0 and greater.

Is Dark Theme supported?

Not now, but it's in our plans.

About

Mobitru Android demo App, which can be used as a demo App for test automation or manual practice on your local machine or on the Real Device Platform.

Resources

License

Stars

Watchers

Forks

Packages

No packages published