You want to get quickly started with Agilitest, but you don't know how to do it? Here is an article to help you get started. You can also watch our tutorial:
1. Technical prerequisites
Agilitest is installed on a computer running under Windows operating system.
Here are all the technical pre-requisites you need to know about: https://www.agilitest.com/documentation-agilitest?fuel=Hardware+and+software+requirements
2. Download Agilitest
If you don't have an access to an Agilitest package, go to the page: https://www.agilitest.com/free-trial
Fill in your personal information and we will go back to you for a short demo before the setup.
Our technical team will give you a link to download the package.
3. Install Agilitest
Once the agilitest.zip has been downloaded, you just need to unzip it in a folder where you have access rights.
Launch the Agilitest.exe file by double clicking on it. Then go to the settings panel.
Click on "Update" of the ATS configuration, it will download the last version of the ATS package.
For the java installation, you have two options:
- Click Download Java Configuration: do it by default if you don't know wether Java is already installed on your machine. It will break nothing if Java is already installed.
- You can also enter the directory where your JRE can be found if you want to use your own JRE.
4. Create a test project
Click on "New project". Select a directory with read/write access on your computer and click OK.
Agilitest will create a new project and a project tree under the selected directory.
5. Create your first test
Click on "New component" at the top left of the editor and select "Create ATS script". Enter the name of your first "helloworld" test.
Agilitest will create a helloworld.ats file in the project tree, under src/main/ats, and will open this file in the editor.
Click on the "Channels" action and select "Start Channel". By default Agilitest will create a web channel in Chrome.
Click on the play button that appears when you place your mouse on the right part of the channel opening action: the action will be launched and Agilitest will open a browser.
Click on the "Navigation" action and select "Browser URL". Agilitest will create a second action to navigate to a URL
Click on the "Browser URL" action which has just been created in the editor and select a website: www.google.com
Launch the action by clicking on the play button on the right.
Now, we are going to recover an element from the google page to perform an action on it: click on the "Capture" button on the right of the editor.
Agilitest will give focus to Chrome and allow you to select the elements of your web page.
Place your mouse on the main INPUT component of the page and press the CTRL key on your keyboard: Agilitest will open the main locator selection window.
Selecting a locator allows you to identify which attributes of your component, or its parents, make your component unique on the page. For example, select the "name" attribute by clicking on its selector.
If you click on the "Statistics" button, Agilitest tells you if it has uniquely identified the component.
When your locator is defined, you can drag-drop the component in the editor: click and hold your mouse button in the "Drag and drop in the editor" area
Move your mouse in the editor area until you see "Create an action" appear: either between two actions, or in the lower part of the last action created.
Then release your mouse button: Agilitest displays a menu allowing you to define the action you want to create.
Select "Enter text": a new action is created at the desired location.
Click on the new action created on the text "Enter text", and enter the text to search for.
Then, if you click on the play button of the new action created, your Chrome browser will launch a search on the site www.google.com
Here is it !, Agilitest works like that. You have the possibility of defining much more complex actions, adding controls, acting on locators and doing similar tests on Windows, mobile applications (Android and iOS) and web services: each time the principle remains the same.
One last thing: don't forget to close the open channel.
The name of the channel you close is the default opened channel, but don't forget: with Agilitest you can open as many channels as you want on as many different technologies in a single test.