Enhanced stability of automation execution via use of state machine pattern and expected conditions when executing an action on an application element
AssigneeHalogen Software Inc.
InventorsChris Loder, Mathieu Jobin
Life of this patent
Estimating the term…
Abstract
An automation testing framework is provided for testing user interface elements in an application. Actions may be executed on elements of the application using a state machine in order to eliminate a need to insert wait periods into the test tool. An adaptive delay is applied to execution of the user interface element when execution cannot be validated prior to re-execution of the user interface element. The adaptive delay removes testing instability and accelerating testing of the application.
Claims19
A computing device for automated testing of an application, the computing device comprising:
- a processing unit for executing instructions;
- a memory unit for storing instructions, which when executed by the processing unit configure the computing device to provide:
- an automation framework providing an application programming interface (API) for controlling interactions with one or more user interface elements of the application;
- and
- an execution state machine for executing action on user interface elements through the automation framework, the execution state machine comprising a plurality of states associated with the user interface element defined in the application, wherein one of the states is associated to the user interface element during execution of a test step in the automation framework wherein when a failure of an action on the user interface element occurs an adaptive delay is applied before attempting to re-execute the action until the state of the user interface element is validated or the adaptive delay is exceeded.
A method of automated testing of an application executed on a computing device, the method comprising:
- executing an action on an interface element in the application identified in a test step;
- setting a state associated with an element when the interface element is being loaded;
- loading the interface element in the application associated with the action;
- attempting the action defined for the interface element;
- changing the state associated with the interface element during execution;
- verify conditions of the element against expected conditions;
- applying an adaptive delay between subsequent execution of the actions when the expected conditions for the interface element are not met;
- iteratively re-executing the action on the interface element where the adaptive delay is applied until the action is verified or the adaptive delay expires.
A non-transitory computer readable memory containing instructions for automated testing of an application executed on a computing device, the instructions which when executed by a processor performing:
- executing an action on an interface element in the application identified in a test step;
- setting a state associated with an element when the interface element is being loaded;
- loading the interface element in the application associated with the action;
- attempting the action defined for the interface element;
- changing the state associated with the interface element during execution;
- verify conditions of the element against expected conditions;
- applying an adaptive delay between subsequent execution of the actions when the expected conditions for the interface element are not met;
- iteratively re-executing the action on the interface element where the adaptive delay is applied until the action is verified or the adaptive delay expires.
Dependencies are inferred from the claim text.