Skip to content

How to Quickly Generate API Test Scripts

One-click generation of functional/performance/stability test scripts to improve testing efficiency

Preparation Before Generation

✅ Ensure the API has been debugged and verified
✅ Confirm the service or API is properly configured

Batch Generation Based on Service

Applicable Scenario: Comprehensive testing required for all APIs under a service

  1. Navigate to Service List

    • Go to 「APIs」→「Services」
    • Right-click the target service
  2. Configure Test Parameters

    • Select test type (functional/performance/stability)
    • Set key parameters:
  3. Confirm Generation

    • Click the confirm button to execute generation
    • The system automatically creates scripts for all APIs under the service

⚠️ Note: This operation will generate test scripts for all APIs under the service

Precision Generation Based on API

Applicable Scenario: Targeted testing for specific critical APIs

  1. Locate Target API

    • Select the target API in the API list on the right side of the service details page
  2. Customize Test Parameters

    • Select test type
    • Configure parameters as needed (same as service generation configuration)
  3. Generate Dedicated Script

    • The system generates scripts only for the selected API

Key Parameter Description

ParameterFunctionRecommended Value
Test TypeFunctional/Performance/Stability TestingSelect as needed
Concurrent ThreadsSimulate user concurrency5-50
Test DurationContinuous testing time1-10min
Loop CountNumber of repetitions for a single API test10-100

Released under the GPL-3.0 License.