Versions Compared

Key

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

Watch the video tutorial about how to perform offline test suite execution here:

...

  1. Open the QAS client.

  2. Select the project from which you want to create an offline suite.

  3. From the Expand menu, click Execute.

  4. In the left pane, select a test suite, and mark the test cases that you want to include in the offline suite, and click Save.

  5. Click the Save execution files button ().

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

  7. Click the Save button(). 

Info

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

...

Info

Executing an Offline Suite using CLI Commands

...

  1. Open the Command Prompt.

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

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

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

  4. To 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.

      2. You do not need to add any key.

      3. It must be the first argument.
        For example: java -jar qualitiaoffline-8.3.x.jar "D:/ABCsettings.JSON"

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

    3. Environment Variable: Enter the environment variables and their associated values in the following format:

      java -jar qualitiaoffline-8.3.x.jar env.var1=value1 env.var2=value2

      var1 and var2 denote the environment variables, and value1 and value2 denote the associated values.

      For example, java -jar qualitiaoffline-8.3.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-8.3.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.3.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 shown in the following example:

      java -jar qualitiaoffline-8.3.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.3.x.jar androidChrome.chrome\.chromedriverVersion=83

  5. Press Enter to start the offline suite execution.

...

Method

Steps

Using Qualitia Client or OfflineConfigManager Utility

for Offline Packages

Do in the following order listed:

  1. Open the associated execution for a test suite.

  2. From the Browser list, select Chrome or Firefox

  3. Select the Desired Capabilities checkbox.

  4. If you have selected Chrome, select the chromeOptions checkbox, select the args checkbox, and enter --headless in the associated field.

  5. If you have selected Firefox, select the firefoxOptions checkbox, select the args checkbox, and enter --headless in the associated field.

  6. Click Ok.

Using CLI Command

Do in the following order listed:

  1. Open the Command Prompt.

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

  3. If you want to execute on Chrome, enter the following code:
    java -jar qualitiaoffline-xxxx.jar googleChrome.chromeOptions.args=--headless

  4. If you want to execute on Firefox, enter the following code:
    java -jar qualitiaoffline-xxxx.jar firefox.firefoxOptions.args=--headless.

...