A test case generation method and apparatus

By automatically generating interface test cases, the problem of high manpower and time consumption in existing interface testing technologies is solved, improving efficiency and reducing costs, and supporting rapid iteration and deployment.

CN122152680APending Publication Date: 2026-06-05BEIJING ZITIAO NETWORK TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING ZITIAO NETWORK TECH CO LTD
Filing Date
2024-12-03
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

In existing technologies, writing interface test cases consumes a lot of manpower and time, and requires debugging, resulting in high costs for software interface testing.

Method used

By determining the functionality of the interface to be tested, test scenarios are generated and test parameters are obtained, and test cases are automatically generated. This includes using pre-trained test scenario generation models and parameter generation models, combined with interface documentation and historical call data, to automatically generate interface test cases.

Benefits of technology

It improves the efficiency of generating interface test cases, reduces the testing cost of software interfaces, and supports rapid iteration and deployment in the software development process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122152680A_ABST
    Figure CN122152680A_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a kind of test case generation method and device, it is related to software testing technical field.The method comprises: determining to be tested interface;According to the function of the to-be-tested interface, at least one test scene corresponding to the to-be-tested interface is generated, and the test scene includes the test step for calling the to-be-tested interface;The test parameter corresponding to the test scene is acquired, and the test parameter includes the request parameter of the to-be-tested interface and the response assertion corresponding to the request parameter;The test scene and the test parameter corresponding to the test scene are combined to obtain the test case of the to-be-tested interface.The embodiment of the present application is used to improve the generation efficiency of interface test case, to reduce the test cost of software interface.
Need to check novelty before this filing date? Find Prior Art