blob: c21cf406f6d60205750152f8842b2d5171eb10a9 [file] [log] [blame]
prkatti1e2198962016-12-23 00:20:37 -06001*** Settings ***
2
3Library XvfbRobot
4Library OperatingSystem
5Library Selenium2Library 120 120
6Library Telnet 30 Seconds
7Library Screenshot
8
9Resource resource.txt
10
11*** Keywords ***
12
13Open Browser With URL
14 [Documentation] Opens browser with specified URL.
15 [Arguments] ${URL}
16 Start Virtual Display 1920 1080
17 ${browser_ID}= Open Browser ${URL}
18 Set Window Size 1920 1080
19 [Return] browser_ID
20
21Break Firewall
22 [Documentation] Break firewall.
23 [Arguments] ${HOST} ${HOST_USERNAME} ${HOST_PASSWORD}
24 ${status} ${value}= Run Keyword And Ignore Error Telnet.Open Connection
25 ... ${HOST} prompt=#
26 Run Keyword If '${status}'=='PASS' Telnet.Login ${HOST_USERNAME}
27 ... ${HOST_PASSWORD} login_prompt=Username: password_prompt=Password:
28
29Login To GUI
30 [Documentation] Log into web GUI.
31 [Arguments] ${URL} ${xpath_uname} ${username}
32 ... ${xpath_password} ${password} ${xpath_signin} ${logo}
33 Go To ${URL}
34 Input Text ${xpath_uname} ${username}
35 Input Password ${xpath_password} ${password}
36 Click Button ${xpath_signin}
37 Wait Until Page Contains Element ${logo}