[PDF][PDF] Path slicing per object for better testing, debugging, and usage discovery

S Juvekar, J Burnim, K Sen - EECS Department, University of …, 2009 - eecs.berkeley.edu
EECS Department, University of California, Berkeley, Tech. Rep, 2009eecs.berkeley.edu
Given an execution trace of an object-oriented program and an object created during the
execution, a path slice per object with respect to the object, or PSPO, is a part of the trace
such that (1) the sequence of public methods invoked on the object in the trace is same as
the sequence of public methods invoked on the object in the slice, and (2) given a method
invocation in the slice, the state of all objects accessed by the method is same in both the
trace and slice. A generator for a PSPO (or GPSPO in short) is a program such that its only …
Abstract
Given an execution trace of an object-oriented program and an object created during the execution, a path slice per object with respect to the object, or PSPO, is a part of the trace such that (1) the sequence of public methods invoked on the object in the trace is same as the sequence of public methods invoked on the object in the slice, and (2) given a method invocation in the slice, the state of all objects accessed by the method is same in both the trace and slice. A generator for a PSPO (or GPSPO in short) is a program such that its only execution trace is the PSPO. We argue that GPSPOs can be useful for debugging, creating test harnesses, creating regression test suites, discovering usage and construction patterns of a class. We present an algorithm to create GPSPOs given an execution trace and an object. We have implemented the algorithm in a prototype tool for Java, and we present several examples that demonstrate the effectiveness of our algorithm and the utility of GPSPOs.
eecs.berkeley.edu
以上显示的是最相近的搜索结果。 查看全部搜索结果