Running tests in an Azure DevOps pipeline
You must create tests in IBM® DevOps Test Integrations and APIs (Test Integrations and APIs) for the application that you are testing. You must install the IBM DevOps Test Workbench extension in your organization and configure the IBM DevOps Test Integrations and APIs Task that you want to run as a job in the Azure DevOps pipelines.
- Completed the prerequisites tasks. See Prerequisites for Integration with Azure DevOps.
- Installed the IBM DevOps Test Workbench extension in your organization. See Installing the IBM DevOps Test Workbench extension.
- Installed an agent in the Azure DevOps pipeline. For more information, refer to Azure Pipeline agents.
- Created test cases under test plans if you want to view results of the test runs on the Test Plans dashboard.
- Created encrypted secrets or environment variables for your personal access token (PAT), if you want to use an encrypted PAT.
After you add the IBM DevOps Test Workbench extension in your Azure DevOps organization, you can use an existing pipeline or create a new pipeline to add the IBM DevOps Test Integrations and APIs Task. You can install an agent or use the agent that you installed in your default agent pool. You can add the Test Integrations and APIs tests as a task to your agent job, configure the task, and then run the task in the Azure DevOps pipeline.
If you have created test cases under test plans in a project on Azure DevOps, you must provide the details of the Azure DevOps URL, test plan, test case, and your PAT while you configure the test job in a pipeline so that you can view the results of the test run on your Test Plan dashboard.
- View the progress of the job run on the Summary page of the pipeline.
- View the test results on the Task page by clicking the task.Important:Although the status of the job result is displayed as a success, you must see the log file of the job run to check for any errors reported. When tests run successfully as a job, no errors are reported in the log. If errors are reported in the log, you must fix those errors and then run the job again.
- View the task logs from the pipeline summary page for the job you ran.
- View the test results on the Test Plans Dashboard if you created test cases under test plans in your Azure project.