State driven testing
AssigneeMicro Focus (US), Inc.
InventorsErnst Ambichl, Dietmar Strasser
Life of this patent
Estimating the term…
Abstract
Software testers can generate test scripts for validating and verifying software without navigating all possible actions or keywords. The current application state is described with one or more test objects. Each test object has one or more associated test methods and each test method can describe one or more state transitions. Only test methods accessible through test objects in the current application state are displayed to the software tester. The current state changes only if the state transition described by the test method selected by the software tester indicates a change from the current state.
Claims16
A method for testing software comprising:
- a processor in communication with a database, the processor configured for:
- providing a current state, a plurality of test objects, and a plurality of test methods, wherein the current state includes a first set of test objects that has at least one test object, the test methods can be associated with one or more state transitions, and each test method is associated with one test object;
- identifying each test method associated with at least one test object included within the first set of test objects;
- obtaining input that selects a test method;
- modifying the current state if the selected test method is associated with a state transition that results in a state different from the current state, the modified current state including a second set of test objects that has at least one test object, wherein at least one test object is not included in both the first set of test objects and the second set of test objects;
- identifying each test method associated with at least one test object included within the second set of test objects;
- and generating a test script that executes the software.
A method for testing software comprising a processor in communication with a database, the processor configured for:
- providing a current state and a plurality of actions, at least a portion of the actions are each associated with state transitions;
- presenting a user with a subset of available actions, the subset of available actions being dependent on the current state;
- obtaining user input to select an action from the subset of available actions;
- modifying the current state if the selected action is associated with a state transition;
- presenting a user with a modified subset of available actions, the modified subset of available actions being dependent on the modified current state;
- and generating a test script that executes the software.
A computer program product embodied in a computer readable medium in communication with a processor and a database and comprising computer instructions for:
- providing a current state and a plurality of actions, at least a portion of the actions are each associated with state transitions;
- presenting a user with a subset of available actions, the subset of available actions being dependent on the current state;
- obtaining user input to select an action from the subset of available actions;
- modifying the current state if the selected action is associated with a state transition;
- presenting a user with a modified subset of available actions, the modified subset of available actions being dependent on the modified current state;
- and generating a test script that executes the software.
A system comprising:
- a memory configured to store application states, test objects and test methods and their relationships;
- and a processor configured to generate a test script in response to a user selecting a test method from a subset of accessible test methods, the subset of accessible test methods being determined by the relationship between the test methods, the test objects and the application states.
Dependencies are inferred from the claim text.