Use Mobile configurations

In the Mobile Scan, you can add a mobile application and a device, emulator, or simulator. Mobile Engine 3.0 saves this information as configurations, which you can reuse in your TestCases as test configuration parameters.

To access and use configurations created in the Mobile Scan, follow the steps below:

  1. In Tosca Commander, go to the Configurations folder.

    The Mobile configurations created by the Mobile Scan contain the following folders:

    • The Applications folder contains parameters for the mobile application.

    • The Connections folder contains parameters for the devices, emulators, and simulators. It includes the Appium Server address.

Mobile configurations

  1. Drag and drop the node containing parameters you want to use onto your TestCase or ExecutionList.

Drag and drop a configuration on a TestCase

If you work in a multi-user workspace, the Mobile configuration node is automatically checked out when you open the Mobile Scan and automatically checked in when you close it. If you don't want the Mobile Scan to automatically check out and check in the Mobile configuration node, go to Project->Settings->TBox->Mobile30 and set the value of Auto checkout/checkin configuration to False.

Edit or remove Mobile configurations

You can edit or remove Mobile configurations. The changes you apply affect the devices and applications displayed in the Mobile Scan. For example, if you remove a device from Mobile configurations, it no longer appears in the Mobile Scan.

To edit a Mobile configuration, update its Value column.

To remove a Mobile configuration, right-click on it with a device, connection, or application you want to remove and click Delete in the mini-toolbar.

Create mobile configurations manually

You can configure your mobile tests with reusable mobile configurations. The Mobile Engine 3.0automatically creates mobile configurations when you scan a mobile application. However, you can also create mobile configurations manually in the Configurations section. To do so, follow the steps below:

  1. In Tosca Commander, go to the Configurations section.

  2. Under Mobile, create a new configuration tree (see chapter "Create configurations").

  3. Add mobile TCPs that you want to use to configure your tests. For more information, see chapter "Configure mobile tests".

    The TCPs that you add on higher levels of your configuration tree are automatically inherited by lower levels.

  4. Drag and drop the new configuration onto an ExecutionList or a TestCase where you want to use the TCPs you have specified.

In this example, you configure your mobile test for Sauce Labs and GigaFox.

  • You test an iOS web application. To do so, you create the configuration iOS web. On this level you specify the TCPs Browser and OSVersion.

  • You create the configuration Sauce Labs, where you specify TCPs required for test automation in Sauce Labs. This configuration inherits the TCPs that you have specified on a higher level, that is Browser and OSVersion.

Configurations for Sauce Labs

Configurations for GigaFox