Running tests in an Azure DevOps pipeline
You must create tests in HCL OneTest™ API for the application that you are testing. You must install the HCL OneTest Studio extension in your organization and configure the HCL OneTest API Task that you want to run as a job in the Azure DevOps pipelines.
Before you begin
- Completed the prerequisites tasks. See Prerequisites for Integration with Azure DevOps.
- Installed the HCL OneTest Studio extension in your organization. See Installing the HCL OneTest Studio extension.
- Installed an agent in the Azure DevOps pipeline. For more information, refer to Azure Pipeline agents.
About this task
After you add the HCL OneTest Studio extension in your Azure DevOps organization, you can use an existing pipeline or create a new pipeline to add the HCL OneTest API Task. You can install an agent or use the agent that you installed in your default agent pool. You can add the HCL OneTest™ API tests as a task to your agent job, configure the task, and then run the task in the Azure DevOps pipeline.
Procedure
-
Open your Organization page in Azure DevOps and perform
the following steps:
-
Select the pipeline and complete the following steps:
-
Add a task to the agent job by completing the following steps:
Note: You can remove the tasks that are not required in your job. Right-click the tasks in the list and click Remove selected task(s) to remove them.
-
Select the HCL OneTest API Task
option and configure the settings by performing the following steps:
-
Perform any of the following actions:
- Click Save to save the configured settings
for the task.Note: The task is not queued for a run.
You can save the task to a build pipeline and then decide to run the build at a later time.
- Click Save & queue to save the
configurations and queue the run in the pipeline.
The Run pipeline dialog box is displayed.
- Click Save to save the configured settings
for the task.
-
Complete the following steps:
Results
What to do next
You can view the progress of the job run on the Summary page of the pipeline.
- You can click the task for the job to open the Task page to view the test details.
- You can open each of the jobs to view the individual job details.