Program code variation testing method and device
A program code and mutation testing technology, applied in the computer field, can solve the problems of low reliability of mutation testing, achieve the effect of increasing diversity and flexibility, and improving experience
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
test Embodiment 2
[0120] Perform evolution processing on the initial population and generate test case 2. For the description of the corresponding test case, please refer to Figure 6 ; and so on, generating such as Figure 6 Test Case 3, Test Case 4, Test Case 5, and Test Case 6 shown in
[0121] should be understood, Figure 6 The above-mentioned embodiments are only used for exemplary illustration, and the test cases that may be generated in this embodiment should not be construed as limitations on the test cases.
[0122] In this embodiment, on the basis of generating the initial population, population evolution processing is performed based on the requirements of mutation testing, so that the test case set can meet the requirements of mutation testing, thereby improving the reliability and accuracy of mutation testing.
[0123] S306: Execute the test cases in the test case set sequentially according to the order of each test case number, generate the test results corresponding to each te...
test Embodiment t
[0135] Regarding the killable variant: if there is a test case t (the test case belongs to the test case set), and the execution results on the variant p' and the program code p are inconsistent, it is said that the variant p' is relative to the test case set. Can kill mutants.
[0136] Regarding the survivable variant: if there is no test case in the test case set, and the execution results on the variant p' and the program code p are inconsistent, then the variant p' is said to be a survivable variant relative to the test case set.
[0137] The second step: obtaining the third quantity of the variant corresponding to the program code, calculating the quantity difference between the third quantity and the second quantity, and determining the quotient between the first quantity and the quantity difference as the variation score.
[0138] Exemplarily, the variation score MS(M, T) can be determined by formula 1, formula 1:
[0139]
[0140] Among them, killed(M,T) is the first...
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