Welcome to this series of 4 introduction videos, where you will learn to build automation cases in Leaptest. The introduction will teach you how to use image and text recognition, that you can use to automate any web and desktop application.
Leaptest Studio is where you design you automation cases and the first thing to do is to create a new project.
- Click “Project” in the left menu – this will show you the list of all projects.
- Click “new” at the top to add a new project and give it a name and a description.
Once the project is created we can add the first test case.
- Click “new case” and give it a title and press “Save”
The first time you open Leaptest, a project and a test case are already created and ready to be used.
All new test cases start with only one building block: the Start building block. It’s very simple and has only one property – the Action. This determines how the test should start.
- Set Action to “close all windows”
When the case is running, all other open windows will now be closed.
The first real action in the case is to click on an icon – in this case the chrome icon. For this purpose add a Click Image block by pulling the connector on the Start building block and releasing the mouse. This opens the building block menu and use type ahead to find the Click Image building block.
- Add Click Image building block
Now the 2 building blocks are connected by a green wire that points from the Start building block to the Click Image block. The arrow on the wire gives the direction of the workflow which means the Start building block will be executed first and then hand over the execution to the Click Image building block.
This building block will find the image on the screen when the case is running, and click the image if it is found. Before I capture the Chrome icon I want to make sure that Chrome is closed down. If it’s open the icon might change color or have some kind of hover effect that would affect the image recognition.
To specify an image:
- Click “select image to click”
- Click “capture new image”.
When you click “capture”, Leaptest will minimize and you can use the mouse to define the area you want to be clicked when the test case is run.
In this case move the mouse to the chrome icon and drag a square over the middle of the icon. When you release the mouse the area is now saved as an image in the building block.
End this first video by running the case.
This ends the first introduction step, teaching you how to:
- Create a project
- Add a test case
- Add a new building block
- Capture an image from the screen