Configuring a Jenkins environment for running tests
After you install the Integration Tester Test Execution plugin on the Jenkins server, you can configure the Jenkins environment to run the Integration Tester tests as a Jenkins build. You can also run the tests as an Ant task by using the test configuration file generated by Rational® Integration Tester.
Before you begin
You must have completed the following tasks:
- Installed the Integration Tester Test Execution plug-in by following the procedure described in Setting up the integration with Jenkins to run tests using this plugin.
- Generated an Ant script by using Rational® Integration Tester to run tests using Apache Ant plugin. See Generating Ant scripts to run tests.
Running tests by using the Integration Tester Test Execution plugin
Procedure
- Create a new project or modify an existing project on the Jenkins dashboard.
- Click Configure on the Project page.
- Click Add build step under Build.
-
Select Run Integration Tester Tests. The following dialog is
displayed:
-
Fill in values for the task as required.
Enter values for Installation directory, Project, Environment, and Tests. If you leave the Installation directory blank, the following environment variables are queried during runtime to find the directory:
INTEGRATION_TESTER_AGENT_HOME and INTEGRATION_TESTER_HOME.
The job fails if the value is blank. These variables must be visible to the user or the service account that is running the Jenkins primary or secondary server. If you update either of the environment variables, you must restart the Jenkins primary or secondary server for the values to take effect.
Optionally, click Advanced to view and update the other fields. For a detailed description of any field, click the question mark icon that is next to it.
- Click Save.
Running tests by using the Ant plugin
Procedure
- On the Jenkins dashboard, create a new project or modify an existing project.
- On the Project page, click Configure.
- Under Build, click Add build step.
- Select Invoke Ant.
- Click Advanced.
- In the Build File field, enter the location of the Apache Ant script that was generated by Rational® Integration Tester.
- Click Save.