End-to-end automatic test code generation system and method
By using a three-layer knowledge base system and AI self-correction service, a test intermediate layer representation is generated, which solves the problem of strong coupling between end-to-end testing tools and UI, realizes automated test code generation and verification, and reduces maintenance costs and code instability.
Patent Information
- Application Number
- CN202610621629.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-05-08
- Publication Date
- 2026-06-05
- Estimated Expiration
- 2046-05-08
AI Technical Summary
Existing end-to-end testing tools are tightly coupled with the UI, resulting in high maintenance costs. AI-generated test code suffers from illusion problems, lacks self-verification capabilities, and exhibits unstable quality. Furthermore, it lacks automated execution verification and closed-loop error correction mechanisms.
It adopts a three-layer knowledge base system, AI pipeline and self-correction service. It generates test intermediate layer representation through page index, business interaction definition and page object method metadata file, and uses model context protocol for self-correction to form a complete test code generation pipeline.
It enables the automatic and accurate conversion of business test intent into executable test code without increasing the coding burden on test engineers, eliminating the illusion problem, automating code verification and correction, and reducing maintenance costs and instability.