Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Access to the QAS Client.

  • An offline package saved on your computer.

  • Basic familiarity with CLI operations.

🔂Procedure

Execute Offline Suite Using CLI Commands

The offline package runs the chosen offline suite with its set execution profile, which can be customized to override pre-configured settings.

  1. If testing on a mobile platform, ensure the execution profile has the right system requirements and settings.

  2. For remote or cloud executions, follow the guidelines for the respective environments. 

To execute an offline package using CLI commands.

  1. Open the Command Prompt.

  2. Go to the location where you have saved the offline package.

  3. Enter the following code: java -jar qualitiaoffline-9.0.x.jar

    1. The offline package is executed using the settings defined in the Qualitia Offline Configuration Manager.

  4. Override any of the following parameters:

    1. Mapped Execution Profile – Enter the location of the Execution Profile you want in the following ways:

      1. The location of the execution profile must be enclosed by double inverted commas. Note that you do not require any key.

      2. Your first argument must be as follows: java -jar qualitiaoffline-9.0.x.jar "D:/ABCsettings.JSON

    2. Offline Suite – Enter the location of the offline suite as SuitesDir="Suite_Path".
      For example, java -jar qualitiaoffline-9.0.x.jar SuitesDir="D:/OfflineSuite/Suite1"

    3. Environment Variable – Enter the environment variables and their associated values in the following format: java -jar qualitiaoffline-9.0.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 -jar qualitiaoffline-9.0.x.jar env.username=john.smith env.password=12345

    4. 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-9.0.x.jar googleChrome.version=81.0.1.36 . In this example, Google Chrome is the topmost parameter followed by its version. You may provide multiple property-value pairs separating them with space, as shown in the following example - java -jar qualitiaoffline-9.0.x.jar googleChrome.version=81.0.1.36 PageTimeoutInSeconds=10.

      1. 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

      2. 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

  5. Press Enter to start the offline suite execution.

View Offline Suite Execution Report

After running the tests, you would want to review a comprehensive report to analyze the results.

  • 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 > General Settings tab.

  • You can manually upload the locally saved report, if it is not available on the Real-Time Reporting Portal 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.

Edit Test Data for Offline Suite

...