Configure tests in Perfecto

Perfecto allows you to run the tests on various mobile devices in a cloud environment.

To establish a connection to Perfecto, create the test configuration parameters as described in the table below.

Test configuration parameters

Description

AppiumServer

Enter the address of the Perfecto Appium server which by default is https://<your host>.perfectomobile.com/nexperience/perfectomobile/wd/hub.

Replace <your host> with your own host.

DeviceName

You can configure the DeviceName test configuration parameter in one of the following ways:

PerfectoPassword

Enter your Perfecto password, which you use to sign in to your Perfecto account.

PerfectoUser

Enter your Perfecto user name, which you use to sign in to your Perfecto account.

PerfectoToken

If you have created a security token in Perfecto, enter the token to automate tests.

You can use PerfectoToken instead of the PerfectoUser and PerfectoPassword test configuration parameters.

In the example below, you have specified test configuration parameters to configure the execution of an Android mobile web application in Perfecto.

For the AppiumServer TCP, you enter the address with your own host name.

TCPs for mobile web application test execution in Perfecto

If you have created a PerfectoToken, you can use it instead of the PerfectoPassword and PerfectoUser test configuration parameters.

PerfectoToken test configuration parameter

Configure DeviceName with Device Finder

Device Finder enables you to search for a cloud device and automatically add the DeviceName test configuration parameter. This allows you to retrieve the Device ID without logging in to your Perfecto account.

To use Device Finder, follow the steps below:

  1. Create AppiumServer, PerfectoPassword, and PerfectoUser test configuration parameters.

  2. Right-click on one of the following elements in Tosca Commander depending on which you want to configure.

  3. Select Set Perfecto Device from the context menu. The subsequent dialog box displays all available and unavailable devices in Perfecto.

    You can click on the column headings to sort the list of devices.

List of mobile devices in Perfecto

  1. Double-click the device on which you want to run your tests.

    Alternatively, select the device and click OK.

    The Device ID of the device you selected is automatically added as the DeviceName test configuration parameter.

Find DeviceName in Perfecto

You can copy the DeviceName from a list of mobile devices in Perfecto. To do so, follow the steps below:

  1. Sign in to your Perfecto account.

  2. In the Interactive tab, select Launch Mobile.

  3. In the subsequent list of devices, copy the ID of your device from the Device ID column.

Device ID column in Perfecto