发明名称 Asynchronous code testing
摘要 A method and system for asynchronous code testing. Test cases are generated from an input code that includes code blocks organized in a hierarchy of nesting levels characterized by respective nesting level numbers that increase with increasing separation of each respective nesting level from a reference level of the total input code. Each test case includes a respective launching priority that quantifies how strongly each test case is associated with at least one modified code block of the input code. Generating the test cases determines the respective launching priority for each test case by (i) determining an association strength of each modified code block as measured by the nesting level in the hierarchy of each modified code block and (ii) computing the launching priority as a sum of the association strengths of the modified code blocks. The test cases are run to produce a test result which is displayed.
申请公布号 US9075919(B2) 申请公布日期 2015.07.07
申请号 US201414328059 申请日期 2014.07.10
申请人 International Business Machines Corporation 发明人 Sawano Yoshiaki
分类号 G06F9/44;G06F11/36 主分类号 G06F9/44
代理机构 Schmeiser, Olsen & Watts, LLP 代理人 Schmeiser, Olsen & Watts, LLP ;Pivnichny John
主权项 1. A method for asynchronous code testing, said method comprising: generating, by a processor of a computer system, test cases from an input code that comprises code blocks organized in a hierarchy of nesting levels characterized by respective nesting level numbers that increase with increasing separation of each respective nesting level from a reference level of the total input code, wherein each test case comprises a respective test case identifier and a respective launching priority that quantifies how strongly each test case is associated with at least one modified code block of the input code, wherein each test case is uniquely identified by the respective test case identifier, and wherein said generating the test cases comprises determining the respective launching priority for each test case by (i) determining an association strength of each modified code block as measured by the nesting level in the hierarchy of each modified code block such that the association strength decreases as the nesting level increases for each modified code block and (ii) computing the launching priority as a sum of the association strengths of the modified code blocks; said processor producing a test run result by asynchronously running the test cases in a sequential order of increasing launching priority of the test cases; and said processor displaying the test run result via a graphical user interface (GUI) of the computer system.
地址 Armonk NY US