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:
- Open https://{PerfectoURL}/assets/repository in a browser, where PerfectoURL indicates the URL of your Perfecto account.
- Enter the valid login credentials.
- Click File Upload, and select the mobile application from your local machine.
- Do one of the following:
- To add a private app
- Select Private and click Upload.
- Select the private app that you want to upload and click OK.
The app path is displayed as locator PRIVATE:{AppName}.apk, where AppName indicates the name of your mobile application.
- To add a public app
- Select Public and click Upload.
- Select the public app that you want to upload and click OK. The app path is displayed as PUBLIC:{AppName}.apk, where AppName indicates the name of your mobile application.
- To add a private app
- Copy the Perfecto repository path for your mobile app.
You can now enter the value of app_path in the first parameter for all the Mobile.OpenApp actions present in different test cases, which are planned for execution on Perfecto.
Info | ||
---|---|---|
| ||
You can create an environment variable for this Perfecto repository path. For more information, refer to Creating an Environment Variable. |
Mandatory Settings in Associated Execution Profile
In the associated execution profile, do the following in the order listed:
- From the Environment list, select as Cloud.
- From the Cloud Platform list, select Perfecto.
- Select the Edit Additional Capabilities checkbox.
- Select or enter the following values:
- Enter your Perfecto account URL, in URL.
- Either enter Username and Password, or SecurityToken.
- Perform the following steps to execute the test suite on a mobile application,
- Select enableAppiumBehavior as True.
- By default, the apk/ipa files are overridden or uploaded during every execution. If you do not want to upload these files, set the capability "override=false".
- In the host capability, enter the host name. For example, mobilecloud, testingcloud, and so on.
- To execute test suite on a mobile web application:
- Select enableAppiumBehavior and useAppiumForWeb as Tru
- Select AutomationName for Android as Appium and for iOS as XCUITest.
- Enter SeleniumVersion to 4.0.0.
- Enter the chrome driver version for the target mobile device, in ChromeDriverVersion to 2.xx, where xx denotes a chrome driver version, such as 91 and 92.
- To execute test suite on an Android hybrid application:
- Select enableAppiumBehavior and useAppiumForHybrid as True.
- Enter SeleniumVersion to 4.0.0.
- Enter the chrome driver version for the target mobile device, in ChromeDriverVersion to 2.xx, where xx denotes a chrome driver version, such as 91 and 92.
- 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.
Note |
---|
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.
Info |
---|
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:
- Log on to your Perfecto account.
- From the top right corner, click More > Execution Center.
- In the Executions section, select the test case from the list.
- 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:
- Download Perfecto Connect executable depending on your OS.
Unzip the folder and run the file using command line interface along with Cloud URL and Security Token.
For example:Code Block perfectoconnect.exe -c <Perfecto_Cloud_URL> -s <Security_token>
- Executing this file will give you the tunnel ID.
- Under Edit Additional capabilities, enter the tunnel ID in tunnelId.
For more information about this, refer to the Perfecto documentation.