▶️ You can find a tutorial on how to edit actions on our Youtube channel.
During the creation of your tests you will interact with the Agilitest editor. The editor allows you to create actions and to manage their executions in order to improve the maintenance of your tests.
Your created actions are going to be added one after the other in your script. It is possible to change their order manually directly in the editor.
There are three ways to create new actions:
This menu appears when you have opened a script. It contains the actions used during a test.
To create a new action, simply click on one of the actions in the menu and it will be added to the editor.
If you want to create an “Enter text” action, click on the corresponding action in the menu,
Then, the newly created action appear, empty of any information, in your script
You will need to complete your action manually or by dropping an interface element.
Action created from a captured element
Once your element is captured with the capture tool, click on “Drag drop into editor”
While holding your element with your mouse, drag it into your editor and place it under an action to make the “Create action” input appear.
The generated action is linked to a graphical element in your application.
Select the action you want to do on your element.
All actions are not available from this contextual menu. To have access to all the actions you can check the actions menu.
Copy and paste an action
By doing a right click on on an action in your script, or a group of action, a contextual menu with different options appears.
This menu allows you to:
- Copy/cut and paste
- Delete permanently an action
- Deactivate/activate an action or a group action
Their display will be greyed out and a stop icon will be added to a deactivated action.
They won’t be played during the script.
You know that an action is selected when its colour is dark grey. This is what is called an active action.
You can select multiple active actions.
To do that, select the first action, then press the SHIFT key on your keyboard and select the last one
All the actions in between those two actions will be selected (cf. from action 1 to action 3).
You can also use the CTRL key on your keyboard to select separately one or multiple action to add in a group of active actions.
Actions linked to the application’s elements
What is an action composed of?
Agilitest editor gives graphical interpretations of the actions that will compose your scripts. The ATS format, which is a test language, is a text format that describe the whole of the actions.
- Each action has an index that add up automatically and is numbered depending on its position in the script (cf. index 2).
- Next to the index is the nature of the action, which can be parametered
For an enter action, you can enter the text you want to see appear in your test, (cf. “Hello World ! $key(ENTER)” for the action in the capture)
3. Then, under the nature of your action, you have the interface element and its options. In the options you can modify, specify or enter manually the Locator, which is the targeted element.
Actions on the interface element
Click on the lego icon to the right of your element to add attributes to your element.
Enter or modify attributes
You can also click on the element to add parents or children and specify their type.
If your locator, i.e your targeted element, can retrieve multiple elements on a page, click on the “#” to specifiy which element to select by its apparition order.
This functionnality can be useful to select a specific row or column in a table.
Drag and drop an element
As seen previously, you can create an action by drag and dropping a captured element into your empty action.
Furthermore, you can drag and drop an element already used in a previous action into a new one.
An action may not have an element.
Click on the root application to show different options
- Addition of an interface element: With this you can create an element with search criterias (type of element, parents, etc…)
- System interface: This allows you to target an element from the system window by defining it. The “Button” type appears by default.
You can make manual modifications on a system interface, however, we recommend to make those modifications via the “Desktop” application in an Start channel action.
- Dialog box: This is allows you to manage and execute actions on a dialog box
For further information you can consult the documentation on how to automate a dialog box.
- Screen record: With this feature you can count shapes in a video.