Versions Compared

Key

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

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.

  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. Navigate Go to the location of your where you have saved the offline package.

  3. InputEnter the following code: java -jar qualitiaoffline-89.60.x.jar to execute the

    1. The offline package

    with
    1. is executed using the

    default
    1. settings

    .However, if you wish to override certain settings
    1. 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 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. It Your first argument must be the first argument. For exampleas follows: java -jar qualitiaoffline-89.60.x.jar "D:/ABCsettings.JSON"

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

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

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

      1. If you are overriding the mapped execution profile, enter it as the first

      argument, as shown in the following example:
      1. argument as this - java -jar qualitiaoffline-

      8
      1. 9.

      6
      1. 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 
      1. as  chrome.chromedriverVersion, which is under

      androidChrome,
      1. Android Chrome as shown

      in the following example:
      1. here -
        java -jar qualitiaoffline-

      8
      1. 9.

      6
      1. 0.x.jar androidChrome.chrome\.chromedriverVersion=83

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

  1. Open your test case from the client.

  2. Access the Test Data Explorer to edit.

  3. After changes, recreate the offline suite. Refer to the section Work with Offline Packages.

...

  1. Copy both the offline package and suite to the shared drive, ensuring you have read/write permissions.

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

...