Versions Compared

Key

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

For Software Development Engineers in Test (SDET), executing tests offline provides flexibility, especially when there is no immediate access to the main software or in environments with limited connectivity.

This guide walks you through the process of working with managing test data for offline suites in the Qualitia Automation Studio (QAS) using Command Line Interface (CLI) commands.

📚Prerequisites

  • Access to the QAS Client.

  • An offline package saved on your computer.

  • Basic familiarity with CLI operations.

...

  1. Open your test case from the client.

  2. Access the Test Data explorer to edit.

  3. Once done, re-create the offline suite. Refer to the section Work with Offline Packages.

Edit Test Data Using Test Data File

You can also edit the test data directly in the Excel file located in the Offline Suite folder. However, it is recommended to edit through the Qualitia Client as it provides error alerts for incorrect data modifications.

...

In scenarios where access to the Qualitia Client is limited, the offline suite provides flexibility by allowing you to directly modify test data through the Excel file present in Offline Suite folder.

...

You want to quickly adjust test data without altering the structure of the file.

Note
  1. Don Do not add or remove columns, or change the column order.

  2. Use $NULL$ where you don do not want to set a value for a parameter.

  3. Delete rows for unwanted task or test case (TC) iterations.

Steps to Modify Test Data for an Offline Suite

  1. Go to the Offline Suite folder.

  2. Backup the test data file you want to edit.

  3. Open the test data Excel file.

  4. You can update the values for the below fields, as needed.

    1. TC Iteration: Shows the number for every TC Iteration. There must be at least one TC Iteration for executing the test case.

    2. Selection: Shows True for the enabled test case iterations; Otherwiseotherwise, it shows False. You can modify the values only for test case iterations.

    3. DataSetTag: Optionally, enter a label for identifying the dataset in the test case execution report. You can modify the values.

  5. To add a TC iteration, insert a row with values for TC Iteration Number, Selection, and DataSetTag (optional).

  6. For adding a task iteration, insert a row with values for associated parameters.

  7. Save the Excel file after editing.

The first row of the Excel file shows tasks in grey and the second row shows the corresponding task parameters. So, these rows are not editable. You can edit test data from the third row onwards.

Execute Offline Suite on a Shared Drive

You can execute an Offline Suite present in a shared drive for web and mobile applications in one of the following ways:

  • By mapping the shared drive to the local computer.

  • Without mapping the shared drive to the local computer.

Execute a Shared Offline Suite by Mapping

For a more seamless experience, you might prefer mapping the shared drive to your local system.

  1. Copy both the offline package and suite to the shared drive.

    1. Ensure you have the read and write permissions.

  2. Map this shared drive to your local computer.

  3. Update the offline suite settings, as required.

    1. For details, refer to Configuring the Settings for an Offline Suite.

  4. To execute, follow one of these approaches:

    1. Using the Command Prompt, go to the mapped location and execute the offline package with the right command.

      1. For details, refer to section Executing Offline Suite using CLI Commands.

    2. Open the mapped driver and simply double-click the offline package (9.x.x jar).

Execute a Shared Offline Suite Without Mapping

To execute a shared drive without mapping the shared drive to the local computer:

...

  1. Configure the offline suite as per the requirements. For detailed instructions, refer to Configuring the System Execution Profile Settings for a Desktop Project.

  2. Do one of the following: 

    • Open command prompt, navigate to mapped drive location that contains the offline package and offline suite.

    • Navigate to the mapped drive location that contains the offline package and the offline suite and double-click the offline package (9.x.x jar).

...

If your test case is for mobile applications, Appium Server is internally hosted on Qualitia client. However, still you can use a custom Appium server if you want to test on another Appium version. 

Executing an Offline Suite from a Shared Drive without Local Mapping

...

Method: Direct execution from the shared drive. Steps:

...

Info

Note: Using the command prompt with the full UNC path for execution isn't supported.

Execution using Continuous Integration Tools

...

Method: Integration via QAS settings.

  1. Ensure QAS's capability to integrate with CI tools like

    1. Jenkins

    2. TeamCity

    3. Bamboo.

  2. For mobile application tests, even though QAS hosts the Appium Server internally, use a custom Appium server for different Appium versions if needed.

  3. Set the CI_Tool property in the mapped execution profile before starting.

...

  1. Open the associated execution for a test suite.

  2. From the Browser list, select either Chrome or Firefox.

  3. Check the "Desired Capabilities" checkbox.

  4. Based on your browser choice:

    1. For Chrome:

      1. Select the chromeOptions checkbox.

      2. Check the args checkbox.

      3. Input --headless in the associated field.

    2. For Firefox:

      1. Select the firefoxOptions checkbox.

      2. Check the args checkbox.

      3. Input --headless in the associated field.

  5. Click Ok.

...