Data Generator
Scenarios
DAS can automatically generate test data according to certain rules. This test data can be inserted into a database to test program functions. This topic describes how to generate test data according to the predefined rules.
Procedure
- On the top menu bar, choose Data Scheme > Data Generator.
- On the displayed page, click Create Task. In the displayed dialog box, configure the required parameters. Figure 1 Creating a data generation task
Figure 2 Configuring task parameters
- Conflict Policy
If you select Skip, the system skips data rows in conflict and continues generating data. If you select Replace, the system replaces existing rows with new ones that have the same primary key.
- Generation Type
On the Create Task page, double-click one column. Set rules for generating data randomly based on the column information. For example, if the column name is time, you need to specify start and end time and the generation format. Alternatively, select Based on current time.
- Conflict Policy
- Click Preview to check whether the generated data is as expected. If not, modify the settings. Then, click Generate. Alternatively, directly click Generate. Figure 3 Data preview
Figure 4 Test data generation progress
- In the task list, locate the created task and click Details. You can also delete the task as required. Figure 5 All tasks
Last Article: Data Scheme
Next Article: CloudDBA
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.