Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Execute an Azure DevOps build or release pipeline by mapping it with an offline suite. Create an offline suite that includes the test cases relevant to the pipeline.
Pre-requisites:The following section provides information about how to set up and execute an offline package as a part of an Azure DevOps pipeline.
The advantage of the Offline Package integration is that you can set up and configure the required Qualitia and ADO components easily and quickly. You can map an Azure DevOps pipeline with an offline suite that contains the associated test cases, which are not updated regularly.
However, it has the following disadvantages:
- Whenever any test case is updated or created, you must create the associated offline suites again and also map the associated pipelines with new offline suites.
- You cannot have parallel executions of test cases.
- Qualitia does not send the suite execution results to Azure DevOps.
Hence, Qualitia also supports the Azure DevOps Advanced integration that solves all the above mentioned problems. For detailed instructions, refer to Azure DevOps Advanced Integration.
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 executionexecutions. For more details, refer to Prerequisites for Offline Suite Execution.
Qualitia also recommends that you must know the fundamentals of offline suite executions
except for the CLI commands. For more information, refer to Offline Package.
ImplementingConfiguring the
Components in your ComputerEnabling your computer to execute an offline suiteQualitia and Azure DevOps Components
The process to enable offline suite execution through Azure DevOps includes the following processsteps:
Create a build or a release pipeline to map with Qualitia test cases.
For detailed instructions, refer to the following links:
Process | Description |
---|---|
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 File |
Specify 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 |
You can go ahead to execute the Azure DevOps pipeline after configuring it tasks.
To know how to execute an Azure DevOps pipeline, refer to https://docs.microsoft.com/en-us/azure/devops/?view=azure-devops
Configuring the Offline Package File
Info |
---|
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:
- Open the extracted Qualitia Offline folder.
- Open the config folder.
- Open the startupSettings file in a test text editor, such as Notepad or Notepad++.
- Set value 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 two tasks that are used to:
Invokea task to iinvoke the Offline Package and the mapped offline suite as per their specified locations
.Get the total number of test cases executed and the number of test cases executed for each execution status.
To map an Azure DevOps pipeline with an offline suite:
- Open the pipeline in Azure DevOps.
- Add two Command Line Prompt Utilities with names of your choice.
Azure DevOps adds these two as pipeline tasks.
To know how to add pipeline tasks, refer refer to https://docs.microsoft.com/en-us/azure/devops/?view=azure-devops - Open the first task to and enter the following information, in information in the Script:
- Enter the location of the the 64-bit Java executable path enclosed with inverted commas.
- Add -jar separated by a space next to the Java path
- Add Qualitia offline suite jar path enclosed with inverted within inverted commas next to -jar.
For example, "C:\Program Files\Java\jre1.8.0_261\bin\java.exe" -jar "D:\offliesuitesofflinesuites\Qualitia Offline\qualitiaoffline-8.3.1.jar" - Optionally, you can enter the CLI Commands to override either the execution profile or the browser type:To override the specific settings of the mapped execution profile, enter the location of the new execution profile next to the offline suite jar path.
For example, enter "D:\offliesuites\Qualitia Offline\Edge.json" separated by space after the Qualitia offline suite jar path.To override the browser type, enter BrowserName=GoogleChrome chromedriverpath=D:\chromedriver_win32\chromedriver.exesuch 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.
- Expand Advanced, enter the location of the offline suite enclosed with inverted commas, in within inverted commas in the Working Directory.
For example, "D:\offliesuitesofflinesuites\PaymentModule\Qualitia Offline". - Open the second task to enter the following information, in Script:
@echo PassedCount = %PASSEDCOUNT%
@echo FailedCount = %FAILEDCOUNT%
@echo DefectCount = %DEFECTCOUNT%
@echo NotExecutionCount = %NECOUNT%
@echo TotalCount = %TOTALTCCOUNT%
Note: You can specify the names of tasks, such as Qualitia Offline Suite Name and Suite Name Settings to identify the pipeline with the offline suite.
You can now execute the Azure DevOps pipeline.
Execution Guidelines and Best Practices
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:
- If you want to push 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 enable the 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.
- You can To execute a pipeline on different browsers, environments and , 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.Whenever relevant test cases are updated or newly added relevant in the corresponding test suite, perform the following steps:Create the offline suite again.
- Save the offline suite in another location of your computer.
- Open the Azure DevOps pipeline to replace the mapped offline suite.
- 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 Qulaitia 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 besides to next to the suite execution cartname.
However, if you did not connect with , in certain cases, the offline suite execution results are not pushed to Qualitia Server or are partially pushed when the connection with to Qualitia Server was lost fails during the pipeline execution. In such cases, you can upload the locally saved suite execution report in reports to the Real Time Reporting Portal. For more details, refer to the following waystopics:
- Uploading a Test Suite Execution Summary Report
- Uploading Multiple Suite Execution Reports to Real - Time Reporting Portal
Known Issues or Limitations
Limitations
- Whenever any test case is updated or created, you must create the associated offline suites again and also map the associated pipelines with new offline suites.
- You cannot have parallel executions of test cases.
- Does QAS does not send the suite execution results to Azure DevOps.
On this page:
Table of Contents | ||||
---|---|---|---|---|
|