-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcommon.robot
28 lines (23 loc) · 969 Bytes
/
common.robot
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
26
27
28
*** Settings ***
Library RemoteSikuliLibrary
Library Process
Library DateTime
*** Keywords ***
Log results and kill process
Stop Remote Server
Terminate All Processes
Start test server
${process} Start Process java -cp ${maven.runtime.classpath} org.robotframework.remoteserver.RemoteServer --library RemoteSikuliLibrary:/ --port 62022
Set Test Variable ${testServer} ${process}
Start test application
${process} Start Process java -cp ${maven.test.classpath} com.github.hi_fi.testapp.TestSwingApp
Set Test Variable ${testApp} ${process}
Sleep 5s
Use Focused App As Region
Click images
[Arguments] ${Keyword to test} ${button to click} ${expected outcome}
Run Keyword ${Keyword to test} ${button to click}
Wait Until Screen Contains ${expected outcome} 0.9
Close opened apps
Close App ${pid}
Close App ${pid2}