Patent ID: 11954014
Assignee: BMC SOFTWARE, INC.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 7:
8. An automated system for unit testing an application in a mainframe execution environment that includes at least one processor and at least one non-transitory computer-readable storage medium storing instructions that when executed by the at least one processor, cause the at least one processor to:
store a plurality of stub objects, where each stub object in the plurality of stub objects represents a different stub type;
receive, at a test recorder executed by the at least one processor using the instructions stored on the at least one non-transitory computer-readable storage medium, a request to test the application and, in response to receiving the request, scan source code of the application to identify pointer data fields in the application and build a pointer reference table, where each entry in the pointer reference table includes an identifier for a particular pointer data field and a reference to a structure associated with the particular pointer data field;
coordinate, at a debug tool executed by the at least one processor using the instructions stored on the at least one non-transitory computer-readable storage medium, testing of the application in the mainframe execution environment, including, upon encountering a breakpoint for a given program call statement during execution of the application, retrieving arguments of the given program call statement and, for each argument, determining whether the argument contains a pointer and, if so, resolving the pointer using the pointer reference table;
create, at the test recorder, a record for the given program call statement in a test input file for the application, where the record includes the resolved pointer data; and
create, upon reading at least one record from the test input file, an object for the given program call statement using the resolved pointer data, wherein the program call statement object is instantiated from a class representing a call statement type and is a property of a given stub object in the plurality of stub objects.