×

Method and computer program product for generating a computer program product test that includes an optimized set of computer program product test cases, and method for selecting same

  • US 5,805,795 A
  • Filed: 01/05/1996
  • Issued: 09/08/1998
  • Est. Priority Date: 01/05/1996
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method for selecting a set of test cases for testing a software program having a number of possible code blocks that may be exercised during execution of the program, the method comprising the steps of:

  • identifying the code blocks that may be exercised during execution of the program; and

    executing a genetic algorithm to determine a set of test cases that exercises a maximum number of the identified code blocks in a minimum amount of time, said executing step further comprising;

    providing a population representation of each test case;

    randomly selecting a subset of said population representation;

    determining a fitness value for each subset, said fitness value corresponding to an execution time of the test case and an amount of the code blocks covered by the test case;

    totaling the fitness values calculated by said determining step; and

    deciding if said subset should be included in another population representation for calculating another fitness value until a desired overall fitness value is achieved.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×