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.

You can also create test cases for native and hybrid applications built with frameworks like Xamarin, Cordova, React Native, Angular, and Ionic. For Flutter, Tosca Cloud only supports native apps on iOS and Android. Flutter web apps are not supported because Flutter web doesn't expose the UI information Tosca Cloud needs to automate it.

Supported versions

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

  • Smartphones

  • Tablets

  • Android emulators

  • iOS simulators

You can test support for different types of end user devices by resizing the browser window to match the resolution of desktop devices, phones, tablets, or TVs.

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

Create mobile test cases

Creating mobile test cases is easy:

  1. Set up your mobile connection.

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

  3. Create a new, empty test case.

  4. Add the Open Mobile Connection standard module to your test case to open mobile connection.

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

  6. Add the End Appium Session module at the end of your test case to cleanly close the connection. Otherwise, the connection stays open.

You can also fine-tune your test case behavior by adding optional 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.