-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_android_emulator.robot
More file actions
36 lines (26 loc) · 1.16 KB
/
test_android_emulator.robot
File metadata and controls
36 lines (26 loc) · 1.16 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 ***
Android Chrome Test
Go to https://www.google.com
Page should contain Google
*** Keywords ***
Open test browser
${options}= Get Browser Options chrome
# W3C + Appium capabilities for a TestingBot Android emulator
Call Method ${options} set_capability platformName Android
Call Method ${options} set_capability browserName Chrome
Call Method ${options} set_capability appium:deviceName Pixel.*
Call Method ${options} set_capability appium:platformVersion 16.0
Call Method ${options} set_capability appium:automationName UiAutomator2
# Set custom TestingBot capabilities using tb:options
${tb_options}= Create Dictionary name=Android Emulator 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