Testing case priority ranking method for white-box testing

A technology of prioritization and test cases, applied in software testing/debugging, genetic rules, error detection/correction, etc., can solve problems such as poor stability and slow convergence speed, and achieve increased convergence speed, increased convergence speed and stability , reducing the effect of blindness
CN106528433AActive Publication Date: 2017-03-22XIAN ZHONGLANG AL TECH CO LTD

Patent Information

Authority / Receiving Office
CN Ā· China
Patent Type
Applications(China)
Current Assignee / Owner
XIAN ZHONGLANG AL TECH CO LTD
Publication Date
2017-03-22

Smart Images

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

Abstract

The invention discloses a testing case priority ranking method for white-box testing to solve the problem of testing case priority ranking in white-box testing. The method includes the steps: firstly, encoding individuals based on a statement coverage matrix, randomly generating initial populations and taking a statement coverage mean average percentage as a fitness function; secondly, generating new-generation populations by selection, crossover and mutation operation, evaluating the individuals by the fitness function and recording the maximum fitness value in iteration and the corresponding individuals; finally, acquiring optimal ranking results of the individuals corresponding to the maximum fitness value when iteration times reach the maximum iteration time. Compared with an existing method, the testing case priority ranking method is high in convergence rate and good in stability, software defects in the white-box testing process can be discovered as early as possible, and testing cost can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention belongs to the technical field of software testing, in particular to the technical field of white-box testing in software testing, and in particular relates to a test case priority sorting method for white-box testing. Background technique

[0002] The test case prioritization technology refers to the sorting of all test cases for a program under test through specific sorting criteria, the purpose is to cover the coverage objects in the program under test at a faster speed, such as statements, thereby speeding up the test Defect detection rate for a use case. Genetic Algorithm is a method of searching for the optimal solution of optimization problems by simulating the genetic evolution process of organisms in nature. It has good application value in solving some complex problems such as function optimization and discrete problems. , the use of genetic algorithms does not depend on the specific domain of the problem, so it has strong robu...

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