Method and system for generating test scripts
First Claim
1. A method in a computer system for generating an application-specific test script file, the application-specific test script file containing test instructions for testing an application program, the method comprising:
- receiving a test template file, the test template file having test instructions that contain placeholders, the placeholders indicating where application-specific placeholder values are to be logically inserted into the test template file, each placeholder having a placeholder name;
receiving an ordered list of customizing files having application-specific placeholder values each with a corresponding placeholder name; and
for each test instruction in the test template file,when the test instruction contains a placeholder,searching the customizing files according to the ordered list for a first placeholder value with a corresponding placeholder name that matches the placeholder name of the placeholder of the test instruction; and
when such a placeholder value is found, inserting the placeholder value into the test instruction; and
storing the test instruction into the application-specific test script file.
2 Assignments
0 Petitions
Accused Products
Abstract
A method and system in a computer system for generating an application-specific test script file. The application-specific test script file contains test instructions for testing an application program. The system receives a test template file that has test instructions that contain placeholders. The placeholders indicate where application-specific placeholder values are to be logically inserted into the test template file. The system receives an ordered list of customizing files that have application-specific placeholder values. The system then searches the customizing files according to the ordered list for a first placeholder value for each placeholder of the test instruction. When such a placeholder value is found, the system replaces the placeholder with the placeholder value in the test instruction and stores the test instruction into the application-specific test script file.
-
Citations
31 Claims
-
1. A method in a computer system for generating an application-specific test script file, the application-specific test script file containing test instructions for testing an application program, the method comprising:
-
receiving a test template file, the test template file having test instructions that contain placeholders, the placeholders indicating where application-specific placeholder values are to be logically inserted into the test template file, each placeholder having a placeholder name; receiving an ordered list of customizing files having application-specific placeholder values each with a corresponding placeholder name; and for each test instruction in the test template file, when the test instruction contains a placeholder, searching the customizing files according to the ordered list for a first placeholder value with a corresponding placeholder name that matches the placeholder name of the placeholder of the test instruction; and when such a placeholder value is found, inserting the placeholder value into the test instruction; and storing the test instruction into the application-specific test script file. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A method in a computer system for generating an application-specific test script file, the application-specific test script file containing test instructions for testing an application program, the method comprising:
-
receiving a test template file, the test template file having statements that are test instructions or iterative commands, and having placeholders, the placeholders indicating where application-specific placeholder values are to be logically inserted into the test template file, the iterative command having an iterative instruction with an iterative placeholder; and for each statement in the test template file, when the statement is the iterative command, for each iteration of the iterative command, replacing the iterative placeholder with an indexed iterative placeholder within the iterative instruction; inserting an application-specific placeholder value for the indexed iterative placeholder within the iterative instruction; and storing the iterative instruction with the inserted placeholder value into the application-specific test script file. - View Dependent Claims (8)
-
-
9. A method of generating a customized output file comprising:
-
creating a template file having data with placeholders; creating a derived customizing file having placeholder values for placeholders, wherein the derived customizing file inherits a base customizing file having placeholder values for placeholders; and for each placeholder within the template file, when the derived customizing file has a placeholder value for the placeholder, replacing the placeholder with the placeholder value from the derived customizing file; and when the derived customizing file does not have a placeholder value for the placeholder, replacing the placeholder with a placeholder value from the base customizing file so that the derived customizing file can share the placeholder values of the base customizing file. - View Dependent Claims (10, 11, 12, 13, 14, 15)
-
-
16. A method of generating a customized output file, the method comprising:
-
receiving a template file having statements with an iterative command, the iterative command indicating a number of iterations and having an iterative instruction with an indexed placeholder; receiving a customizing file having placeholder values for iterative placeholders; and for each of the number of iterations in the iterative command, replacing the indexed placeholder within the iterative instruction with a placeholder value from the customizing file based on the iteration number; and adding the iterative instruction with the replaced iterative placeholder to the customized output file. - View Dependent Claims (17, 18, 19, 20)
-
-
21. A computer-readable medium containing instructions for causing a computer system to generate an output file by:
-
receiving a template file having data with placeholders; receiving an ordered list of customizing files having placeholder values; and for each placeholder in the data, searching the customizing files according to the ordered list for a first placeholder value for the placeholder; when such a placeholder value is found, inserting the placeholder value into the data; and storing the data with the inserted placeholder as part of the output file whereby the searching of the customizing files effects inheritance of customizing files. - View Dependent Claims (22, 23, 24, 25, 26, 27)
-
-
28. A computer-readable medium containing instructions for causing a computer system to generate an application-specific test script file, the application-specific test script file containing test instructions for testing an application program, by:
-
receiving a test template file, the test template file having statements that are test instructions or iterative commands and having placeholders, the placeholders indicating where application-specific placeholder values are to be logically inserted into the test template file, the iterative command having an iterative instruction with an iterative placeholder; and for each iteration of each iterative command in the test template file, replacing the iterative placeholder of the iterative command with an indexed iterative placeholder within the iterative instruction; inserting an application-specific placeholder value for the indexed iterative placeholder within the iterative instruction; and adding the iterative instruction with the inserted placeholder value to the application-specific test script file. - View Dependent Claims (29)
-
-
30. A computer system for generating an application-specific test script comprising:
-
a test template file having test instructions with placeholders; a derived customizing file having placeholder values for placeholders, wherein the derived customizing file inherits a base customizing file having placeholder values for placeholders; and an output file generator that replaces the placeholder with the placeholder value from the derived customizing file when the derived customizing file has a placeholder value for the placeholder and replaces the placeholder with a placeholder value from the base customizing file so that the derived customizing file can share the placeholder values of the base customizing file when the derived customizing file does not have a placeholder value for the placeholder.
-
-
31. A computer system for generating a test script comprising:
-
a test template file having statements with an iterative command, the iterative command indicating a number of iterations and having an iterative instruction with an indexed placeholder; a customizing file having placeholder values for iterative placeholders; and an output file generator that, for each of the number of iterations in the iterative command, replaces the indexed placeholder within the iterative instruction with a placeholder value from the customizing file based on the iteration number and adds the iterative instruction with the replaced iterative placeholder to the test script.
-
Specification