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

A Class Cluster Testing Method for Object-Oriented Software

An object-oriented, testing method technology, applied in software testing/debugging, error detection/correction, instrumentation, etc., can solve problems such as test efficiency and risk issues that are not considered, so as to reduce test cost, save test cost, and reduce overall effect of complexity

Active Publication Date: 2018-10-23
NORTHEASTERN UNIV LIAONING
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The above studies did not consider the efficiency and risk of the test while generating the test sequence, which has certain limitations.

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
  • A Class Cluster Testing Method for Object-Oriented Software
  • A Class Cluster Testing Method for Object-Oriented Software
  • A Class Cluster Testing Method for Object-Oriented Software

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] The embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0041] A class cluster testing method for object-oriented software, such as figure 2 shown, including:

[0042] Step 1: Construct the software system to be tested as a directed loop network with classes as nodes and inter-class dependencies as edges;

[0043] Step 1.1: Use the code analysis tool DependencyFinder to read the compiled jar package of the software system to be tested, analyze the tree structure by scanning and analyzing the syntax, and export the XML file that stores the inter-class dependencies of the software system to be tested;

[0044]Step 1.2: Use the XMLParser parser to parse out the classes, modules, interfaces, functions, attributes and dependencies between them in the software system to be tested from the XML file, and filter out the tool classes and tools in the Java virtual machine contained in the XML file. meth...

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 provides a class cluster testing method for object-oriented software, which constructs the software system to be tested as a directed loop network; traverses all class nodes in the directed loop network to calculate the test importance; traverses the directed loop network All strongly connected components of each loop, calculate the complexity of the test pile corresponding to each edge in each loop; assign a weight to each edge in the loop and perform loop removal operations; generate a class-level integration test sequence to be tested Software systems undergo cluster testing. This invention regards the error-prone classes in the software system and the classes with a larger scope after the error occurs as important test nodes, and combines the complexity of the class with the error propagation influence of the class to discover software defects as early as possible and effectively control errors. The propagation scope is the test target, and the test importance of the class is combined to break the loop of the software system network and generate an integrated test sequence, which not only ensures that nodes with high test importance are tested first, but also reduces the overall complexity of the test pile.

Description

technical field [0001] The invention relates to the field of software reliability research, in particular to a class cluster testing method for object-oriented software. Background technique [0002] The integration test sequence refers to the order in which classes are tested successively determined by the dependencies between classes in the class cluster test of object-oriented software. The main idea of ​​integration testing according to the test sequence is to ensure that the class nodes that do not depend on other classes are tested first, and then test those class nodes that depend on the tested classes, which can effectively reduce the construction of test stubs and test drivers, so as to achieve The purpose of reducing the cost of testing. If there is no cycle in the inter-class dependencies of the software system, the integration test sequence can be generated directly by reverse topological sorting. However, in the actual operation process, the complexity of the ...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3688
Inventor 于海王莹朱志良赵玉丽张伟
Owner NORTHEASTERN UNIV LIAONING
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