Error positioning method based on object-oriented program slice spectrum
An object-oriented, program slicing technology, applied in the direction of software testing/debugging, can solve the problem of difficulty in extracting slices of object-oriented programs, and achieve the effect of reducing scale and improving efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0082] For the convenience of description, we assume that the test coverage information of an object-oriented program SP is as follows: Figure 5.1 As shown, the object-oriented system dependency graph is shown as Figure 5.2 As shown, the error is contained in E5. in Figure 5.1 The content describes the test T j through the program element e i The number of times, the last line is whether the output of the test is invalid or not. According to the failure test, combined with the dependency graph, we use the graph traversal algorithm to obtain slices
[0083] GetSlice(T3)={E1, E5}, GetSlice(T4)={E1, E3, E5}, error-related slice Slice=GetSlice(T3)∪GetSlice(T4)={E1, E3, E5}. Combined with test coverage information, object-oriented programs slice spectral matrices such as Figure 5.3 As shown, the last column of 5.3 is based on the suspiciousness measure:
[0084] Suspiciousness(E1)=((1 / 2+1 / 3) / 2) / ((1 / 2+1 / 3) / 2+(1 / 1+1 / 2+1 / 2) / 3)=0.38
[0085] Suspiciousness(E3)=((0 / 2+1 / 3) / 2)...
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