Unlock instant, AI-driven research and patent intelligence for your innovation.

Automated testing method, device, computer device and storage medium

An automated testing and computer device technology, applied in the testing field, can solve the problems of high input cost, poor output effect, whole-process background logic coverage and less database verification, etc., so as to improve testing efficiency, reduce testing cost, and improve testing efficiency. quality effect

Active Publication Date: 2022-03-08
CHINA PING AN LIFE INSURANCE CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, under the influence of layering theory, most testers currently only focus on the UI in UI automation testing, and have less coverage of the actual background logic and database verification of the entire process. Pure UI inspection can only cover fewer test cases. The quality of the test cannot be guaranteed for the product
Coupled with the general stability of UI automation testing, high input costs, and poor output effects, coupled with frequent and high script maintenance costs in the later stage, the technology of UI automation testing has gradually fallen from the altar in the industry. Promote and land in various companies

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
  • Automated testing method, device, computer device and storage medium
  • Automated testing method, device, computer device and storage medium
  • Automated testing method, device, computer device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] refer to figure 1 As shown, it is a schematic diagram of the application environment architecture of the automated testing method provided by Embodiment 1 of the present invention.

[0028] The automated testing method of the present invention is applied in an environment including a computer device 1 and at least one terminal device 2, and the computer device 1 and at least one terminal device 2 establish a communication connection through a network. In this embodiment, the computer device 1 may be a server or a personal computer, wherein the server may be a single server, a server cluster, or a cloud server.

[0029] The terminal device 2 is, but not limited to, electronic devices such as servers, smart phones, tablet computers, laptop computers, and desktop computers.

[0030]In one embodiment, the computer device 1 and the at least one terminal device 2 can establish a communication connection through wired (such as USB (Universal Serial Bus, Universal Serial Bus) ...

Embodiment 2

[0033] see figure 2 As shown, it is a flow chart of the automated testing method provided by Embodiment 2 of the present invention. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.

[0034] Step S1. When a test operation instruction is received, locate the element to be tested in the user interface of the application program under test, and generate a corresponding test instruction according to the element to be tested, and execute the test instruction to pre-execute the element to be tested. The operation is set to perform UI automation test on the user interface, and output the verification result of the user interface.

[0035] The application program to be tested can be installed in different electronic devices, and the electronic devices can include, but are not limited to, terminal devices such as smart phones, tablet computers, notebook computers, and desktop computers. The UI automation test ...

Embodiment 3

[0066] see image 3 , is a structural diagram of a preferred embodiment of the automatic testing device of the present invention.

[0067] In some embodiments, the automated testing device 10 runs on a computer device. The automated testing device 10 may include a plurality of functional modules composed of program code segments. The program codes of each program segment in the automated testing device 10 can be stored in the memory of the computer device, and executed by the at least one processor, so as to realize the automated testing function.

[0068] In this embodiment, the automated testing device 10 can be divided into multiple functional modules according to the functions it performs. refer to image 3 As shown, the functional modules may include: a UI automation test module 101 , an interface test module 102 , a log information acquisition module 103 , a database verification module 104 , and a test report generation module 105 . The module referred to in the pre...

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 present invention provides an automated testing method, comprising: performing UI automated testing on the application program to be tested; calling a corresponding background interface according to a preset operation in the UI automated testing, inputting parameters to the background interface, and obtaining return parameters; Obtain system log information in real time and filter out the parameters transmitted to the third-party interface when the background interface calls the third-party interface, and transmit the parameters of the background interface to the third-party interface and the input parameters and return parameters of the station interface. Comparing parameter information so as to output system log information and interface test results; when the preset operation performed on the element to be tested includes connecting to the database, test and verify the database; and generate a test report. The invention also provides an automatic testing device, a computer device and a storage medium. The automated test in the present invention not only stays at the UI verification level, but also covers the service logic of the server, thereby improving the test quality.

Description

technical field [0001] The invention relates to the technical field of testing, in particular to an automatic testing method and device, electronic equipment, and a computer-readable storage medium. Background technique [0002] With the continuous development of software technology, the software system is getting bigger and bigger, and the functions of the software are becoming more and more complex, which leads to the difficulty of software testing. Compared with Internet products, the testing of Internet financial products is particularly difficult, because Internet financial products involve money transactions, so they pay more attention to security, and for security reasons, complex core business logic is implemented in the background, customers The page logic on the client side is relatively simple. However, under the influence of layering theory, most testers currently only focus on the UI in UI automation testing, and have less coverage of the actual background logi...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
Inventor 黄小婷
Owner CHINA PING AN LIFE INSURANCE CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More