Introduction: For Software Development Engineers in Test (SDET), executing tests offline provides flexibility, especially when there 's is no immediate access to the main software or in environments with limited connectivity.
This guide will walk walks you through the process of working with offline suites in the Qualitia Automation Studio (QAS) using Command Line Interface (CLI) commands.
📚Prerequisites:
Access to the Qualitia Automation Studio ( QAS ) Client.
An offline package saved on your computer.
Basic familiarity with Command Line Interface ( CLI ) operations.
🔂
...
Procedure
...
Execute Offline Suite using CLI Commands
You want to run tests offline using command prompt due to limited access to the QAS client.
...
The offline package runs the chosen offline suite with its set execution profile, which can be customized to override pre-configured settings.
If testing on a mobile platform, ensure the execution profile has the right system requirements and settings.
For remote or cloud executions, follow the guidelines for the respective environments.Â
To execute an offline package using CLI commands.
Open the Command Prompt.
Navigate Go to the location of your where you have saved the offline package.
InputEnter the following code:
java -jar qualitiaoffline-
89.
60.x.jar
to execute theThe offline package
is executed using the
settings
defined in the Qualitia Offline Configuration Manager.
Override any of the following parameters:
Mapped Execution Profile :– Enter the location of the execution profile Execution Profile you want in the following ways:
The location of the execution profile must be enclosed by double inverted commas. Note that you do not require any key.
It Your first argument must be the first argument. For exampleas follows:
java -jar qualitiaoffline-
89.
60.x.jar "D:/ABCsettings.JSON
"
Offline Suite : – Enter the location of the offline suite as
SuitesDir="Suite_Path"
.
For example,Âjava -jar qualitiaoffline-
89.
60.x.jar SuitesDir="D:/OfflineSuite/Suite1"
Environment Variable : Enter – Enter the environment variables and their associated values in the following format:
java -jar qualitiaoffline-
89.
60.x.jar env.var1=value1 env.var2=value2
. Here, var1 and var2 denote the environment variables, and value1 and value2 denote the associated values. For example, java Âjava -jar qualitiaoffline-
89.
60.x.jar env.username=john.smith env.password=12345
Other Parameters defined in the Selected 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-
89.
60.x.jar googleChrome.version=81.0.1.36
. In this example, googleChrome Google Chrome is the topmost parameter and then followed by its version. You can may provide multiple property=-value pairs separating them with space, as shown in the following example :
-java -jar qualitiaoffline-
89.
60.x.jar googleChrome.version=81.0.1.36 PageTimeoutInSeconds=10
.If you are overriding the mapped execution profile, enter it as the first
argument as this -
java -jar qualitiaoffline-
9.
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
Android Chrome as shown
here -
java -jar qualitiaoffline-
9.
0.x.jar androidChrome.chrome\.chromedriverVersion=83
Press Press Enter to initiate start the offline suite execution.
...
View Offline Suite Execution Report
After running the tests, you need would want to review a comprehensive report to analyze the results.
Instantly You can check the results on the Real Time Reporting Portal.
Additionally, the offline suite creates a detailed summary report based on the location set in the Qualitia Offline Configuration Manager 's > General Settings tab.
If the report isn't You can manually upload the locally saved report, if it is not available on the Real-Time Reporting Portal after completion, because of for any of the following reasons:
Qualitia Server URL is not configured in the offline suite.
Connection to Qualitia Server fails during offline suite execution.
you can manually upload the locally saved report.
...
Edit Test Data for
...
Offline Suite
Before re-running tests or for a different testing scenario, you might need to change some test data.
One way to modify is through the Qualitia Client:
You can edit test data for an offline suite either using Qualitia client or test data excel file present in Offline Suite Folder.
Open your test case from the client.
Access the Test Data Explorer to edit.
After changes, recreate the offline suite. Refer to the section Work with Offline Packages.
...
Copy both the offline package and suite to the shared drive, ensuring you have read/write permissions.
Directly access the shared location and initiate the offline package by double-clicking on the 89.60.x jar file.
Info |
---|
Note: Using the command prompt with the full UNC path for execution isn't supported. |
...