Test script recording method and device, electronic device, and storage medium

By acquiring operation events and generating recording pop-ups, UI test scripts are recorded automatically, solving the problem of manually modifying scripts when the UI changes, and achieving efficient UI testing.

CN115543814BActive Publication Date: 2026-03-03CHINA PING AN LIFE INSURANCE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-12
Publication Date
2026-03-03

AI Technical Summary

Technical Problem

In existing technologies, writing UI automated test scripts requires development skills, and manual modifications are needed when the user interface changes, resulting in low testing efficiency.

Method used

By acquiring operation events, filtering control elements in the responder chain, generating recording pop-ups, and recording test scripts according to the operation type, the test scripts are automatically generated, avoiding manual modification when the UI changes.

Benefits of technology

It improved the efficiency of UI testing, reduced the need for manual modifications, generated automated test scripts, and improved the accuracy and efficiency of testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115543814B_ABST
    Figure CN115543814B_ABST
Patent Text Reader

Abstract

The embodiment of the application provides a test script recording method and device, electronic equipment and a storage medium, and belongs to the technical field of computers. A plurality of operation events triggered by operations on the interface of an application under test are acquired, wherein the operation event is an event triggered by an operation according to a preset case test process, the case test process includes a plurality of test steps, a responder chain is selected according to the event type of the operation event, a control element responding to the operation event is obtained, control information is determined according to the category of the control element and the attribute of the control element, a recording pop-up window is generated according to the control information, an operation type of an operation on the recording pop-up window according to the test step is acquired, test script recording is performed according to the operation type, and a test script is obtained, wherein the test script is used for testing the application under test. The test script recording method of the embodiment of the application can generate an automatic test script, and the efficiency of UI testing is improved.
Need to check novelty before this filing date? Find Prior Art

Citation Information

Patent Citations

  • Method and apparatus for recording test scripts

    CN107491386A

  • Test script recording method, application program test method and related devices

    CN110716853A