-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_ios_simulator.robot
More file actions
38 lines (28 loc) · 1.33 KB
/
test_ios_simulator.robot
File metadata and controls
38 lines (28 loc) · 1.33 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
35
36
37
38
*** Settings ***
Library AppiumLibrary
Library TestingBot
Library AppOptions
Test Setup Open test app
Test Teardown Close test app
*** Test Cases ***
iOS Sample App Sum Test
Wait Until Page Contains Element accessibility_id=inputA timeout=30s
Input Text accessibility_id=inputA 10
Wait Until Page Contains Element accessibility_id=inputB timeout=30s
Input Text accessibility_id=inputB 5
*** Keywords ***
Open test app
${options}= Get App Options iOS
# W3C + Appium capabilities for a TestingBot iOS simulator
Call Method ${options} set_capability platformName iOS
Call Method ${options} set_capability appium:deviceName iPhone.*
Call Method ${options} set_capability appium:platformVersion 26.0
Call Method ${options} set_capability appium:automationName XCUITest
Call Method ${options} set_capability appium:app https://testingbot.com/appium/sample.zip
# Set custom TestingBot capabilities using tb:options
${tb_options}= Create Dictionary name=iOS Simulator 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