Versions Compared

Key

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

...

For Software Development Engineers in Test (SDET), working offline is often essentialexecuting tests offline provides flexibility, especially when network access is limited or when testing needs to be done without using licensesthere is no immediate access to the main software or in environments with limited connectivity.

This guide will walk you through the process of setting up and executing tests offline.

📚Prerequisites📚Prerequisites

  • Access to QAS - Client.

  • Familiarity with the project you are testing.

  • Custom browser profile on your computer, if required.

...

If you are traveling or working in a location with unstable internet., you may need to execute tests without connecting to the QAS - Client. In such cases, an Offline Package lets you run tests without accessing QAS - Client. An offline suite is a local copy of a test suite, and it can run on various environments like local machines, remote servers, shared drives, or even cloud setups without having to use up any QAS licenses.

...

  1. Login to QAS - Client.

  2. Select the project for which you want to download the offline packageBOT.

  3. From the left navigation menu, go to Execute tab.Then, go to the Qualitia BOT.

  4. Select a folder to save the Offline Package BOT and click OK.

    1. A file named Qualitia Offline.zip is generated.

  5. To proceed, extract or unzip the Qualitia Offline.zip file.

  6. To Save offline Suite Go to Execute tab

Create an Offline Suite

The offline suite contains the associated test cases and test data, and a mapped execution profile that are used to execute it.

...

  1. Login to QAS - Client.

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

  3. From the left navigation menu, go to Execute tab.

  4. From the left pane, select a test suite, and check the test cases you want offline.
    Note: Test cases should be marked for execution.

  5. Click Save.

  6. Click Save execution files and choose an execution profile Export Execution Files option from menu.

    1. Click the dropdown and select Export the published testcases to export only the published test cases.

    2. Testcase to be exported should be marked other user will get popup 'Mark at least one test case to export the Suite.'

    3. If before exporting some testcases go out of sync then sync popup appears and on click of sync option this testcases get synced.

Info

By default, all desktop projects use the System Execution Profile.

Configure Settings for Offline Suite

...

  1. Open the extracted Qualitia Offline file in from the previously - mentioned Create an Offline Suite procedural steps.

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

  3. Do one of the following:

    1. Click Browse Nextnext to Select the Suite Directory, and then locate plus and select an the offline suite.

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

  4. From Select the profile to edit, select an execution profile for the test suite.

    1. The Qualitia Offline Configuration Manager shows the offline suite name and the selected execution profile.
      You can see the suite name and profile. Refer to the section Execution ProfilesNote: The offline suite executions that are created to automate testing on a desktop application uses the default execution profile only.

  5. From the Mapped Profile list, select an Execution Profile you want to use.

    1. The default Execution Profile is the one saved during offline suite creation.

  6. You have the option to edit one or more settings, if required:

    1. To update Qualitia Client settings, click the Qualitia Client tab. For more information, refer

      to General

      to Configuration and General Settings.

    2. To change the value of environment variables, click the Environment Variable tab. For more information, refer to Environment Variable.

    3. To update header values, go to the Rest Generic Header tab.

      1. Opt for this only if Rest Generic Headers are used in the test cases.

    4. To update settings for the selected execution profile, click the Execution Profile tab. For more information, refer to

      1. Configuring the System Execution Profile for Web and Mobile Projects: Shows the details on how to automate testing on web and mobile applications.

      2. Configuring the System Execution Profile for Desktop Projects: Shows the details on how to automate testing on a desktop application.

    5. Once updated, click OK to save the changes.

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. Open the Command Prompt.

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

  3. Enter the following code: java -jar qualitiaoffline-89.60.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-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 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 -jar qualitiaoffline-89.60.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-89.60.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-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 this - java -jar qualitiaoffline-89.60.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-89.60.x.jar androidChrome.chrome\.chromedriverVersion=83

  5. Press Enter to start the offline suite execution.

Info

 To execute a test suite on a mobile platform, ensure that you have configured the system requirements and settings in the associated execution profile. To execute the offline suite on remote or cloud platforms, then you must follow the appropriate environment guidelines. For more information, refer to Supported Environments Guidelines.

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.