Document toolboxDocument toolbox

Executions on Perfecto

Introduction

Perfecto is a cloud-based lab for Web and Mobile application testing. It allows running tests in the cloud using different combinations of operating systems, browsers, and browser versions. In this environment, all desktop web application tests are executed on virtual machines (VMs) and mobile application tests are executed on physical devices. Perfecto allows you viewing video recordings of the test case executions after the suite executions are completed.

To know more about Perfecto, click here.

Prerequisite:

  • An active user account on Perfecto.


In this section

Mandatory Settings and Execution Guidelines in Qualitia

The mobile native and hybrid application file, that is the apk, ipa, and app file, is not uploaded on Perfecto automatically during the Qualitia Automation Studio executions.

Qualitia recommends that you perform the following steps to upload the native and hybrid mobile application file:

  1. You must upload the mobile native or hybrid applications on Perfecto Cloud before executing test suites.
    To upload a mobile app, login to Perfecto website, click Assets and Setup>Upload.

  2. After uploading the mobile app, copy the Perfecto lab repository path for your mobile app.

    Tip

    You can create an environment variable for this Perfecto repository path.

  3. Enter the Perfecto lab repository path in the first parameter of the Mobile.OpenApp action.

Mandatory Settings in Associated Execution Profile

In the associated execution profile, do the following in the order listed:

  1. From the Environment list, select as Cloud.
  2. From the Cloud Platform list, select Perfecto.
  3. Select the Edit Additional Capabilities checkbox.
  4. Select or enter the following values:
    1. Enter the following as URL
      https://testingcloud.perfectomobile.com/nexperience/perfectomobile/wd/hub 
    2. Either enter Username and Password, or SecurityToken.
    3. To execute test suite on a mobile application, select enableAppiumBehavior as True.
    4. To execute test suite on a mobile web application, select enableAppiumBehavior and useAppiumForWeb as True, and AutomationName for Android as Appium and for iOS as XCUITest .
    5. To execute test suite on an Android hybrid application, select enableAppiumBehavior and useAppiumForHybrid as True.
    6. To execute test suite on an iOS hybrid application, select enableAppiumBehavior, useAppiumForHybrid,and iOSResign as True.

Additional Recommendations:

In the Execution Parameters tab, select ScreenCaptureMode as Browser.


If you have used ID, Accessibility ID, and Class locator types when adding native mobile app objects in Qualitia, Perfercto Appium integration translates these all locator types to xPath at the time of test case execution.

For more information, refer to the PerfectoMobile documentation

Viewing Execution Status and Reports in Perfecto's Execution Center

Once you have triggered the offline execution, you can view the status of your ongoing executions in Perfecto's Execution Center. Each test case appears on dashboard as a single grid with execution status against it. The status is updated after each test execution is completed in Perfecto's environment with its status (FAILED / SUCCESS) against it. Select the test case from the list and click Report from top to view recording of your test case.

Qualitia and Perfecto's reports may mismatch if Qualitia test case contains any situation which ends the WebDriver session. This situation may arise due to the use of actions like Mobile.CloseApp, opening multiple WebDriver sessions in a single test case and so forth.


To view the execution report of Qualitia test cases:

  1. Log on to your Perfecto account. 
  2. From the top right corner, click More > Execution Center.
  3. In the Executions section, select the test case from the list.
  4. Click Report

Executing Test Cases Behind Firewall Applications

Few applications are configured to be accessed using private networks. Such applications deny access when they are being accessed from other than local networks and so from Perfecto. Executing test cases on Perfecto for such applications needs special configurations.

Simply download Perfecto Connect client executable that matches your Operating System. You need to execute it on the machine in the private network to allow Perfecto executing tests flawlessly.

For more information on configuration of Perfecto connect, refer to the Perfecto documentation.

To configure perfecto to run test cases for the applications behind firewall:

  1. Download Perfecto Connect executable depending on your OS.
  2. Unzip the folder and run the file using command line interface along with Cloud URL and Security Token
    For example: 

    perfectoconnect.exe -c <Perfecto_Cloud_URL> -s <Security_token>

  3. Executing this file will give you the tunnel ID.
  4. Under Edit Additional capabilities, enter the tunnel ID in tunnelId. 

For more information about this, refer to the Perfecto documentation.