How ITest Streamlines API Testing: Design, Implementation, and CI/CD Integration
This article explains the motivation behind building ITest, a unified API testing platform, details its architecture, key features such as Swagger import, parameterization, assertions, signing, and CI/CD integration, and summarizes the benefits it brings to development and testing teams.
Current Situation and Pain Points
Many tools (Postman, JMeter, SoapUI, custom scripts) exist for API testing, but large projects suffer from fragmented management, poor scalability, high maintenance costs, and duplicated effort.
Design and Implementation of ITest
To address these issues, the team created ITest, a unified testing platform that improves efficiency and flexibility.
Design Goals : Provide a single entry point, support HTTP/HTTPS APIs (phase 1), and enable fast service and case creation.
Core Modules :
Service Management : Defines services with environment isolation, name, and status.
API Management : Manages API parameters, configurations, and response storage.
Case Management : Groups ordered APIs into test cases.
Rule Management : Handles parameterization, dynamic value generation, and response extraction.
Technical Stack : Backend built with Java SpringBoot + MyBatis; frontend built with Vue + ElementUI, following MVC.
Key Features
1. One‑click Swagger Import : Parses Swagger definitions, extracts paths and definitions, recursively processes objects, and stores them in ITest.
2. Platform‑wide Configuration : All test settings are performed via UI, eliminating script maintenance; both product and development staff can run and view results.
3. Assertions : Uses JSONSchema to validate multi‑level JSON responses, e.g., verifying flight list data.
4. Parameterization : Supports static and random values (via Generex) using {{}} placeholders in rules.
5. Response Extraction : Saves selected response values for reuse in subsequent API calls, enabling context‑aware execution.
6. Signing : Implements request signing algorithms to prevent tampering and replay attacks.
7. CI/CD Integration : ITest is linked with the Mone CI/CD system; upon environment deployment, test cases run automatically, and failures trigger developer investigation before further testing.
Summary
ITest provides a unified entry for API testing, accelerates configuration, encapsulates tools into black‑box UI operations, integrates with CI/CD to boost efficiency, and has already been adopted across multiple business lines, with plans to add Dubbo support.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Mafengwo Technology
External communication platform of the Mafengwo Technology team, regularly sharing articles on advanced tech practices, tech exchange events, and recruitment.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
