▶️ You can find a tutorial on how to manage channels on our Youtube channel.
Tests performed with Agilitest are created from scripts that open channels to communicate with the application under test. Agilitest allows you to open multiple channels on multiple devices.
In an Agilitest-generated ATS script, there is always one active channel at any given time, and all actions are directed to that channel.
In Agilitest there is a distinction between actions to manage channels in ATS scripts and the channel management menu in the editor to perform graphical element capture operations.
Start a channel
All tests must start with a channel start action.
To do this, click on the channel action in the action menu
Then, click on "Start channel".
Next, it is best to rename the channel you have opened so that it can be referenced in the following actions.
To do this, click directly on the “Start channel” action
Then enter the name you want to give to your channel.
The "Start channel" action allows you to select the application that Agilitest will launch for you, you have several possibilities:
- Open a browser among those proposed (MsEdge, Chrome, Firefox, Brave, Opera, Internet Explorer)
- Open a Windows Explorer
- Open a desktop application defined in your configuration
- Open a mobile application (Android or iOS)
- Open any .exe application.
- Open a Webservice
It is possible to open multiple channels in a same script.
The "Switch channel" action allows you to switch from one channel to another opened channel identified by its name.
From this action, all the following actions will be directed to the specified channel in the "Switch channel" action.
Starting a new channel means that it will activates it directly.
You can also use the channel management menu to change the active channe.
To do this, click on the blue check mark next to the channel name to make the channel active
However, switching channel in the channel management menu will not figure as an action in your script.
Closing a channel tells Agilitest that this channel will no longer be used during this test, and will close the application.
You can also close the current channel from the run management panel in the Agilitest editor.
To do that, click on the “Close” button
Or the “Stop” sign on the channel line
You should not close your channel manually directly from the application. Agilitest is not intrusive (no plugin), it has no way of knowing that you have closed an application directly by the actions of the operating system (Example: by clicking on the cross of the application window).
Connec a channel to an application already launched
It is also possible to channel to a process already existing in your operating system.
To do this, you can use the command process:// supplemented with a regular expression to find your process in the list of already started processes.
Channels management menu
The channel management menu allows you to manage the different input channels of the actions when debugging tests.
The channel management menu is located on the left, under the project explorer.
It has several icons with the following functions:
This action is only available if you have already opened a channel. It allows you to enter the capture mode and select the elements on which to perform actions.
This action allows you to cleanly close an open channel, i.e. close the application and tell Agilitest that it is closed.
This action starts a complete execution from the current action. If you are not sure about an action to start a test, you will get the following message:
In Agilitest, all scripts can be sub-scripts of other scripts. In the editor, it is impossible for Agilitest to determine the start of a test, so you must indicate which action you want to start your test with in the editing and debugging phases.
This action executes the selected action and moves to the next action. You can therefore execute your test in sequence, step by step. This action is equivalent to the execution action of each action displayed to the right of the current action in the editor.
This action displays a sub-menu for selecting the current execution parameters in the editor.
- Animate: This allows you to replay the test by animating the actions performed.
Example: mouse movement, clicks, text entry, etc...
- Visual report: The visual report has the same result as the animation, but in the form of a video report: an ATSV file (ATS Video) is generated in the /target/reports directory. It is not necessary to put the replay in animation mode to get the visual report.
- XML Report: Agilitest will produce a test execution report in XML format (actions.xml), as well as a set of images corresponding to the screens that were visited by the test. These elements are stored in the directory /target/report/>test_name>. They can then be manipulated to produce three levels of execution reports as well as a pdf report using JASPER. The production of an XML report activates the generation of a visual report.
- Run in reduced mode: This allows you to hide the Agilitest editor during the test execution, and thus better see the application under test.
The reduced mode is very useful if you use Agilitest on a single screen.
Channel opening failures
What to do if the Agilitest editor won't open a test and capture a channel?
If this is a JDK problem, then :
- Verify that Java has been installed and that its version is compatible with Agilitest (version 14+)
It can be installed directly from the Agilitest "Configurations" menu in the top right-hand corner of the editor.
Click on the "Download" button to download the latest version of Java directly from Agilitest
If the problem is with the drivers and/or libraries:
This means that a file is blocked by the firewall or antivirus software. In this case there are two possible solutions:
- Regenerate drivers and libs files
- Repeat the operation, making sure that the blocking does not recur (temporary neutralisation of the antivirus).
- Close Agilitest
- Go to your computer's user folder to manually delete the "drivers" and "libs" folders.
- Open Agilitest again to force a regeneration of the files with the latest versions available in SAAS
2. Download packages manually to deploy them yourself
- Via the "Settings" menu, download the zipped Drivers and Libraries package
- The "ats.zip" archive will be automatically downloaded via your default browser.
- Unzip this "ats.zip" archive containing the "drivers" and "libs" folders into your own user folder.
If the problem persists, you can contact our support team at email@example.com or directly via Slack.
Open a channel with plugins
When you start a browser channel with Agilitest, the channel will be without plugins, without history, accounts, etc…
This simulates the use of a real user visiting your application for the first time. This is why a channel started by Agilitest does not load extensions by default.
There are several ways of achieving the behaviour you want, the simplest being to create a user profile and define this user profile when the channel is started.
Or, there is also the option of adding elements to your ats.properties file.
See the official documentation: www.actiontestscript.com