-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_ios_simulator.robot
More file actions
36 lines (26 loc) · 1.14 KB
/
test_ios_simulator.robot
File metadata and controls
36 lines (26 loc) · 1.14 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
*** Settings ***
Library SeleniumLibrary
Library TestingBot
Library BrowserOptions
Test Setup Open test browser
Test Teardown Close test browser
*** Test Cases ***
iOS Safari Test
Go to https://www.google.com
Page should contain Google
*** Keywords ***
Open test browser
${options}= Get Browser Options safari
# W3C + Appium capabilities for a TestingBot iOS simulator
Call Method ${options} set_capability platformName iOS
Call Method ${options} set_capability browserName Safari
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
# Set custom TestingBot capabilities using tb:options
${tb_options}= Create Dictionary name=iOS Safari Test build=MyTestBuild
Call Method ${options} set_capability tb:options ${tb_options}
Open Testingbot Browser ${options}
Close test browser
Report Testingbot Status ${SUITE_NAME} | ${TEST_NAME} ${TEST_STATUS}
Close all browsers