Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 40 Next »

The following section provides information about how to set up and execute an offline package as a part of ADO pipeline. The advantage of Azure DevOps integration with Offline Package is that you can set up and configure the required Qualitia and ADO components easily. 

Qualitia also supports online integration with Azure DevOps, which has the following advantages over the offline package integration:

  1. Synchronizes the updated and new test cases easily when a pipeline is associated with several test cases. In offline package integration, whenever any test case is updated or created, you must create the associated offline suites again and also map the updated offline suites with their associated pipelines. 
  2. Supports parallel execution of test cases to reduce the duration of pipeline execution.
  3. Allows to view the pipeline execution results from the Azure DevOps server too.

For detailed instructions on Azure DevOps online integration, refer to Azure DevOps Online Integration for more information. 

Pre-Requisites

Ensure that your computer:

  • Contains the Azure DevOps self-hosted agent.
  • Contains the Qualitia Offline Package and necessary offline suites.
    Note: If the Qualitia client is not installed on your computer, you can create these components from another computer where the Qualitia client is installed, and then transfer them to your computer.
  • Satisfies all the pre-requisites for offline suite executions. For more details, refer to Prerequisites for Offline Suite Execution

Qualitia also recommends that you must know the fundamentals of offline suite executions. For more information, refer to Offline Package.

Configuring the Qualitia and Azure DevOps Components

The process to enable offline suite execution through Azure DevOps includes the following steps:

ProcessDescription

Creating an Offline Package 

Offline package creation is a one-time activity on your computer to execute offline suites. For detailed instructions on offline suite creation, refer to Creating an Offline Package.

Configuring the Offline Package FileSpecify in the Offline Package that the associated CI Tool is Azure DevOps. This is also a one-time activity. For detailed instructions on configuring the Offline Package file, refer to Configuring the Offline Package File.
Creating an Offline Suite

Create a test suite that includes the test cases relevant to the pipeline. After a test suite is created, create an offline suite.

For detailed instructions on offline suite creation, refer to Creating an Offline Suite.

Mapping an Azure DevOps Pipeline with an Offline Suite

Create two tasks in the Azure DevOps pipeline and configure them to map with the Offline Package and the associated offline suite.

For detailed instructions, refer to Mapping an Azure DevOps Pipeline with an Offline Suite.

Configuring the Offline Package File

You can skip this configuration if you have set the value of CI_Tool to Azure DevOps in the mapped execution profile of the offline suite that you want to execute.

To configure the Offline Package file:

  1. Open the extracted Qualitia Offline folder.
  2. Open the config folder.
  3. Open the startupSettings file in a text editor, such as Notepad or Notepad++.
  4. Set the value of CI_Tool to Azure DevOps.

Mapping an Azure DevOps Pipeline with an Offline Suite

After creating a build or a release pipeline, map it with the corresponding offline suite. In the Azure DevOps pipeline, create a task to iinvoke the Offline Package and the mapped offline suite as per their specified locations.

To map an Azure DevOps pipeline with an offline suite:

  1. Open the pipeline in Azure DevOps.
  2. Add two Command Line Prompt Utilities pipeline tasks.
    To know how to add pipeline tasks, refer to https://docs.microsoft.com/en-us/azure/devops/?view=azure-devops
  3. Open the first task and enter the following information in the Script:
    1. Enter the location of the 64-bit Java executable path enclosed with inverted commas.
    2. Add -jar separated by a space next to the Java path
    3. Add Qualitia offline suite jar path enclosed within inverted commas next to -jar.
      For example, "C:\Program Files\Java\jre1.8.0_261\bin\java.exe" -jar "D:\offlinesuites\Qualitia Offline\qualitiaoffline-8.3.1.jar"
    4. Optionally, you can enter the CLI Commands to override either the execution profile or specific settings of the mapped execution profile, such as browser type. For detailed instructions on how to use CLI Commands to override the settings, refer to Step 4 of Executing an Offline Suite using CLI Commands.
  4. Expand Advanced, enter the location of the offline suite enclosed within inverted commas in the Working Directory.
    For example, "D:\offlinesuites\PaymentModule\Qualitia Offline".

Execution Guidelines and Best Practices

After mapping an Azure DevOps pipeline with an offline suite, you can now execute the mapped pipeline. To know how to execute an Azure DevOps pipeline, refer to https://docs.microsoft.com/en-us/azure/devops

Qualitia recommends considering the following best practices to optimize the Azure DevOps pipeline executions that are mapped with offline suites: 

  • Whenever the test cases of the corresponding test suite are updated in QAS, perform the following steps:
    • Create the offline suite again.
    • Save the new offline suite in another location of your computer.
    • Open the Azure DevOps pipeline to replace the mapped offline suite.
  • To allow the suite execution results to display in the Real Time Reporting portal, ensure that you specify the Qualitia Server URL and select the Real Time Reporting checkbox in the mapped execution profile.
  • Before executing a pipeline, ensure that the mapped execution profile of the corresponding offline suite is configured as per the requirements. For detailed instructions, refer to Configuring the Settings for an Offline Suite.
  • To execute a pipeline on different browsers, environments, and other execution settings. Create different execution profiles in the QAS client and export them into the Offline Suite folder of your computer. For detailed information on execution profile, refer to Working with Execution Profiles.
  • You can edit the test data for an offline suite and execute the pipeline again to cover more test scenarios. For detailed instructions on editing test data for an offline suite, refer to Editing the Test Data for an Offline Suite.

Viewing the Suite Execution Reports

If you have configured the Qualitia Server URL in the mapped execution profile, you can track the Azure DevOps offline execution in the Real Time Reporting Portal.

The suite execution result is displayed as Offline | Azure DevOps next to the suite execution name.

However, in certain cases, the offline suite execution results are not pushed to Qualitia Server or are partially pushed when the connection to Qualitia Server fails during the execution. In such cases, you can upload the locally saved suite execution reports to the Real Time Reporting Portal. For more details, refer to the following topics:

Known Issues or Limitations

  • You cannot have parallel executions of test cases.
  • QAS does not send the suite execution results to Azure DevOps.   

On this page:


  • No labels