Test script generation method and device, electronic equipment and medium

By splitting the test process, determining target keywords and component expressions, and using the Selenium framework to generate test cases and scripts, the existing automated testing threshold is solved, and a more efficient test process and a wider application group is achieved.

CN120123232APending Publication Date: 2025-06-10WINNING HEALTH TECHNOLOGY GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510176013.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-18
Publication Date
2025-06-10

Smart Images

  • Figure CN120123232A_ABST
    Figure CN120123232A_ABST
Patent Text Reader

Abstract

The invention provides a test script generation method and device, electronic equipment and a medium, and relates to the technical field of tests.The method comprises the steps that an obtained test process is split, and a plurality of test nodes and operation behaviors of the corresponding test nodes are obtained; for any test node, determining a target keyword of the test node based on the operation behavior of the test node; determining a target component expression corresponding to the target keyword based on a corresponding relationship between different configured keywords and different component expressions; a configured Selenium automatic test framework is adopted to combine the component expressions and the configuration data of the test nodes, and test cases of the test process are obtained; and generating a test script of the test process based on the test case. According to the method, the automatic test code can be generated through simple keyword operation. The automation threshold can be greatly reduced, the automation group is expanded, and the purpose of improving quality and efficiency is achieved.
Need to check novelty before this filing date? Find Prior Art