Method and system for rule-based generation of automation test scripts from abstract test case representation
First Claim
1. A method for generating test scripts comprising:
- providing at least one particular test case in a data store in an abstract representation form;
using abstract representations that have at least three separate components including at least one application state, at least one external interaction sequence and at least one input data, the at least one application state having at least one of;
(a) a set of application objects associated with a set of attributes and their values, or (b) a runtime snapshot of an application under test which defines a context of external interaction;
selecting at least one rule-based test case in its abstract representation and using rules for the selection of the at least one application state, the at least one external interaction sequence and the at least one input data, and using the rules to validate the at least one rule-based test case against an application object model, where the application object model is a metadata representation for modeling application under test and includes components selected from application object type definitions for application objects, attribute definitions for each application object type, definitions of methods and events that are supported by each application object type and definitions of effects of events on an application state; and
generating at least one test script based on the at least one rule-based test script wherein the at least one test script can be run in a particular one of a plurality of target test execution environments.
11 Assignments
0 Petitions
Accused Products
Abstract
A general rule-based technique is provided for generating a test case from an abstract internal test case representation. The abstract internal test case representation is based on a test case representation model that includes application states (state information), external interaction sequences (control flow information) and input data. The abstract representation in essence provides a platform independent representation of test cases. An application object model provides the representational capabilities required for capturing structural and behavioral properties of the application under test. Rules can be specified to define which application states (state information), external interaction sequences (control information) and input data sets should be used in the generation of the test case. A technique based on platform mapping is provided to convert a test case into an automation test script for any specific test script execution environment for any specific application platform.
83 Citations
55 Claims
-
1. A method for generating test scripts comprising:
-
providing at least one particular test case in a data store in an abstract representation form; using abstract representations that have at least three separate components including at least one application state, at least one external interaction sequence and at least one input data, the at least one application state having at least one of;
(a) a set of application objects associated with a set of attributes and their values, or (b) a runtime snapshot of an application under test which defines a context of external interaction;selecting at least one rule-based test case in its abstract representation and using rules for the selection of the at least one application state, the at least one external interaction sequence and the at least one input data, and using the rules to validate the at least one rule-based test case against an application object model, where the application object model is a metadata representation for modeling application under test and includes components selected from application object type definitions for application objects, attribute definitions for each application object type, definitions of methods and events that are supported by each application object type and definitions of effects of events on an application state; and generating at least one test script based on the at least one rule-based test script wherein the at least one test script can be run in a particular one of a plurality of target test execution environments. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43)
-
-
44. A computer system for generating test scripts, comprising:
-
a processor; a memory arrangement coupled to the processor, the memory arrangement configured to store at least one particular test case in a data store in an abstract representation form; a first set of instructions which, when executed by the processor, configures the processor to use abstract representations that have at least three separate components including at least one application state, at least one external interaction sequence and at least one input data, the at least one application state having at least one of;
(a) a set of application objects associated with a set of attributes and their values, or (b) a runtime snapshot of an application under test which defines a context of external interaction;a second set of instructions which, when executed by the processor, configures the processor select at least one rule-based test case in its abstract representation and using rules for the selection of the at least one application state, the at least one external interaction sequence and the at least one input data, and using the rules to validate the at least one rule-based test case against an application object model, where the application object model is a metadata representation for modeling application under test and includes components selected from application object type definitions for application objects, attribute definitions for each application object type, definitions of methods and events that are supported by each application object type and definitions of effects of events on an application state; and a third set of instructions which, when executed by the processor, configures the processor to generate at least one test script based on the at least one rule-based test case wherein the at least one test script can be run in a particular one of a plurality of target test execution environments. - View Dependent Claims (45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55)
-
Specification