Test mobile applications

Ready to create mobile tests? Then this topic is for you. It explains the most important steps to your first mobile test case.

Tosca Cloud supports the following types of mobile tests:

  • Tests using a generic Appium connection, when you want to integrate with device clouds. You can test native, hybrid, or web applications for mobile.

  • Tests using the Tricentis Mobile Agent , when you want to use your own in-house or local device infrastructure. You can test native, hybrid, or web applications for mobile.

    Tricentis Mobile Agent is a centralized service that simplifies the setup and configuration of your devices for mobile tests. Note that it's not part of the Tosca Cloud infrastructure and requires a separate, local setup. For detailed information on Tricentis Mobile Agent, check out the Tricentis Mobile Agent manual (opens in new tab).

Supported versions

Tosca Cloud supports Android and iOS platforms to test mobile applications on the following devices:

  • Smartphones

  • Tablets

  • Android emulators

  • iOS simulators

For information on supported versions, check out the system requirements.

Create mobile test cases

Creating mobile test cases is easy:

  1. Scan your application to create modules. A module is the technical representation of a specific part of your application. It contains all necessary technical information that Tosca Cloud needs to find and steer elements of your application.

    If you want to test a mobile web application, you can also scan with Tosca XScan.

  2. Create a new, empty test case.

  3. Define the desired behavior of your test session. To do so, add the standard module Add Desired Capabilities to your test case and fill out the resulting test step.

    Standard modules are pre-built modules for common tasks that Tosca Cloud provides out of the box. You can find them in the left pane of the test case building area, under Modules.

  4. To tell Tosca Cloud to open your application, use another standard module: 

  5. To open a mobile connection, add the Open Mobile Connection standard module to your test case.

  6. Design your test case to build an automated test sequence. You can add the following design elements to your test case:

  7. Configure your test case for test runs by adding test case parameters. These parameters are mandatory:

    Parameter

    Where you have to add it

    DeviceName

    All test cases

    TMAServer

    All test cases using Tricentis Mobile Agent

    AppiumServer

    All test cases using a generic Appium connection

    Browser

    • All hybrid application test cases

    • All mobile web application test cases

    You can also add other parameters to fine-tune mobile test behavior. For detailed information on all mobile-specific parameters, check out Test case parameters for mobile tests.

Work with mobile controls

A control is a screen element in your application under test. For example, a button, text box, menu entry, or table cell. And when you use a module in your test case, you need to tell Tosca Cloud what to do with these controls.

For information on supported controls for mobile applications, check out Mobile controls.

What's next

You've just created your first mobile test case. Well done!

Next up: do a test case trial run. Trial runs help you find and fix issues, so you can make your tests as stable and reliable as possible.

Once you're happy with your test case, pack it into a playlist, so you can run your tests in earnest.