This invention provides a front-end testing
system and its control method based on browser debugging and AI generation. The
system includes an input module, an automated control
adaptation layer, a debugging protocol collector, a test evidence
package builder, a
test case generation orchestrator, an AI
code generation engine, a script
quality gate, and a self-healing and backfeeding module. The self-healing and backfeeding module is data-connected to the script
quality gate to determine the failure reasons of failed
test script drafts and to use corresponding strategies to correct the failed
test script drafts, effectively improving
test case construction efficiency. The test intent structure, structured evidence
package information, and test constraint template drive the AI
code generation engine to generate
test script drafts, reducing reliance on manual writing and positioning, as well as waiting for experience, shortening the path from requirement documents to
executable test cases, reducing manual dependence, and improving bridging stability.