Versions Compared

Key

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

An Offline Package contains the software components to execute an offline suite without using Qualitia Client. 

An offline suite is a copy of a test suite that you can save on a local machine.  You can execute an offline package on local, remote, and cloud environments.

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:

  1. Open the Qualitia Client.

  2. Open any Qualitia project.
  3. On the File menu, click Offline Package.

  4. Select a folder to save the Offline Package.

  5. Click Ok.
    A file called Qualitia Offline.zip is created in the selected location.

  6. Extract this Zip file. 

Creating an Offline Suite

The offline suite contains the associated test cases and test data, and the execution profile that you want to use to execute an offline package.

To create an offline suite:

  1. Go to the Execution tab.

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

  3. Click Offline Suite.
  4. 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.

  5. Click Save 

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

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:

  1. Open the extracted QualitiaOffline file.

  2. From the Configuration Manager folder,  and double-click the Qualitia Offline Configuration Manager. 

  3. Do one of the following;
    1. Click Browse next to Select the Suite Directory, and then locate and select the offline suite.

    2. Enter the location path of the offline suite folder, and press Tab.

  4. 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: If the offline suite is used to automate testing on a desktop application, it does not require an you need to use the default execution profile only.
  5. From the Mapped Profile list, select an execution to which profile that you want to mapuse.
  6. Do the following in the order listed to edit the settings:

    1. To change the Qualitia Client settings, click the Qualitia Clienttab. For more information, refer to General Settings.

    2. To change the values of environment variables, click the Environment Variable tab
      Note:

      • You cannot add new or edit environment variableskeys.

      • You cannot add any a value in the encrypted format and edit any value entered in the encrypted format.
        For more information, refer to Environment Variable.

    3. Perform this step only if Rest Generic Headers are used in the test cases.
      Do the following in the order listed:
      1. Click the Rest Generic Header tab.
      2. Change the header properties and values.
      3. Click Ok to Save.
        Note: You cannot add new or edit header propertieskeys.
    4. To change the settings for the selected execution profile, click the Execution Profile tab.
      For more information, refer to


Info

If you are going to execute on remote or cloud platforms, then you must follow the appropriate environment guidelines. For more information, refer to Supported Environments Guidelines.


Executing an Offline Package

The offline package executes the offline suite that you want using its mapped execution profile.

To execute an offline package:

  1. Open the extracted QualitiaOffline file.
  2. Double-click the qualitiaoffline-8.0.0.jar file to start the execution.
  3. Enter the location of the offline suite folder.
  4. In the same line, enter the following code:
    java -jar qualitiaoffline-8.0.0.jar
  5. Press Enter to start the execution.

    Info

    If the available drive space of Real time reporting portal is less than 10%, a message is displayed, which shows that Real Time reporting portal cannot display the offline suite execution results.

    Do one of the following:

    • Click Continue with offline suite execution, without viewing the suite execution results in Real Time Reporting portal.
    • Click Cancel to cancel the offline suite execution.


    Info

    If UFT is working on a test case, which is not associated with Qualitia, then the following message is displayed.

    A UFT instance is already opened. Do you want to execute the selected Qualitia test case?

    Do one of the following:

    • Click No to avoid any data loss in the UFT test case. You need to save the UFT test case, and close the UFT and then start the offline execution again.

    • Click Yes to continue the offline suite execution.


Executing an Offline Package using CLI Commands

CLI commands are used to execute an offline package when:

  • A CI tool (Jenkins, Team City, and Bamboo) is used to invoke the test suite execution

  • You want to override any of the pre-configured settings

To execute an offline package using a CLI command:

  1. Open the Command Prompt.

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

  3. Enter the following code:
    java -jar qualitiaoffline-xxxx.jar

  4. If you want to use another execution profile, enter the following code in the same line.
    java -jar qualitiaoffline-8.0.0.jar ABC.json
    ABC denotes the name of execution profile.
    Note: The ABC execution profile must be present inside the Execution Profile subfolder. present inside the folder that contains the offline suite.
  5. If you want to override any of the parameters defined in the execution profile, enter the parameters preceded by their hierarchy in name=value format as command-line arguments.


Info

For example, to use a specific version of Google Chrome, enter the command line argument as follows:
java -jar qualitiaoffline-xxxx.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 a space, as shown in the following example:
java -jar qualitiaoffline-xxxx.jar googleChrome.version=81.0.1.36 PageTimeoutInSeconds=10


  1. Press Enter to start the offline suite execution.

Viewing an Offline Package 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

Child pages (Children Display)

On this Page:

Table of Contents