Abstract actions recognized through Natural Language Processing
Concordia Language contains a set of meta-actions that can be used by different testing frameworks for generating test scripts. Concordia Compiler uses Intent Recognition (yes, like chatbots do) to understand sentences and extract the desired action to perform. Later these actions are sent to testing frameworks for conversion into commands.
Concordia actions are recognized in Variants, Test Cases, and Test Events.
The following list presents the available actions and gives some examples on how to use them in sentences. We expect that you do not have to memorize them but, instead, see the things you can do. Try to write the sentences the way you speak, using first person singular (I
) . When there is a UI Element in the sentence, embrace it with {
and }
, like {this}
. The compiler will tell you whether it cannot understand some sentence you wrote. If you think it should have understood something, please tell us. We'll try to augment the compiler's vocabulary to understand it the next time.
accept
Accepts a browser message or app message.
amOn
Indicates a webpage or screen in which it is expected to be at.
append
Adds a value to an element.
attachFile
Attaches a file. It selects a file and confirms its choice (e.g., clicks Open).
cancel
Cancels a browser message or app message.
check
Checks a checkbox.
clear
Empties an input field or browser cookie
click
Clicks on something in the screen.
close
Closes a tab, a set of tabs, or an app (mobile only).
connect
Connects to a database.
The next sentence is for Test Events only:
disconnect
Disconnects from a database.
The next sentence is for Test Events only:
doubleClick
Performs a double click on something.
drag
Drags and drops something to a widget.
fill
Indicates that a field is being filled. If desired, a value can be given. Otherwise, a value will be generated for the corresponding Test Case.
hide
Hides something.
install
Installs an app.
maximize
Maximizes a window or the browser.
move
Moves the mouse cursor to a place or element.
open
Opens something
press
Presses a key or key combination, separated by comma.
Some special keys (case sensitive!):
Add
Alt
ArrowDown
or Down arrow
ArrowLeft
or Left arrow
ArrowRight
or Right arrow
ArrowUp
or Up arrow
Backspace
Command
Control
Del
Divide
End
Enter
Equals
Escape
F1
to F12
Home
Insert
Meta