Offline Package
- ravi.chandran (Unlicensed)
An Offline Package contains the software components to execute an offline suite without using a Qualitia Automation Studio (QAS) Client.
An offline suite is a copy of a test suite that you can save on a local machine. You can execute an offline suite on local, remote, shared drive, and cloud environments. An offline suite execution does not consume any Qualitia license.
Creating an Offline Package
You can create an Offline Package, which is a one-time activity, and use it to execute any number of offline suites.
To create an offline package:
Open the QAS Client.
- Open any Qualitia project.
On the File menu, click Offline Package.
Select a folder to save the Offline Package.
Click Ok.
A file called Qualitia Offline.zip is created in the selected location.- Extract this Zip file.
Creating an Offline Suite
The offline suite contains the associated test cases and test data, and a mapped execution profile that are used to execute it.
To create an offline suite:
Go to the Execution tab.
From the Suites screen, select a test suite, and mark the test cases that you want to include in the offline suite, and click Save.
- Click Offline Suite.
Select the required execution profile from the drop-down list.
Note: For a desktop project, the System Execution Profile settings are used instead of the Execution Profile.Click Save
You can export the execution profiles from a Qualitia Web/Mobile project. For more information, refer to Exporting an Execution Profile.
Configuring the Settings for an Offline Suite
The Offline Package contains a Qualitia Offline Configuration Manager. You can use it to modify the Qualitia Client Settings, Environment Variables, and Execution Profile settings for an offline suite.
Also, you can map an offline suite with an execution profile, which is used when the offline suite is executed.
To configure the settings for an offline suite:
Open the extracted QualitiaOffline file.
From the Configuration Manager folder, and double-click the Qualitia Offline Configuration Manager.
- Do one of the following;
Click Browse next to Select the Suite Directory, and then locate and select the offline suite.
Enter the location path of the offline suite folder, and press Tab.
- Under the Select the profile to edit, select an execution profile for the test suite.
The Qualitia Offline Configuration Manager shows the offline suite name and the selected execution profile.
Note: The offline suite executions that are created to automate testing on a desktop application uses the default execution profile only. - From the Mapped Profile list, select an execution profile that you want to use.
Note: The default mapped execution profile is the one that was saved while creating the offline suite. To edit the settings for the offline suite
To change the Qualitia Client settings, click the Qualitia Client tab. For more information, refer to General Settings.
To change the values of environment variables, click the Environment Variable tab.
Note:You cannot add or edit environment keys.
You cannot add a value in the encrypted format and edit any value entered in the encrypted format.
For more information, refer to Environment Variable.
- Perform this step only if Rest Generic Headers are used in the test cases.
Do the following in the order listed:- Click the Rest Generic Header tab.
- Change the header values.
- Click Ok to Save.
To change the settings for the selected execution profile, click the Execution Profile tab.
For more information, refer toConfiguring the System Execution Profile for Web and Mobile Projects: Shows the details on how to automate testing on web and mobile applications.
Configuring the System Execution Profile for Desktop Projects: Shows the details on how to automate testing on a desktop application.
- To execute a test suite on a mobile platform ensure that you have configured the system requirements and settings in the associated execution profile. For more information, refer to Requirements and Configuration Settings for Mobile Environments.
- To execute the offline suite on remote or cloud platforms, then you must follow the appropriate environment guidelines. For more information, refer to Supported Environments Guidelines.
Executing an Offline Suite using CLI Commands
The offline package executes the offline suite that you want using its mapped execution profile. You can override any pre-configured settings of the mapped execution profile.
To execute an offline package using CLI commands:
Open the Command Prompt.
Navigate to the location where you have saved the offline package.
Enter the following code:
java -jar qualitiaoffline-8.0.x.jarThe offline package is executed using the settings defined in the Qualitia Offline Configuration Manager.- To override any of the following parameters:
- Mapped Execution Profile: Enter the location of the execution profile you want in the following ways:
- The location of the execution profile must be enclosed by double inverted commas.
- You do not need to add any key.
- It must be the first argument.
For example: java -jar qualitiaoffline-8.0.x.jar "D:/ABCsettings.JSON"
- Offline Suite: Enter the location of the offline suite as SuitesDir="Suite_Path".
For example, java -jar qualitiaoffline-8.0.x.jar SuitesDir="D:/OfflineSuite/Suite1" Other Parameters defined in the Selected Execution Profile: Enter the parameters preceded by their hierarchy in name=value format as command-line arguments.
For example, to use a specific version of Google Chrome, enter the command line argument as follows:
java -jar qualitiaoffline-8.0.x.jar googleChrome.version=81.0.1.36
In this example, googleChrome is the topmost parameter and then version.You can provide multiple property=value pairs separating them with space, as shown in the following example:
java -jar qualitiaoffline-8.0.x.jar googleChrome.version=81.0.1.36 PageTimeoutInSeconds=10If you are overriding the mapped execution profile enter it as the first argument, as shown in the following example:
java -jar qualitiaoffline-8.0.x.jar "D:/ABCsettings.JSON" googleChrome.version=81.0.1.36 PageTimeoutInSeconds=10
If a key has a dot in its name, you need to put backslash before the dot such as chrome.chromedriverVersion, which is under androidChrome, as shown in the following example:
java -jar qualitiaoffline-8.0.x.jar androidChrome.chrome\.chromedriverVersion=83
- Mapped Execution Profile: Enter the location of the execution profile you want in the following ways:
- Press Enter to start the offline suite execution.
Viewing an Offline Suite Execution Report
You can view the test suite execution report in the Real Time Reporting Portal, which updates the execution results after every test case iteration is completed.
Every offline suite execution creates a test suite execution summary report as per the location defined in Execution Result Path on the General Settings tab of the Qualitia Offline Configuration Manager. It updates the results into this folder after every task iteration execution is completed.
You can import the locally created test suite execution summary report in the Real Time Reporting Portal if the:
Qualitia Server URL is not configured in the offline suite.
Connection to Qualitia Server fails during offline suite execution.
For instructions on how to upload a suite execution report, refer to Uploading a Report into Real Time Reporting Portal.
Related topics
On this Page: