Patent ID: 7478365

Claim:
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.