doc-exports/docs/das/umn/das_13_0053.html
Wang , Deng Ke 0f41701050 DAS UMN Initial version
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com>
Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
2022-10-18 12:51:00 +00:00

3.1 KiB

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 section describes how to generate test data according to the predefined rules.

Procedure

  1. On the top menu bar, choose Data Scheme > Data Generator.
  2. On the displayed page, click Create Task. In the displayed dialog box, configure the required parameters.

    • Rows to Generate

      A maximum of 1,000,000 rows of data can be generated.

    • 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.

  3. Click Preview to check whether the generated data is as expected. If not, modify the settings. Then, click Generate. Alternatively, directly click Generate.
  4. In the task list, locate the created task and click Details. You can also delete the task as required.