Generating the test data by using Jenkins
When you perform a test during the continuous integration and continuous deployment process on Jenkins, you might want to generate the test data. You can generate random test data to test your application by integrating Jenkins with HCL® OneTest™ Data by using the HCL OneTest Data Jenkins Plugin.
Before you begin
- Installed the latest version of Jenkins.
- You must have an account in the Jenkins application.
- Downloaded the latest version of the HCL OneTest Data Jenkins Plugin for the HCL OneTest Data from HCL License & Delivery portal.
- Installed the HCL OneTest Data Jenkins Plugin in Jenkins.Note: You must restart the Jenkins application after installing the HCL OneTest Data Jenkins Plugin.
- Logged in to HCL OneTest Server.
- Created a project and a schema in HCL OneTest Data.
- Established a connection between HCL OneTest Data and a supported database. See
About this task
Procedure
- Log in to the Jenkins application.
-
Create a Jenkins free-style software project.
For more details about how to create a project in Jenkins, refer to the related link.
The project dashboard is displayed.
-
From the project dashboard, perform the following steps:
- From the Jenkins dashboard, select the project and click Build Now.
Results
You have successfully generated the test data by using the HCL OneTest Data Jenkins Plugin.
Note: If the test data generation request fails, you can view the test data generation logs. See
Viewing the test data generation logs.
What to do next
After the build completes, you can perform the following tasks:
- If you selected FILE as a data storage type, the generated test data is downloaded in the local file system at the specified location.
- If you selected JDBC as the data storage type, then you can use the generated test data from the database.
- If you selected MONGODB as the data storage type, then you can use the generated test data from the database.