发明名称 Automatically changing parts in response to tests
摘要 In an embodiment, in response to an error encountered by a test of a program, a rule is found that specifies the error and an action. A part in the program is selected in response to the action, the part is modified, and the test is re-executed. In various embodiments, the part is modified by changing the code in the part or by replacing the part with a previous version of the part.
申请公布号 US8819494(B2) 申请公布日期 2014.08.26
申请号 US201012968472 申请日期 2010.12.15
申请人 International Business Machines Corporation 发明人 Johnson Todd E.;Kulack Frederick A.;Petri John E.
分类号 G06F11/00 主分类号 G06F11/00
代理机构 代理人 Gamon Owen J.;Truelson Roy W.
主权项 1. A computer-implemented method comprising: in response to an error encountered by a test of a program, finding the error in a rule that specifies an action from among a plurality of rules, each rule specifying a respective at least one action to be invoked in response to occurrence of a corresponding error of a plurality of errors; selecting a part in the program in response to the action; modifying the part in the program in response to the selecting and in response to the action; re-executing the test on the program that comprises part that was modified by the modifying; wherein at least one rule of said plurality of rules specifies iteratively performing the actions of: (a) selecting one or more parts in the program which have changed with respect to a prior version of the program,(b) replacing the selected one or more parts with a prior version of the one or more parts from the prior version of the program,(c) re-executing the test on the program that comprises the one or more parts that were replaced by (b),(d) determining whether the corresponding error occurs when performing (c), and(e) repeating steps (a)-(d) until a part which causes the corresponding error to occur during testing is identified; generating a problem report for output to a user; and if the error is uncharacterized, creating a new rule and a new action that specifies replacing the part that was fixed in response to the error, after the part was fixed.
地址 Armonk NY US