Test program generator using key enumeration and string replacement
First Claim
1. A method for generating a test program, the method comprising:
- receiving a first seed file and a first configuration file;
iterating over one or more first enumeration keys in the first configuration file;
for each of the one or more first enumeration keys, applying to the first seed file a first rule in the first configuration file keyed to the one or more first enumeration keys, where applying the first rule comprises replacing in the first seed file one or more occurrences of a predicate value of the first rule with a transformation value of the first rule, wherein the first rule is defined in the first configuration file as containing one of the one or more first enumeration keys, the predicate value of the first rule and the transformation value of the first rule;
applying to the first seed file a rule in the first configuration file not keyed to the one or more first enumeration keys, where applying the non-keyed rule comprises replacing in the first seed file one or more occurrences of a predicate value of the non-keyed rule with a transformation value of the non-keyed rule, andoutputting the modified first seed file as a test program.
1 Assignment
0 Petitions
Accused Products
Abstract
A system and method are provided for test program generation using key enumeration and string replacement. A system includes a test program generator and a tester. The tester receives a test program from the test program generator and tests one or more products according to the test program. The test program generator receives a seed file from a seed file database and a configuration file from a configuration file database. The test program generator iterates over enumeration keys in the configuration file and, for each key, apply to the seed file one or more rules in the configuration file keyed to the enumeration key. Applying a rule includes replacing in the seed file one or more occurrences of a predicate value of the rule with a transformation value of the rule. The test program generator also outputs to the tester the modified first seed file as the test program.
54 Citations
17 Claims
-
1. A method for generating a test program, the method comprising:
-
receiving a first seed file and a first configuration file; iterating over one or more first enumeration keys in the first configuration file; for each of the one or more first enumeration keys, applying to the first seed file a first rule in the first configuration file keyed to the one or more first enumeration keys, where applying the first rule comprises replacing in the first seed file one or more occurrences of a predicate value of the first rule with a transformation value of the first rule, wherein the first rule is defined in the first configuration file as containing one of the one or more first enumeration keys, the predicate value of the first rule and the transformation value of the first rule; applying to the first seed file a rule in the first configuration file not keyed to the one or more first enumeration keys, where applying the non-keyed rule comprises replacing in the first seed file one or more occurrences of a predicate value of the non-keyed rule with a transformation value of the non-keyed rule, and outputting the modified first seed file as a test program. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A system comprising:
-
a computer; a test program generator; and a tester configured to receive a test program from the test program generator and test one or more products according to the test program, wherein the test program generator is configured to; receive from a seed file database a first seed file and from a configuration file database a first configuration file; iterate over one or more first enumeration keys in the first configuration file; for each of the one or more first enumeration keys, apply to the first seed file a first rule in the first configuration file keyed to the one or more first enumeration keys, where applying the first rule comprises replacing in the first seed file one or more occurrences of a predicate value of the first rule with a transformation value of the first rule, wherein the first rule is defined in the first configuration file as containing one of the one or more first enumeration keys, the predicate value of the first rule and the transformation value of the first rule; apply to the first seed file a rule in the first configuration file not keyed to the one or more of first enumeration keys, where applying the non-keyed rule comprises replacing in the first seed file one or more occurrences of a predicate value of the non-keyed rule with a transformation value the non-keyed rule; and output to the tester the modified first seed file as the test program. - View Dependent Claims (7, 8, 9, 10, 11)
-
-
12. A non-transitory, computer readable medium storing instructions that, when executed by a processing system, cause the processing system to generate a test program, by performing the steps of:
-
receiving from a seed file database a first seed file and from a configuration file database a first configuration file; iterating over one or more first enumeration keys in the first configuration file; for each of the one or more first enumeration keys, applying to the first seed file a first rule in the first configuration file keyed to the one or more first enumeration keys, where applying the first rule comprises replacing in the first seed file one or more occurrences of a predicate value of the first rule with a transformation value of the first rule, wherein the first rule is defined in the first configuration file as containing one of the one or more first enumeration keys, the predicate value of the first rule and the transformation value of the first rule; applying to the first seed file a rule in the first configuration file not keyed to the one or more first enumeration keys, wherein applying the non-keyed rule comprises replacing in the first seed file one or more occurrences of a predicate value of the non-keyed rule with a transformation value of the non-keyed rule; and outputting the modified first seed file as a test program. - View Dependent Claims (13, 14, 15, 16, 17)
-
Specification