# US 2008/0270993 A1 · Computer program testing after source code modification using execution conditions

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2008/0270993 A1
- Document ID: US20080270993A1
- Status: Published application
- Kind: A1
- Application number: 12/172,254
- Filed: 2008-07-13
- Published: 2008-10-30
- Earliest claimed: 2005-12-24
- Assignees: International Business Machines Corporation
- Inventors: Takaaki Tateishi; Fumihiko Kitayama
- Web page: https://patentgrep.com/patent/US20080270993A1

## CPC

- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Computer program testing after source code for the computer program has been modified is performed more quickly, by using execution conditions. First, second, and third execution conditions are determined. These execution conditions are used to perform testing of the program to determine whether the program is properly functioning. Particularly, test data on which basis testing of the computer program is performed can be classified as first test data, second test data, third test data, or fourth test data. The program prior to modification of the source code is tested by employing the first, second, and third test data. After the source code is modified, the program is retested by employing only the third and the fourth test data. The program is thus properly retested after source code modification by employing only the third and the fourth test data, without having to employ the first and the second test data.

## Claims

### Claim 1

A method comprising:
for source code of a computer program that includes an unchanged portion after modification and a changed portion after modification, determining:
first execution conditions for determining whether the computer program is properly functioning, prior to modification of the source code;
second execution conditions for determining whether the computer program is properly functioning, relating to the changed portion of the source code after modification;
third execution conditions for determining whether the computer program is properly functioning, after modification of the source code; and,
using the first, second, and third execution conditions to perform testing of the computer program to determine whether the computer program is properly functioning.

### Claim 2 (depends on 1)

The method of claim 1, further comprising initially:
developing the source code; and,
modifying the source code.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
modifying the source code where the computer program is improperly functioning; and,
retesting the computer program using the first, second, and third execution conditions.

### Claim 4 (depends on 1)

The method of claim 1, wherein using the first, second, and third execution conditions to perform testing of the computer program comprises classifying test data on which basis testing of the computer program is performed as:
first test data that fulfills the first execution conditions and the third execution conditions, is unaffected by the changed portion of the source code after modification of the source code, and does not requiring retesting after modification of the source code;
second test data that fulfills the first execution conditions and the second execution conditions, is affected by the changed portion of the source code after modification of the source code, but does not require retesting after modification of the source code; and,
third test data that fulfills the first execution conditions, the second execution conditions, and the third execution conditions, is affected by the changed portion of the source code after modification of the source code, and requires retesting after modification of the source code.

### Claim 5 (depends on 4)

The method of claim 4, wherein using the first, second, and third execution conditions to perform testing of the computer program comprises:
testing the computer program prior to modification of the source code, by employing the first test data, the second test data, and the third test data; and,
retesting the computer program after modification of the source code, by employing the third test data,
such that after modification of the source code, the computer program is properly retested by employing the third test data, without employing the first test data and the second test data.

### Claim 6 (depends on 4)

The method of claim 4, wherein using the first, second, and third execution conditions to perform testing of the computer program further comprises constructing new fourth test data on which basis testing of the computer program is performed, the fourth test data fulfilling the second execution conditions and the third execution conditions, is created to particularly test the changed portion of the source code after modification of the source code, and requires testing after modification of the source code.

### Claim 7 (depends on 6)

The method of claim 6, wherein using the first, second, and third execution conditions to perform testing of the computer program further comprises:
testing the computer program prior to modification of the source code, by employing the first test data, the second test data, and the third test data;
retesting the computer program after modification of the source code, by employing only the third test data and the fourth test data,
such that after modification of the source code, the computer program is properly retested by employing only the third test data and the fourth test data, without employing the first test data and the second test data.

### Claim 8 (depends on 1)

The method of claim 1, wherein determining the first, second, and third execution conditions comprises structuring one or more execution paths of execution of the source code as each leading to one of a non-error testing result and an error testing result.

### Claim 9 (depends on 1)

The method of claim 1, wherein determining the first, second, and third execution conditions comprises employing a graph for one or more execution paths of execution of the source code.

### Claim 10

A computerized system comprising:
a first component to, for source code of a computer program that includes an unchanged portion after modification and a changed portion after modification, determine first execution conditions, second execution conditions, and third execution conditions,
the first execution conditions for determining whether the computer program is properly functioning, prior to modification of the source code;
the second execution conditions for determining whether the computer program is properly functioning, relating to the changed portion of the source code after modification;
the third execution conditions for determining whether the computer program is properly functioning, after modification of the source code; and,
a second component to classify test data on which basis testing of the computer program is performed as:
first test data that fulfills the first execution conditions and the third execution conditions, is unaffected by the changed portion of the source code after modification of the source code, and does not requiring retesting after modification of the source code;
second test data that fulfills the first execution conditions and the second execution conditions, is affected by the changed portion of the source code after modification of the source code, but does not require retesting after modification of the source code; and,
third test data that fulfills the first execution conditions, the second execution conditions, and the third execution conditions, is affected by the changed portion of the source code after modification of the source code, and requires retesting after modification of the source code.

### Claim 11 (depends on 10)

The computerized system of claim 10, further comprising a third component to test the computer program prior to modification of the source code using the first, second, and third test data, and to retest the computer program after modification of the source code using the third test data without using the first and second test data, such that the computer program is properly retested without using the first and second test data.

### Claim 12 (depends on 10)

The computerized system of claim 10, wherein the second component is further to classify the test data as new fourth test data on which basis testing of the computer program is performed, the fourth test data fulfilling the second execution conditions and the third execution conditions, is created to particularly test the changed portion of the source code after modification of the source code, and requires testing after modification of the source code.

### Claim 13 (depends on 12)

The computerized system of claim 12, further comprising a third component to test the computer program prior to modification of the source code using the first, second, and third test data, and to retest the computer program after modification of the source code using only the third and the fourth test data without using the first and second test data, such that the computer program is properly retested without using the first and second test data.

### Claim 14 (depends on 10)

The computerized system of claim 10, wherein the first component is to determine the first, second, and third execution conditions by structuring one or more execution paths of execution of the source code as each leading to one of a non-error testing result and an error testing result.

### Claim 15 (depends on 10)

The computerized system of claim 10, wherein the first component is to determine the first, second, and third execution conditions by employing a graph for one or more execution paths of execution of the source code.

### Claim 16

An article of manufacture comprising:
a tangible computer-readable medium; and,
means in the medium for, in relation to source code of a computer program that includes an unchanged portion after modification and a changed portion after modification, determining:
first execution conditions for determining whether the computer program is properly functioning, prior to modification of the source code;
second execution conditions for determining whether the computer program is properly functioning, relating to the changed portion of the source code after modification;
third execution conditions for determining whether the computer program is properly functioning, after modification of the source code.

### Claim 17 (depends on 16)

The article of manufacture of claim 16, wherein the means is further for classifying test data on which basis testing of the computer program is performed as:
first test data that fulfills the first execution conditions and the third execution conditions, is unaffected by the changed portion of the source code after modification of the source code, and does not requiring retesting after modification of the source code;
second test data that fulfills the first execution conditions and the second execution conditions, is affected by the changed portion of the source code after modification of the source code, but does not require retesting after modification of the source code; and,
third test data that fulfills the first execution conditions, the second execution conditions, and the third execution conditions, is affected by the changed portion of the source code after modification of the source code, and requires retesting after modification of the source code.

### Claim 18 (depends on 17)

The article of manufacture of claim 17, wherein the means is further for classifying the test data as new fourth test data on which basis testing of the computer program is performed, the fourth test data fulfilling the second execution conditions and the third execution conditions, is created to particularly test the changed portion of the source code after modification of the source code, and requires testing after modification of the source code.

### Claim 19 (depends on 16)

The article of manufacture of claim 16, wherein the means is further for using the first, second, and third execution conditions to perform testing of the computer program to determine whether the computer program is properly functioning.

### Claim 20 (depends on 16)

The article of manufacture of claim 16, wherein the means determines the first, second, and third execution conditions by at least one of:
by structuring one or more execution paths of execution of the source code as each leading to one of a non-error testing result and an error testing result; and,
by employing a graph for the execution paths of execution of the source code.
