-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathinit_example.robot
More file actions
26 lines (20 loc) · 1.29 KB
/
init_example.robot
File metadata and controls
26 lines (20 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
*** Settings ***
# Add Library to your tests. If you want to store all saved screenshots during the library keywords execution
# in the specific place pass an optional argument screenshot_folder as path. If not passed the current execution dir is used
Library ImageLibrary screenshot_folder=${CURDIR}${/}output
# In Suite Setup keyword init the Image Library with special keyword Init.
Suite Setup On Suite Setup
*** Keywords ***
On Suite Setup
# Get window area to specify only the area of a currently running program (Library will use it for zones). If you need the whole window
# just don't pass arguent area to Init keyword.
${windowArea} = Get Window Area
# Keyword to initialize the Image Library. Pass settings as list with paths to yaml config files, references as list with paths to template images
# and optional area if you want to work only with currently active window.
# You need also to specify the area region by using keyword Get Window Area which will automatically detect the active window or pass your own.
Init settings=${Settings} references=${References} area=${windowArea}
*** Variables ***
# List with yaml configs
@{SETTINGS} ${CURDIR}${/}config.yaml
# List with template images dirs
@{REFERENCES} ${CURDIR}${/}images