Task Configuration
Task configuration
is used to configure or orchestrate specific execution actions. It flexibly supports three core task types, comprehensively covering testing scenario requirements.
Task Types
AngusTester provides the following three core task types to meet different testing needs:
Task Type | Applicable Scenarios | Script Types |
---|---|---|
Test Orchestration (pipelines) | Complex business process testing | TEST_PERFORMANCE , TEST_FUNCTIONALITY , TEST_STABILITY , TEST_CUSTOMIZATION |
Mock Data (mockData) | Test data generation | MOCK_DATA |
Mock APIs (mockApis) | API simulation services | MOCK_APIS |
Important Note
AngusTester automatically selects the task type based on the
type
field in the script. When a script contains multiple task configurations, ensure the executed task type matches the script type.
Task Field Descriptions
Field Name | Type | Required | Description |
---|---|---|---|
arguments | object | No | Plugin-specific configuration Extended parameters for different protocols View details |
pipelines | object | No | Test process orchestration Build multi-step testing scenarios (see test orchestration documentation) View details |
mockData | object | No | Data generation configuration Custom test data generation (see mock data documentation) View details |
mockApis | object | No | API simulation configuration Virtual API service setup (see mock APIs documentation) View details |
Example of Configuring a Test Task
yaml
type: TEST_PERFORMANCE # Test type
plugin: Http # Plugin
task: # Task
pipelines:
- target: HTTP
request:
method: GET
url: http://serv01-sample.angusmock.cloud:30010/benchmark