Running tests in an Azure DevOps pipeline
You must create tests in Rational® Integration Tester for the application that you are testing. You must install the IBM Rational Test Workbench extension in your organization and configure the IBM Rational Integration Tester 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 IBM Rational Test Workbench extension in your organization. See Installing the IBM Rational 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.
About this task
After you add the IBM Rational Test Workbench extension in your Azure DevOps organization, you can use an existing pipeline or create a new pipeline to add the IBM Rational Integration Tester Task. You can install an agent or use the agent that you installed in your default agent pool. You can add the Rational® Integration Tester 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.
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 IBM Rational Integration
Tester 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 is displayed.
- Click Save to save the configured settings
for the task.
-
Complete the following steps:
Results
What to do next
- 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.