发明名称 Framework for conditionally executing code in an application using conditions in the framework and in the application
摘要 A computer implemented method, apparatus, and computer usable program code for returning a return code to an error hook in an application using a framework. An identifier and a pass-through are received from the error hook. The error hook is software code in the application. The pass-through is a set of parameters. If the identifier has an active status, a set of framework conditions is retrieved using the identifier. If the set of framework conditions is met, an inject callback is retrieved using the error identifier. The inject callback is called with the error identifier and the pass-through. An inject callback return code is received. If the inject callback return code is an execute return code, the execute return code is returned to the error hook.
申请公布号 US8949798(B2) 申请公布日期 2015.02.03
申请号 US201213402326 申请日期 2012.02.22
申请人 International Business Machines Corporation 发明人 Albot Andre Laurent;Mall Michael Gerard;Mealey Bruce G.
分类号 G06F9/44;G06F11/00;G06F11/36 主分类号 G06F9/44
代理机构 Yee & Associates, P.C. 代理人 Yee & Associates, P.C. ;Josephs Damion
主权项 1. A computer implemented method for testing a software application having a first subroutine for handling a first error that may occur during execution of the software application, the computer implemented method comprising: associating a first code with the software application, wherein the first code is configured to cause the software application to conditionally process the first error upon execution of the software application based upon application criteria comprising a set of conditions specific to the software application, framework criteria comprising a set of conditions regarding when an error is to be processed, and an environment state comprising information about a current state of the software application, and wherein the first code further comprises: instructions, responsive to receiving an error identifier, the framework criteria, and the application criteria, to determine whether the error identifier is registered;instructions, upon a determination that the error identifier is registered, to store the error identifier, the framework criteria, and a valid status;instructions to retrieve a control callback using the error identifier, wherein the control callback is a software procedure in the software application;instructions to call the control callback with the error identifier and the application criteria as parameters; andinstructions to change the valid status to an active status; executing the software application, wherein the software application invokes the first code and identifies the application criteria to the first code, and wherein the first error occurs during execution of the software application; generating a first error report using the first subroutine; and storing the first error report in a memory.
地址 Armonk NY US