Skip to content

Script Introduction

AngusTester scripts are "intelligent programming assistants" for automated testing—no professional development skills required. Build powerful test logic with simple code to:
10x testing efficiency
80% lower automation barrier
95%+ test coverage
Seamless DevOps integration

What Are Test Scripts? The "Operation Manual" for Quality Automation

Test scripts are coded instruction sets that tell the system how to execute tests:

Simple Analogies:

  • Like a recipe guiding cooking steps
  • Like navigation directing driving routes
  • Like LEGO instructions for model assembly

AngusTester Advantages:

CapabilityTraditional ScriptsAngusTester Scripts
Learning CurveSteep (requires coding)Simple (drag-and-drop + low-code)
Maintenance CostHigh (depends on developers)Low (maintainable by testers)
Execution SpeedMediumHigh (parallel execution)
ExtensibilityLimitedUnlimited (plugin marketplace)

Click to view: AngusTester Script Specifications

Four Major Script Use Cases: Solving Testing Pain Points

1. API Automation Testing - The API Validation Expert

One-Click Script Example:

yaml
# User Query API Test  
specification: angus/1.0.0  
type: TEST_FUNCTIONALITY  
plugin: Http  
task:  
  arguments:  
    ignoreAssertions: true  
    updateTestResult: false  
  pipelines:  
  - target: HTTP  
    name: Total  
    enabled: true  
    request:  
      method: GET  
      server:  
        url: http://serv01-sample.angusmock.cloud:30010  
      endpoint: /user  
      authentication:  
        enabled: true  
    actionOnEOF: RECYCLE  
    sharingMode: ALL_THREAD

Supported Protocols:

2. Complex Business Scenario Testing - The Workflow Master

E-Commerce Order Scenario Script:

Data-Driven Example:

Test DataExpected Result
Sufficient StockPayment Success
Insufficient StockOut-of-Stock Alert
Price ChangeUpdated Price

3. Smart Data Generation - The Data Magician

Mock Data Script Example:

yaml
# Generate User Data  
specification: angus/1.0.0  
type: MOCK_DATA  
plugin: MockCsv  
task:  
  mockData:  
    name: User Data  
    fields:  
      - name: id  
        type: integer  
        value: '@SnowId()'  
      - name: name  
        type: string  
        value: '@Name()'  
      - name: age  
        type: integer  
        value: '@Age()'  
      - name: gender  
        type: string  
        value: '@Gender()'  
      - name: email  
        type: string  
        value: '@Email()'  
      - name: mobile  
        type: string  
        value: '@Mobile()'  
      - name: hobbies  
        type: string  
        value: '@Enum(Basketball|Swimming|Reading)'  
      - name: address  
        type: string  
        value: '@Address()'  
    settings:  
      format: CSV  
      rows: 1000  
      batchRows: 1  
      location: LOCAL

Data Source Support:

4. Performance & Stability Testing - The Stress Testing Expert

Load Test Script:

Minimalist Script Workflow: Automation in Four Steps

Step 1: Smart Script Writing

Supported Methods:

  • Low-code editor
  • Natural language to script
  • API doc import
  • Record-and-replay

Step 2: Real-Time Debugging & Optimization

Debug Console:

markdown
| Debug Feature | Operation | Use Case |  
|--------------|-----------|----------|  
| **Step Execution** | Line-by-line | Locate logic errors |  
| **Breakpoint Debugging** | Set pause points | Inspect critical states |  
| **Variable Monitoring** | Real-time view | Track data changes |  
| **Request Capture** | Intercept & analyze | Troubleshoot API issues |

Step 3: Multi-Environment Execution

Execution Strategy:

Step 4: Intelligent Analysis & Reporting

Three-Dimensional Reports:

AngusTester Script Solutions

Test Script Types

Script TypeUse CaseKey Features
Functional VerificationFeature TestingPrecise assertions, high coverage
Performance TestingLoad TestingSimulates multi-user, monitors resources
Stability TestingLong-Term Testing7x24 execution, auto-recovery
Data ScriptsData GenerationBatch creation, smart anonymization

Permission Management System

Role Permission Matrix:

Script Field Information

ParameterField NameTypeRequiredLength LimitDescription
IDidbigintConditional/Unique script ID; required for modifications
Project IDprojectIdlongYes/Parent project ID
Script NamenamestringYes≤200Script identifier
Script TypetypeenumYes/See Script Source (source) below
Script ContentcontentstringYes≤10MBYAML/JSON script content
Auth ControlauthbooleanNo/Enable permission control (default false)
DescriptiondescriptionstringNo≤800Script functionality description
Service IDserviceIdlongRead-only/Associated service ID
Script SourcesourceenumRead-only/See Script Type (type) below
Source IDsourceIdlongRead-only/Source object ID
Source NamesourceNamestringRead-only/Source name
TagstagslistRead-only/Script tag list
PermissionspermissionslistRead-only/Permission configuration
Plugin TypepluginstringRead-only/Execution plugin type
Tenant IDtenantIdlongRead-only/Tenant ID
Creator IDcreatedBylongRead-only/Script creator ID
Creator NamecreatedByNamestringRead-only/Creator name
Creation TimecreatedDatedatetimeRead-only/Script creation time
Last Modifier IDlastModifiedBylongRead-only/Last modifier ID
Last Modifier NamelastModifiedByNamestringRead-only/Last modifier name
Last Modified TimelastModifiedDatedatetimeRead-only/Last modification time

Script Types (type)

Enum ValueDescription
TEST_FUNCTIONALITYFunctional Testing: Validates system features
TEST_PERFORMANCEPerformance Testing: Evaluates system under load
TEST_STABILITYStability Testing: Checks long-term reliability
TEST_CUSTOMIZATIONCustom Testing: Tailored test tasks
MOCK_DATAMock Data Generation: Creates fictional data
MOCK_APISMock API Generation: Builds mock APIs for integration

Script Sources (source)

Enum ValueDescription
USER_DEFINEDCustom creation
IMPORTEDImported
SERVICE_SMOKEService smoke test
SERVICE_SECURITYService security test
APIAPI test
SCENARIOScenario test
GENERATE_DATAData generation

Released under the GPL-3.0 License.