Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and equipment for testing computer program

A computer program and program technology, which is applied in the field of computer program testing, can solve the problems of high time consumption, poor detection software efficiency, and inability to meet user needs, etc., to achieve less time consumption, improve efficiency, and reduce detection effects Effect

Inactive Publication Date: 2021-08-10
宁波阿库网络技术有限公司
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the patent document with the Chinese patent application number CN105512045A, "A Test Method, Device and Test Equipment for an Application Program" is disclosed. Although the test method, device and test equipment provided by the above patent document have a certain program test function, but The efficiency of detecting software defects is not good, and at the same time, it has a large time overhead, which cannot meet the needs of users

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
  • Method and equipment for testing computer program
  • Method and equipment for testing computer program
  • Method and equipment for testing computer program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0055] Please refer to Figure 1-4 Equipment for testing computer programs, including:

[0056] A program reading unit 1, the program reading unit 1 is used to read any object-oriented program, and store the class information of the read program to be tested.

[0057] The configuration parameter unit 2 is used for configuring the object information of the object-oriented program, and the configuration parameter unit 2 is electrically connected with the program reading unit 1 .

[0058] The computing unit 3 is used to generate edge test cases and execute candidate test cases, select and execute test cases, and obtain test results. The computing unit 3 is electrically connected to the configuration parameter unit 2 .

[0059] The result output module 4 , the result output module 4 is used to obtain the experimental results of the test and output the test results, and the result output module 4 is electrically connected to the computing unit 3 .

[0060] In the present inventio...

Embodiment 2

[0077] On the basis of Example 1, please refer to Figure 5 As shown, the present invention also provides a method for testing a computer program, comprising the following steps:

[0078] Step 1: The tester inputs the class information of the program to be tested, and saves and configures the class information of the program to be tested in an XML file.

[0079] Step 2. Generate an edge test case in the input domain according to the scope and structure of the object-oriented test case.

[0080] Step 3: Generate an instance through the constructor of the class, and use a random function to assign values ​​to the members of the object.

[0081] Step 4. Execute the test case and verify whether the result satisfies the termination condition.

[0082] Step 5. After executing the first random test case, if the termination condition is not met, select the next test case until the termination condition is met.

[0083] Step 6. After the program test is finished, record the correspo...

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 relates to the technical field of program testing, in particular to a method and equipment for testing a computer program. The equipment comprises a program reading unit, a parameter configuration unit, an operation unit and a result output module, and the program reading unit is used for reading any object-oriented program and storing read class information of a to-be-tested program; according to the method, a large number of test cases are randomly generated and executed, branch coverage information of the test cases is obtained, then the test cases are selected in regression testing, so that the efficiency of detecting software defects is further improved. Meanwhile, one test case is generated at the edge of an input field, and by means of the distance between object-oriented test cases, the software defect detection efficiency is improved. According to the method, the probability density function is generated through the distance, so that the test case can be selected for testing, application in an object-oriented program is realized, and less time overhead is achieved under the condition that the detection effect is not reduced.

Description

technical field [0001] The invention relates to the technical field of program testing, in particular to a method and equipment for testing computer programs. Background technique [0002] With the continuous integration of information technology and human society, humans and software are becoming more and more inseparable. Since the software came out, its quality problem has always been a major problem for people, and the loss caused by software quality is hundreds of millions every year. To this end, many researchers continue to explore, hoping to find a practical and effective testing method. [0003] In the patent document with the Chinese patent application number CN105512045A, "A Test Method, Device and Test Equipment for an Application Program" is disclosed. Although the test method, device and test equipment provided by the above patent document have a certain program test function, but Its efficiency in detecting software defects is not good, and at the same time,...

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
IPC IPC(8): G06F11/36
CPCG06F11/3664G06F11/3668
Inventor 曾雅雷
Owner 宁波阿库网络技术有限公司