Browse Prior Art Database

Applied test cases to defect traces

IP.com Disclosure Number: IPCOM000220173D
Publication Date: 2012-Jul-24
Document File: 3 page(s) / 86K

Publishing Venue

The IP.com Prior Art Database

Abstract

Disclosed is the concept of fusing test cases, such as unit or function test cases, with current logging assets such as traces, logs, or/and memory dumps to more rapidly find the problem at hand by leveraging memory snapshots where possible to evaluate changes leading to an error case.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 52% of the total text.

Page 01 of 3

Applied test cases to defect traces

When code is delivered into the field , often the only way to debug problems is to use trace/debug messages. This solution can be long and tedious , especially in a business environment where software support and delivery is expected to provide almost immediate troubleshooting and initiate fast solutions . Long memory dump analysis and a time consuming review of long logs and traces are not acceptable . In addition, during software testing, testers, engineers, and developers might be geographically distant from one another, which poses a challenge for collaborative testing and development . Traditionally, a tester would send a software defect to the developer . If the developer has questions about the test case in which the defect was discovered , they would contact the tester and ask for details . Today's business model can no longer afford such methods and needs a solution that infuses the test case into the assets that are delivered with the defect. Such assets include logs, traces, and memory dump or memory snapshots.

Prior Art:


 Method for monitoring a program and generating a test case suite from the gathered information [1]


 Method for monitoring a remote program running collecting data and generating test cases [2]


 Method for using Run-time Application Stubs to generate Unit Test cases [3]


 As supportive art, this system focuses on determining combinations of input data to get bad output data from a piece of code [4]


 Method that helps users look at a memory dump and analyze it; does not deal with test cases [5]

The invention described in this disclosure helps developers and support teams greatly decrease the time and effort used to identify defects in a program . This addition to knowledge also helps the software development model to meet business demands. The failures caught via the disclosed method are a type of bad input data realized through a regular run-time execution

This disclosure introduces the concept of fusing test cases , such as unit or function test cases, with current logging assets such as traces , logs, or/and memory dumps to more rapidly find the problem at hand by leveraging memory snapshots where possible to evaluate changes leading to an error case .

During program execution, a process records memory snapshots of specified running processes. When a specified process encounters an error , the system:


1. Saves a specified number of the most current memory snapshots of that process


2. Passes these snapshots to a program for analysis

3. During analysis, the memory states of variables running in the process are examined and extracted


4. These extracted variables are mapped input parameters for test cases that have

1


Page 02 of 3

been previously written

5. Once the input parameters to the test cases are populated , the tests are executed

6. Upon completion of the test, the...