Patent ID: 9317401
Filing Date: 2016-04-19
CPC Classification: G06F

Claim Text:
1. A method of prioritizing test cases for program testing based on a weighted value, the method comprising: a computer identifying lines of code of a product program that have been modified after an initial test of the product program using a mapped test case; the computer determining whether code of the mapped test case was modified after a time stamp of the initial test for the product program; the computer determining whether the modified test case is applicable by comparing the modified test case and the identified lines of code of the product program that have been modified; the computer determining an amount of lines of code of the product program that a) have been modified and b) are testable by the mapped test case, wherein the mapped test case is mapped to lines of code of the program product based on at least one of i) an environment of the mapped test case and ii) code coverage metrics that determine code coverage based, at least in part, on the amount of code of the program product that is executed by the mapped test case, and wherein the environment of the test case is configured to replicate, at least in part, a working environment where the product program is to be deployed and includes one or more of an operating system, a hardware configuration, and a configuration of the operating system; and the computer determining the weighted value for the mapped test case based on the environment of the mapped test case and one or more of the an amount of lines of code of the product program that a) have been modified and b) are testable by the mapped test case, a time the mapped test case was last executed, a time required to execute the mapped test case, and a priority of a defect.