Skip to main content

Managing Simulation Templates

Simulation templates serve as the basis for data generation. By pre-defining data generation configurations, users can quickly create data generation tasks that meet business needs, reducing the workload of manual configuration each time.

Prerequisites

To create a simulation template, the following conditions must be met:

  • You have already created or joined an organization, and the organization has subscribed to . Please ensure that your annual or monthly subscription is still active. For more information, please refer to Manage Organizations.
  • Your current account has been switched to the target organization. For more information, please refer to Switching to an Organization.

Creating Simulation Rules

NineData comes with a default simulation template that pre-defines 29 simulation rules corresponding to commonly used database field types. If these simulation rules do not cover your scenario, you can create new simulation rules within the template.

  1. Log in to the NineData Console.

  2. Click on > in the left navigation bar.
  1. Click on the tab on the page, then click in the column on the right side of the target template.

  2. On the page, click on the right side.

    tip

    You can also click in the column on the right side of the target simulation rule to customize a new simulation rule based on the existing one.

  3. Define the following parameters for the simulation rule, then click .

    Parameter
    Description
    Enter the name of the simulation rule.
    Select the simulation rule category. NineData comes with 7 built-in rule categories. If you need to create a new category, see Create Rule Category.
    Choose the generation algorithm, which is the core part of the data generation function, ensuring that the generated data meets the scenario requirements. After selection, you also need to choose the corresponding parameters for this algorithm. The parameters for each algorithm vary, please refer to the page display for accuracy.
    The percentage of null values generated when creating data. For example, if set to 50, there is a 50% chance of being null.
    Note: Only available when the target field allows NULL values.
    (Optional)The automatic recognition method of the column, written through a conditional judgment statement in the Java language. When creating a data generation task, the simulation rule will automatically match the eligible columns based on this recognition rule.

    The preview values generated by the current algorithm will be displayed in the on the right side of the page. Click to display new preview values.

Disabling Simulation Rules

NineData supports disabling specific simulation rules to control the scope and behavior of data generation, allowing users to adjust the data generation logic during the process according to specific business scenarios or needs.

  1. Log in to the NineData Console.

  2. Click on > in the left navigation bar.
  1. Click on the tab on the page, then click in the column on the right side of the target template.

  2. On the page, find the target simulation rule and turn off the toggle switch under the column.

    tip

    After turning off the target simulation rule, the rule will no longer take effect. To reactivate the rule, simply turn the switch back on.

Deleting Simulation Rules

If a custom simulation rule is no longer needed, it can be deleted.

Notes

Only manually created custom simulation rules can be deleted; system-built-in rules cannot be removed.

Operation Steps

  1. Log in to the NineData Console.

  2. Click on > in the left navigation bar.
  1. Click on the tab on the page, then click in the column on the right side of the target template.

  2. On the page, click in the column on the right side of the target custom simulation rule.

Creating Simulation Templates

If you have multiple test environments that require the application of multiple simulation templates, you can create custom simulation templates based on the default simulation template.

  1. Log in to the NineData Console.

  2. Click on > in the left navigation bar.
  1. Click on the tab on the page, then click on the right side of the page.

    tip

    You can also click in the column on the right side of the target simulation template to customize a new simulation template based on the existing one.

  2. Define the following parameters for the simulation template, then click .

    Parameter
    Description
    Select which existing simulation template to base the creation on. Simulation templates include dozens of simulation rules. By copying, you can first obtain a complete list and then customize it as needed.
    Enter the name of the simulation template.
    (Optional)Add a brief note or description for the simulation template, which is important for later management and reuse of the template. Other users can quickly understand the purpose of the template configuration.

Deleting Simulation Templates

If a custom simulation template is no longer needed, it can be deleted.

Notes

Only manually created custom simulation templates can be deleted; system-built-in templates cannot be removed.

Operation Steps

  1. Log in to the NineData Console.

  2. Click on > in the left navigation bar.
  1. Click on the tab on the page, then click in the column on the right side of the target custom simulation template. In the pop-up confirmation window, click .

Creating Rule Categories

Rule categories are used to classify various simulation rules, making it easy for users to quickly find the corresponding data generation rules when editing simulation templates through categories.

  1. Log in to the NineData Console.

  2. Click on > in the left navigation bar.
  1. Click on the tab on the page, then click in the column on the right side of the target template.
  2. Click on the right side of the page, then click in the pop-up window.
  3. Enter and the corresponding (optional), then click .

Deleting Rule Categories

If a custom rule category is no longer needed, it can be deleted.

Notes

  • Only manually created custom rule categories can be deleted; system-built-in categories cannot be removed.
  • When deleting a rule category, ensure that it is not associated with any simulation rules, otherwise, it cannot be deleted.

Operation Steps

  1. Log in to the NineData Console.

  2. Click on > in the left navigation bar.
  1. Click on the tab on the page, then click in the column on the right side of the target template.
  2. Click on the right side of the page, then find the custom rule category you want to delete in the pop-up window, click in the column on the right side, and then click in the pop-up confirmation window.