Data Generator (Not Promoted)
DAS can automatically generate test data according to certain rules. This test data can be inserted into a database to test program functions. This section describes how to generate test data according to the predefined rules.
Procedure
- Click
in the upper left corner and select a region and project.
- Click
in the upper left corner, and under Databases, click Data Admin Service.
- In the navigation pane on the left, choose Development Tool.
- Locate the DB instance that you want to log in to and click Log In in the Operation column.
- On the top menu bar, choose Data Scheme > Data Generator.
- On the displayed page, click Create Task.
- In the displayed dialog box, configure required 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 Mode
On the Create Task page, double-click one column you want to select. 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 data that will be generated can meet your requirements. If not, adjust the generation rules.
- Click Generate.
- In the task list, locate the created task and click Details.
You can also delete the task as required.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.