Introduction: – #
The “ImageRepo” feature is an integral component of our automation tool, designed to streamline the management and utilization of images within automated processes. This document provides a comprehensive demonstration of how to leverage this feature effectively for automation purposes.
This section describes how we used image-based tests in the automation of an application. An image-based test consists of a sequence of operations on UI elements in your tested application such as clicks, drag and drop operations, verification and so on.
Add Images: – #
To add an image into a project, follow these steps: –
- Go to the environment section.
- Select your project and click on it.
- By default, there are two folders available, one for release and other for store that is used for image storing. Click on store option.
- By default, ‘ImageRepo’ folder is open. Right click on the ImageRepo folder and create a new folder in which you want to store your image collection.
- After creating the folder, right click on the folder and add your image into this folder. There are two ways to add an image: –
- By capturing the image (capture the image of immediate open window)
- By uploading the image from your directory
- Provide the image name and click on add image button.
- Users can also crop multiple images from the main image and save it by providing different names and using it at the time of scripting.
- Note: – It is compulsory to add at least one crop image as per your requirement
Note: –Users can change ImageRepo threshold as per their need by Setting<<Config<<Tool Config
Process to use ImageRepo at the time of script automation: – #
- Go to the environment section.
- Right click on the required image and copy the image path.
- Then go to element file and create a element for this required image.
- Now use this image element at the time of image test creation.
- Users can use it for multiple operations such as clicking on specific images, for image verification etc.