Editing actions

▶️ 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.

Script properties

To have global information about your scripts you can consult the script properties.

To do that, do a right click on your script and select “edit properties”.

The script properties window will be displayed.

In this window you can find:

  • The date of creation of your script
  • The number of actions
  • The number of subscripts
  • The number of playlists it is featured in
  • Diverse notes
  • Links associated with the script

Create actions

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:

Actions menu

This menu appears when you have opened a script. It contains the actions used during a test.

actions menu

To create a new action, simply click on one of the actions in the menu and it will be added to the editor.

Example :

If you want to create an “Enter text” action, click on the corresponding action in the menu,

enter text action

Then, the newly created action appear, empty of any information, in your script

new action without info

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

drag and drop

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.

create action popup

The generated action is linked to a graphical element in your application.

Select the action you want to do on your element.

contextual actions

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.

right click on an action

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.

greyed out action

They won’t be played during the script.

Active actions

You know that an action is selected when its colour is dark grey. This is what is called an active action.

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.

presentation of an action
  1. Each action has an index that add up automatically and is numbered depending on its position in the script (cf. index 2).
  2. Next to the index is the nature of the action, which can be parametered

Example :

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.

lego icon

Enter or modify attributes

attributes menu

You can also click on the element to add parents or children and specify their type.

specify the element

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.

index element

💡 Tip

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.

application root

Furthermore, you can drag and drop an element already used in a previous action into a new one.

drag and drop

Empty element

An action may not have an element.

application root

Click on the root application to show different options

root application options

  • Addition of an interface element: With this you can create an element with search criterias (type of element, parents, etc…)

It is also possible de variabilize the element index

💡 Tip

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.

desktop application

  • Dialog box: This is allows you to manage and execute actions on a dialog box
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.
screen record

Still require support?
Contact support