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

Variation test method and device, equipment and storage medium

A variant testing and variant technology, applied in software testing/debugging, error detection/correction, instrumentation, etc., can solve problems such as performance cost, increase, and high performance cost, so as to reduce workload, reduce performance cost, reduce The effect of total usage

Pending Publication Date: 2021-04-02
ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] When the program to be tested is more complex, it means that the number of variants generated is greater, and the test cases of the program to be tested are bound to increase accordingly. In this way, all test cases need to be run for each mutation, and then all test cases The execution result of the use case is compared with the execution result of the source program. This process consumes a lot of performance. The applicant realized that the mutation test tool is mostly used for the measurement of unit test cases, which is difficult to use in integration test and functional test cases. , even if it is applied in integration testing and functional testing, it will cause great performance consumption

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0038] The invention provides a variation testing method, which is used for rapid testing of the variation of the program to be tested, so as to improve the testing efficiency.

[0039] refer to figure 1 As shown, it is a schematic flowchart of the variation testing method provided by an embodiment of the present invention. The method may be performed by a device, and the device may be implemented by software and / or hardware.

[0040] In this embodiment, the variation testing method includes:

[0041] Step S1 , insert stubs at each code module of the program to be tested.

[0042] Instrumentation refers to inserting some probes into the program on the basis of ensuring the original logical integrity of the program to be tested. The probe is a collection method, a code segment for information collection, which can b...

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 relates to the technical field of test management, and discloses a mutation test method and device, equipment and a storage medium. The method comprises the steps of performing instrumentation at each code module of a to-be-tested program; sequentially executing all test cases on the instrumented to-be-tested program, and obtaining an association form between the code name of each code module and the test case; distributing the to-be-tested program, the test case and the association form to each client, and sending a mutation test instruction to each client; sequentially executing the test cases associated with the code module on the code module by each client and sequentially executing the test cases associated with the variants of the code module on the variants of the codemodule; and receiving a test result of each client. By calling the code modules and the corresponding test cases, the code modules run under the corresponding test cases respectively, then the running results before and after code variation are compared, and whether the corresponding variants can be eliminated by the test cases during variation testing can be obtained.

Description

technical field [0001] The invention relates to the technical field of test management, in particular to a variation test method, device, equipment and storage medium. Background technique [0002] A fundamental problem of software testing is how to detect various hidden faults in software as much as possible through fewer test cases. The practice of software testing shows that it is almost impossible to find all the hidden faults in the program. A more feasible method is to narrow down the search range of faults as much as possible, so as to test whether a certain type of fault exists. For this reason, software testing based on faults is proposed. [0003] Mutation testing is a fault-based software testing technology. The basic idea of ​​mutation testing is to make various small mutations to the program to be tested through mutation operators to form variants to imitate certain faults. If execution of a certain test case results in a variant that produces the same result ...

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/3684G06F11/3688
Inventor 姬小玉
Owner ONE CONNECT SMART TECH CO LTD SHENZHEN
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