Configuring a Jenkins environment for viewing test results
The Integration Tester Test Execution plugin helps to run the test suites. You can also view the test suite results. The Jenkins environment must have the Integration Tester Results plugin for Jenkins installed.
Before you begin
You must have performed the following tasks:
- Ensured that the HCL OneTest™ API project that you are using has a valid project results database configuration.
- Verified that the connection to the project results database is functioning. Click HCL OneTest™ API, click the Server Settings tab on the Project Settings window, and then click Test Connection. on the menu bar of
- Ensured that your project is connected to a valid instance of the server. Details about the instance are used by the test execution when it generates console output that is used by Jenkins to display test results.
- Verified that the connection is functioning. Click Server Settings tab on the Project Settings window, and verify that a green check mark icon is displayed next to the URL field on the HCL Quality Server area of the tab. If no URL is displayed or if there is a red X icon next to the URL field, contact your HCL OneTest™ API project administrator. on the menu bar, then click the
- Ensured that the HCL® Quality Server instance that you are using has the same project results database configuration as the project. Click on the menu bar, click the Server Settings tab on the Project Settings window, and then in the HCL® Quality Server section, click Publish results database connection.
- Ensured that the Integration Tester Results plugin is installed. For details, see Setting up the integration with Jenkins.
- Configured a Jenkins project (job) to run an HCL OneTest™ API test suite either by using Ant or by using the Integration Tester Test Execution plugin. For details, see Configuring the Freestyle project by using the Integration Tester Jenkins Plugin or Configuring the Freestyle project by using the Ant script.
Procedure
-
Log in to the Jenkins server.
The Jenkins dashboard is displayed.
- Open your Jenkins Freestyle or Pipeline project from the list.
- Click Configure on the Project page.
- Click the option, Add post-build action under Post-build Actions.
- Click Integration Tester Results View.
- Click Save.
What to do next
You can run test assets from the Jenkins server. See Running tests from Jenkins.