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
CN108614770AActive Publication Date: 2018-10-02INDUSTRIAL AND COMMERCIAL BANK OF CHINA

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
INDUSTRIAL AND COMMERCIAL BANK OF CHINA
Publication Date
2018-10-02

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

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