-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.robot
37 lines (27 loc) · 1.07 KB
/
test.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
29
30
31
32
33
34
35
36
37
*** Settings ***
Library SeleniumLibrary
Library TestingBot
Library BrowserOptions
Test Setup Open test browser
Test Teardown Close test browser
*** Test Cases ***
Simple Test
Go to https://www.google.com
Page should contain Google
*** Keywords ***
Open test browser
${options}= Get Browser Options ${BROWSER}
# Set capabilities
Call Method ${options} set_capability platformName ${PLATFORM}
Call Method ${options} set_capability browserName ${BROWSER}
Call Method ${options} set_capability browserVersion ${VERSION}
# Set custom TestingBot capabilities using tb:options
${tb_options}= Create Dictionary name=test build=MyTestBuild
Call Method ${options} set_capability tb:options ${tb_options}
# Open browser with options
Open Browser remote_url=https://${TB_KEY}:${TB_SECRET}@hub.testingbot.com/wd/hub options=${options}
Close test browser
... Report TestingBot status
... ${SUITE_NAME} | ${TEST_NAME}
... ${TEST_STATUS} ${TB_KEY}:${TB_SECRET}
Close all browsers