Advanced configuration of parallel execution
Parallel execution enables you to run your mobile tests on multiple devices, emulators, or simulators. You can configure your ExecutionLists for parallel execution as described in chapter "Prepare and run parallel execution".
You can also use Tosca Distributed Execution and Tosca Continuous Integration to tailor your mobile test execution to your exact needs. Follow the steps described in this chapter, to perform the following actions:
-
Use the Mobile Engine 3.0 with Tosca Continuous Integration.
-
Use dynamic allocation of devices in Perfecto and Sauce Labs.
Use the Mobile Engine 3.0 with Tosca Distributed Execution
To configure and run your mobile tests via Tosca Distributed Execution, follow the steps below:
-
Start and connect Agents using the default port 5007.
-
Go to Project->Settings and configure the following settings:
-
Url under Settings->Commander->DistributedExecution->Monitor Url.
-
EndpointAddress under Settings->Commander->DistributedExecution->Server.
-
ServerEndpointAddress under Settings->Tricentis Services.
-
-
Configure your mobile ExecutionLists for parallel execution.
-
Create and execute TestEvents.
The TestEvents must contain ExecutionLists with the mobile tests that you want to run.
Use the Mobile Engine 3.0 with Tosca Continuous Integration
Once you have set up Tosca Distributed Execution, you can configure Tosca Continuous Integration to run your mobile tests via CI.
To do so, follow the steps below:
In this example, you run your CI tests via Tosca Distributed Execution. To do so, you use the following command with call parameters for Tosca Distributed Execution: ...\ToscaCIClient\ToscaCIClient.exe -m distributed -c config.xml -x True -t junit -r result.xml |
Use dynamic allocation of devices in Perfecto and Sauce Labs
To make parallel execution in Perfecto or Sauce Labs more flexible, you can use dynamic allocation of devices. This means that you don't have to provide the full name or ID of your device.
To do so, follow the steps described in these chapters: