During the functional testing of a program, a large amount of test data complying with specific rules needs to be inserted into the database. DAS allows you to automatically, efficiently generate test data based on specific rules.
- On the top menu bar, choose Data Scheme > Data Generator.Figure 1 Data Generator
- On the displayed page, click Create Task. In the displayed dialog box, configure the required parameters.Figure 2 Creating a data generation taskFigure 3 Configuring task parameters
- Conflict Policy
- Generation type
You can set the rules for randomly generated data based on the column settings. For example, if the column type is time, you can set the start time, end time, and format, or set the value to the current time.
- Click Preview to check whether the generated data is as expected. If not, modify the settings. Then, click Generate. Alternatively, directly click Generate.Figure 4 Data previewFigure 5 Test data generation progress
- In the task list, locate the created task and click Details. You can also delete the task as required.Figure 6 Task list