Installing software
About this task
Depending on the operating system of the system where you intend to install the software, refer to the relevant OS documentation for the procedure.
Procedure
What to do next
You must configure environment variables for the installed software components.
Setting up environment variables
Procedure
Setting the JAVA_HOME environment variable
Setting the INTEGRATION_TESTER_HOME environment variable
What to do next
You must set up the integration test resources.
Setting up integration test resources
Before you begin
You must set up your own project resources that you want to test by using HCL OneTest API. Alternatively, you can use the samples that you can download from https://github.com/ibm-rtvs/maven.
- The integration test project with the file extension as .ghp and opens in HCL OneTest API.
- A JUnit integration test used to test a running stub.
- POM files to run stubs or tests.
Procedure
Creating an Integration Tester project
Generating a POM file
Using the samples
What to do next
Communication with HCL Quality Server uses the HTTPS protocol. If the server certificate used by HCL Quality Server is not trusted by your system, Maven cannot connect and download files from HCL Quality Server. To enable Maven to use the Java installation you must add the certificate used by HCL Quality Server to the JDK trust store.
Adding HCL Quality Server certificate to JDK trust store
Before you begin
You must have verified whether HCL Quality Server is accessible.
About this task
You must first export the HCL Quality Server certificate by using the browser interface, and then add the exported certificate to the certificate in the JDK trust store.
Procedure
Exporting the HCL Quality Server certificate
Importing the HCL Quality Server certificate
Verifying certificate import
Results
You have added the HCL Quality Server certificate and enabled Maven to use the HCL Quality Server plug-in.
What to do next
You can run the Maven project commands. Optionally, you can edit the existing POM files in your Maven project to run the integration tests.
Modifying the POM files
About this task
You can skip the steps in this task if you are using the sample project, tests, and POM files or if you have generated the POM file by using the HCL OneTest API UI.
Procedure
Adding HCL Quality Server URL
Updating environment and project details
Modifying startup timeout
Running Maven commands
Before you begin
- You must have set up the project and tests in HCL OneTest API.
- You must have generated the POM files from HCL OneTest API.
- You must have imported the HCL Quality Server certificate into the JDK trust store.
- If you have existing POM files that you use in your Maven build project, you must have modified the POM files to point to HCL OneTest API project and tests, and also point to the installed HCL Quality Server.
Procedure
Running Maven build
Adding the trace logging to the build command
Updating the version in the HCL Quality Server plug-in
Viewing Maven build results
Procedure
- Navigate to the Maven folder that contains the POM file and project files. For example, ${USER_HOME}\bin.
- Open target\site folder.
- Open failsafe-report.html report to view the Maven build report.