UI automatic test method and device, electronic equipment and storage medium

A technology of automated testing and test scripts, which is applied in the field of electronic equipment and storage media, devices, and UI automated testing methods, and can solve the problems of low operating efficiency of UI automated testing

Pending Publication Date: 2022-02-18
SHANGHAI HUAXING DIGITAL TECH
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, an embodiment of the present invention provides a UI automated testing method, device...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • UI automatic test method and device, electronic equipment and storage medium
  • UI automatic test method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0021] Embodiment 1 of the present invention provides a UI automation testing method. figure 1 It is a schematic flow diagram of the UI automation testing method in Embodiment 1 of the present invention, as figure 1 As shown, the UI automation testing method of Embodiment 1 of the present invention includes the following steps:

[0022] S101: After the use case is added, a plurality of test scripts of the use case are formed.

[0023] In Embodiment 1 of the present invention, a use case refers to a test case, including test steps, test data and expected results. For example, a use case for testing web page login, the test steps include: (1) Enter a legal username and password (test / Admin@1234) on the login page, click Login, and the expected result of successful login is displayed; (2) Enter an error on the login page Username and password (test / 1234), click Login, and the expected result is login failure. Among them, the parameters that need to be filled in, such as test / A...

Embodiment 2

[0058] Corresponding to Embodiment 1 of the present invention, Embodiment 2 of the present invention provides a UI automated testing device. figure 2 It is a schematic structural diagram of the UI automated testing device in Embodiment 1 of the present invention, such as figure 2 As shown, the UI automation testing device according to Embodiment 2 of the present invention includes a test script forming module 20 , a classification module 21 , an execution task forming module 22 and a scheduling module 23 .

[0059] Specifically, the test script forming module 20, after the use case is added, is used to form a plurality of test scripts of the use case;

[0060] The classification module 21 is used to classify the plurality of test scripts according to the business management module, classify the test scripts belonging to the same business management module into one category, and obtain at least two types of test scripts;

[0061] The execution task forming module 22 is used ...

Embodiment 3

[0065] An embodiment of the present invention also provides an electronic device, which may include a processor and a memory, where the processor and the memory may be connected through a bus or in other ways.

[0066] The processor may be a central processing unit (Central Processing Unit, CPU). The processor can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application-specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate array (Field-Programmable Gate Array, FPGA) or other Chips such as programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations of the above-mentioned types of chips.

[0067] As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs, non-transitory computer-executable programs and modules, such as program instructions / module (for example,...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a UI automatic test method and device, electronic equipment and a storage medium, and the UI automatic test method comprises the steps: classifying a plurality of test scripts formed according to use cases according to service management modules, classifying the test scripts belonging to the same service management module into one class, and obtaining at least two classes of test scripts; constructing execution tasks by utilizing the test scripts belonging to the same class to obtain at least two execution tasks; and scheduling the execution task in a concurrent mode to test the use case. The test execution time is greatly shortened compared with the previous serial execution, the concurrent operation can be executed on one machine, and hardware resources are saved.

Description

technical field [0001] The invention relates to the technical field of software testing, in particular to a UI automatic testing method, device, electronic equipment and storage medium. Background technique [0002] With the development of the software industry, the agile software development model centered on the evolution of user needs has gradually gained popularity. Rapid iteration and gradual progress are the distinctive features of agile development, but this undoubtedly lengthens the cycle of software testing. When the version is iterated, a lot of repetitive and basic testing work greatly reduces the efficiency of software testers. At this time, it is particularly critical to use automated testing instead of manual testing for such work. [0003] Automated testing is generally divided into interface automated testing and UI automated testing. For UI automated testing, it is often executed in a serial manner, that is, after one script is run, another script will be r...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F11/36G06F9/52G06F9/48
CPCG06F11/3688G06F9/4843G06F9/52
Inventor 童超张晔汪桂凤
Owner SHANGHAI HUAXING DIGITAL TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products