-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.robot
More file actions
34 lines (24 loc) · 1.01 KB
/
test.robot
File metadata and controls
34 lines (24 loc) · 1.01 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
26
27
28
29
30
31
32
33
34
*** Settings ***
Library AppiumLibrary
Library TestingBot
Library AppOptions
Test Setup Open test app
Test Teardown Close test app
*** Test Cases ***
Simple App Test
Wait Until Page Contains Element //* timeout=30s
*** Keywords ***
Open test app
${options}= Get App Options ${PLATFORM}
# W3C + Appium capabilities
Call Method ${options} set_capability platformName ${PLATFORM}
Call Method ${options} set_capability appium:platformVersion ${VERSION}
Call Method ${options} set_capability appium:deviceName ${DEVICE}
Call Method ${options} set_capability appium:app ${APP}
# Set custom TestingBot capabilities using tb:options
${tb_options}= Create Dictionary name=Simple App Test build=MyAppBuild
Call Method ${options} set_capability tb:options ${tb_options}
Open Testingbot App ${options}
Close test app
Report Testingbot Status ${SUITE_NAME} | ${TEST_NAME} ${TEST_STATUS}
Close Application