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 project-software-oriented class cluster test method. A software system to be tested is constructed into a directed loop network; all class nodes in the directed loop network are traversed to calculate the test important degree; all strong communication components in the directed loop network are traversed, and the test pile complexity corresponding to each edge in each loop is calculated; a weight value is aligned to each edge in the loop, and the loop removing operation is performed; a class stage integrating test sequence is generated for performing class cluster test on the software system to be tested. The method has the advantages that classes easily generating errors in the software system and classes with a wide affected range after the error occurrence are regarded as important test nodes; the class complexity and the class error spreading influence power are combined, and the goals of discovering the software defect as soon as possible and effectively controlling the error spreading range are used as test objectives; the test important degree of the class is combined for breaking through the loop of the software system network; the integrated test sequence is generated; the nodes with great test important degree value is enabled to be tested in a preferential way; the general complexity of the test pile is also reduced.

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