Creating a dataset
You can create datasets in HCL OneTest™ Server to replace the values of existing dataset with the values of new dataset during a test or schedule run.
Before you begin
You must be a member of the project with the Owner or Tester role, and you must have completed the following tasks:
-
Created a project in HCL OneTest™ Server. See Adding a project.
-
Added a Git repository to your project. See Adding repositories to a server project.
About this task
The default dimension of the dataset that you create in HCL OneTest™ Server is 1 Row, 1 Column (1R X 1C) dataset. You can enter the number of columns and rows required for the dataset during the creation of dataset.
When you want to create or modify any dataset, you must have an edit branch. You can create the edit branch during the creation of dataset. All your dataset reside in the edit branch until you publish or discard the changes.
After you create the dataset, you can either publish your changes to a remote Git repository or you can discard the changes made to the dataset. The edit branch automatically disappears from the Branch list as well as from the remote Git repository and sets the global branch to the previously selected branch in the following conditions:
- When you publish changes to the remote Git repository.
- When you discard the changes made in the dataset.
Procedure
- Log in to HCL OneTest™ Server if you are not already logged in.
- Open a project from the team space.
- Go to Branch from the list where you want to store the dataset. , and then select the
-
Click Create dataset.
Based on the Branch that you selected, the following window is displayed:
-
Edit Branch - If you selected other than the edit branch.
-
Create dataset – If you selected the edit branch.
-
-
Perform one of the steps described in the following table to select or create
the edit branch:
- Enter a name for the dataset in the Asset name field.
- Select the place where you want to save the dataset in the Location field, and then click Next.
- Choose Create an empty dataset from the Select source list.
- Enter the number of columns and rows required for the dataset that you want to create.
-
Click Create.
The new dataset opens in a CSV Editor in a web browser. The dataset created is listed on the Datasets page.
Results
What to do next
You can perform the following tasks:
-
Add, modify, or remove data in the dataset. See Editing a dataset.
-
Publish the dataset to the Git repository so that other members of the project can use the dataset. See Publishing a dataset.