Skip to content

Dataset Management

The AngusTester Dataset Management module enables unified management and dynamic invocation of test data, supporting multiple data sources to build datasets and improving test data reusability.

1. Dataset Creation Operations

1. Add Static Dataset

Description: Generate dynamic parameter values using Mock functions
Steps:

  1. Data → Dataset Management Click "Add Static Dataset"
  2. Configure key parameters:
    • Name format: [Purpose]_Dataset (e.g., Login_User_Data)
    • Parameter definition (Name/Type/Value):
      • Value type: Constant/Mock function (e.g., @Username())
      • Password type: Encrypt sensitive fields
  3. Verify data generation in the Preview tab

    ⚠️ Supports up to 200 parameters per dataset.

2. Add File Extraction Dataset

Description: Import data in bulk from external files
Steps:

  1. Click the dropdown Add Static Dataset▼ and select "File Extraction Dataset"
  2. Configure extraction rules:
    • File path (supports CSV/XLSX)
    • Start position (row + column index)
    • Column mapping (file column → parameter name)
  3. Check data mapping accuracy in the Preview tab

    ❗ Dataset must be reloaded if the file changes.

3. Add JDBC Extraction Dataset

Description: Build datasets using SQL queries
Steps:

  1. Click the dropdown Add Static Dataset▼ and select "JDBC Extraction Dataset"
  2. Configure database connection:
    • Data source (must be pre-configured)
    • SQL query (SELECT statement)
    • Column mapping (result set fields → parameter name)
  3. Verify query results in the Preview tab

    ⚠️ Sensitive fields must be encrypted.

2. Dataset Maintenance Operations

1. Import Dataset

Description: Bulk import datasets via YAML files
Steps:

  1. Click Import in Dataset Management
  2. Upload a compliant YAML file
  3. The system automatically:
    • Validates the format
    • Executes overwrite/skip policies

2. Clone Dataset

Description: Quickly create similar datasets
Steps:

  1. Click Clone in the dataset list
  2. The system automatically:
    • Creates a copy (appends "-Copy.xxx" to the name)
    • Retains all parameter configurations
      Key parameters must be adjusted manually

3. Edit Dataset

Description: Update dataset configurations
Steps:

  1. Click Edit in the dataset list
  2. Modifiable fields:
    • Name/description
    • Parameter additions/deletions
    • Extraction rules

4. Batch Delete

Description: Clean up obsolete datasets
Steps:

  1. Select target datasets
  2. Click Batch Delete
  3. Confirm the operation
    ❗ Associated references must be removed first.

3. Dataset Application Integration

1. Parameterized API Reference

Description: Dynamically invoke data in API requests
Steps:

  1. Open the target API in API → Service Management
  2. Click Introduce Dataset in the Parameterization tab
  3. Enter parameter values as {ParameterName}

    ⚠️ Unresolved parameters are highlighted in red.

2. Parameterized Scenario Reference

Description: Apply data in bulk within test scenarios
Steps:

  1. Open the target scenario in Scenario Management
  2. Add a reference in Execution Config → Dataset
  3. Enter step parameters as {ParameterName}
    ❗ Cross-API variables must use consistent naming.

4. Data Export Management

1. Export Single Dataset

Description: Backup or share dataset configurations
Steps:

  1. Click Export on the dataset details page
  2. Select format:
    • YAML (complete configuration)
    • CSV (raw data)

2. Export All Datasets

Description: Full backup of the dataset system
Steps:

  1. Click Export in Dataset Management
  2. Download a ZIP archive (contains YAML files)

Dataset Field Information

ParameterField NameTypeRequiredLength LimitDescription
IDidbigintConditional/Unique identifier; mandatory for modifications
Project IDprojectIdlongYes/Unique identifier of the associated project
Dataset NamenamestringYes≤100Unique identifier name for the dataset
DescriptiondescriptionstringNo≤200Functional description of the dataset
Parameter ListparameterslistYes/List of parameter definitions (at least one required)
Extraction RulesextractionobjectNo/Configuration for data extraction rules
Extraction StatusextractedbooleanRead-only/Whether data extraction is complete
Data SourcedataSourceenumRead-only/Data Source Enum: Static/Value Extract/File Extract/Http Extract/Jdbc Extract
Tenant IDtenantIdlongRead-only/ID of the associated tenant
Creator IDcreatedBylongRead-only/ID of the dataset creator
Creator NamecreatedByNamestringRead-only/Name of the creator
Creation TimecreatedDatedatetimeRead-only/Dataset creation timestamp
Last Modifier IDlastModifiedBylongRead-only/ID of the last modifier
Last Modifier NamelastModifiedByNamestringRead-only/Name of the last modifier

Parameter Fields (parameters)

ParameterField NameTypeRequiredLength LimitDescription
Parameter NamenamestringYes≤100Unique identifier name for the parameter
Parameter ValuevaluestringNo≤200Default parameter value
Is Mock ValuehasMockValuebooleanRead-only/Whether a mock value is used

Extraction Configuration (extraction)

Refer to the testing specification: Parameterization → Extraction Configuration

Data Source (dataSource)

Enum ValueDescription
STATIC_VALUEStatic Value
EXTRACT_VALUEValue Extraction
EXTRACT_FILEFile Extraction
EXTRACT_HTTPHTTP Extraction
EXTRACT_HTTP_SAMPLINGHTTP Sampling Extraction
EXTRACT_JDBCJDBC Extraction

Released under the GPL-3.0 License.