Regression test case selection method based on statement interaction coverage
A test case and regression testing technology, applied in software testing/debugging and other directions, can solve the problems of reducing the number of test cases and the error detection ability, reducing the defect detection ability of test case sets, etc., to reduce the number, improve efficiency, and improve accuracy. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0040] The overall flowchart of the regression test case selection method based on statement interaction coverage in this embodiment is as follows figure 1 shown, including the following steps:
[0041] (1) Perform code instrumentation on the program P under test.
[0042] (2) Execute each test case in the original test case set T on the instrumented program, record the statement coverage information of each test case and construct a test case-statement coverage matrix. Assuming that T contains m test cases, and P contains n statements that need to be covered, then the matrix is an m×n matrix and can be expressed as follows:
[0043] C 11 C 12 ... C 1 n c ...
test Embodiment i
[0045] (3) Based on this matrix, a coverable inter-statement interaction set can be generated. The statement interaction formed by statement k and statement j is coverable if and only if there is a test case i such that c ik and c ij Both values are 1 at the same time.
[0046] (4) Execute the test case set compression method based on the above information and finally generate the compressed test case set.
[0047] pass figure 2 The workflow of the test case set compression method can be briefly introduced. Its input is the tested program P, the existing test case set T, the coverable statement set R and the coverable statement interaction set I. Firstly, the compressed test case set Tmin is initialized as an empty set. Then the method is mainly divided into two stages in the execution process:
[0048] In phase 1, the method selects a test case t from T according to the selection strategy S1 based on statement and statement interaction coverage, and then removes the ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com