Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Automated test assertion method and device, storage medium and equipment

A technology for automated testing and test cases, applied in the fields of storage media and equipment, automated test assertion methods, and devices, can solve problems such as high cost, reduced test efficiency, and poor test script maintainability, to improve reuse rate, The effect of improving maintainability

Active Publication Date: 2018-10-02
INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF11 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If you need to add or delete assertions, you need to modify the test script, which leads to poor maintainability of the test script
In addition, when the script is running, if the actual result does not match the expected result, the test will be interrupted and exited, which limits the problems found in one run and reduces the test efficiency
In the context of the current high cost of automated testing, the shortcomings of traditional automated testing have become increasingly prominent

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 test assertion method and device, storage medium and equipment
  • Automated test assertion method and device, storage medium and equipment
  • Automated test assertion method and device, storage medium and equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments and descriptions of the present invention are used to explain the present invention, but not to limit the present invention.

[0032] In order to improve the reuse efficiency of automated test scripts, an embodiment of the present invention provides an automated test assertion method. figure 1 is a schematic flow chart of the automated test assertion method of the embodiment of the present invention. like figure 1 As shown, the automated test assertion method of the embodiment of the present invention may include:

[0033] Step S110: Analyze the test scenarios in the configuration file, and obtain the test rules, rule parameters, test data, data embedding points, rule checkpoints and expect...

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 provides an automated test assertion method and device, a storage medium and equipment. The method includes: obtaining test rules, rule parameters, test data, data embedding points, rulechecking points and expected results of all test case in a test scene, wherein the test rules are compiled according to parameterization rules to be used for multiple test scenes or multiple test cases; using test data as a drive to judge whether a data embedding point meets an injection time point defined by the test data, and if yes, injecting the test data into a test object; judging whether arule checking point meets a test result checking time point defined by a test case, and if yes, assembling unique test parameters and test rules of the test case, and then obtaining specific rule contents of the test case, and executing the specific rule contents in the test object, into which the test data are already injected, to obtain an actual running result; and comparing actual running results and the expected results for all the test cases to generate a checking result. The method can improve a test script reuse rate.

Description

technical field [0001] The invention relates to the field of computer automated testing, in particular to an automated testing assertion method, device, storage medium and equipment. Background technique [0002] As an important link in the software development life cycle, software testing plays a very important role in the development of software systems. Among them, automated testing can not only save regression testing manpower and testing time to a large extent, but also often has more sophisticated characteristics than manual testing, and has been introduced and used by many projects. [0003] Traditional automated testing is implemented by recording / playing scripts or by simulating page operations. Different test cases need to write different test scripts. Assertion codes are hard-coded in test scripts with redundant rules and high repetition rates. If you need to add or delete assertions, you need to modify the test script, which leads to poor maintainability of th...

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/36
CPCG06F11/3688
Inventor 刘鹏许宜张家宇
Owner INDUSTRIAL AND COMMERCIAL BANK OF CHINA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products