Method and system for automatically generating unit test case of reproduced operation problem

A unit test and automatic generation technology, which is applied in software test/debugging, error detection/correction, instruments, etc., can solve the problems of generating unit test cases and difficult reproducible operation, so as to ensure correctness and improve efficiency

Inactive Publication Date: 2008-04-23
INT BUSINESS MASCH CORP
View PDF2 Cites 42 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] In order to solve the problems in the prior art that are difficult to reproduce runtime problems during debugging and facilitate regression testing due to the inability to generate unit test cases in the test environment, and bring other benefits, the present invention is made

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 system for automatically generating unit test case of reproduced operation problem
  • Method and system for automatically generating unit test case of reproduced operation problem
  • Method and system for automatically generating unit test case of reproduced operation problem

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The invention discloses a method and a system capable of automatically generating unit test cases that can reproduce program run-time problems. The system or method uses added instrumentation code to detect predetermined run-time problems, such as unexpected exceptions and abnormal program behavior. At the same time, the system or method uses the added capture code to collect the execution context and execution path of the determined object. When a problem occurs during testing, the system or method can generate unit test cases for the object. The unit test case can reproduce the problem by replaying the object's execution path with the recorded context.

[0035] Embodiments of the present invention are described below with reference to the drawings. It should be understood, however, that the invention is not limited to the particular embodiments described. A large number of details given in the drawings and the following description are only for illustration, so tha...

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 method comprises: modifying the computer program according to running problem capable of happening in the one or more target program units concerned by the computer program; testing and executing the modified program; according to the running problem occurring in the execution of the target program unit, automatically generating a unit test case. Said modification step comprises: adding a capture code and problem code into the program; the capture code is used for recording the execution path and the execution context of the target problem unit; said problem code is used for detecting the running problem in the process of executing said target program unit. The invention also provides a method and a system which uses said method and system to make debugging and regression testing.

Description

technical field [0001] The present invention relates to the field of computer program testing and debugging, and more specifically, to a method and system for automatically generating computer program unit test cases that can reproduce runtime problems. Background technique [0002] The development of software products such as IBM's software products usually follows this process. The development team is responsible for product development and unit testing, and other verification and testing work for the product is in charge of a dedicated testing team. The defects found in the verification testing are corrected by the development team. . Unit testing is white box testing, the main purpose is to verify the code logic, and verification testing is black box testing, used to verify software functions and performance. [0003] During verification testing, many run-time problems may be discovered, such as unexpected exceptions and incorrect or abnormal program behavior. Since th...

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 Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3688
Inventor 尹俊黄省江史蒂文·阿特金
Owner INT BUSINESS MASCH CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products