The invention discloses a scene
granularity interface
test case generation method based on multiple agents, and the method comprises a plurality of large
language model agents and related components, namely context memory, an observer, a
decision maker, an executor, a supervisor, a recorder and a to-be-tested application. An observer identifies the interface control, detection and attribute identification of the control are effectively focused, and it is ensured that accurate
data input is provided for subsequent testing steps. Based on the output of an observer, a
decision maker generates a detailed plan of the next operation according to the current page state, and an operation strategy can be independently formulated, so that test generation is supported by business scene logic. And an executor analyzes and executes the generated plan operation, carries out test operation strictly according to the plan, and ensures the
traceability and
repeatability of the test process. Furthermore, the supervisor verifies whether the operation is executed according to the plan and meets the requirements of the target scene, and makes corresponding feedback according to the check result, thereby ensuring that the wrong operation is corrected in time, avoiding the continuous accumulation of errors, and ensuring the effectiveness of each test step. The recorder is responsible for storing the execution instruction and the context information of the test process to the context memory, and the operation history and result in the test process can be traced through the test context information, so that a better decision can be made in the subsequent iteration, and the result export after the test is completed can be effectively supported. And after the recording is finished, the test generation enters the next iteration until the coverage of the
test scene is finished.