3690b5697b8b0c847ff12dcc298dc83a6881bd6d
[integration/csit.git] / tests / vid / login / test1.robot
1 *** Settings ***
2 Documentation     Logins to VID
3 Library             Selenium2Library
4 Library    Collections
5 Library         String
6 Library               RequestsLibrary
7 Library           OperatingSystem
8 Resource  ../resources/keywords/login_vid_keywords.robot
9
10 *** Test Cases ***
11 Login To VID GUI
12     [Documentation]   Logs in to VID GUI
13     # Setup Browser Now being managed by test case
14     Setup Browser
15     Go To    ${VID_LOGIN_URL}
16     #Maximize Browser Window
17     Set Selenium Speed    ${GLOBAL_SELENIUM_DELAY}
18     Set Browser Implicit Wait    ${GLOBAL_SELENIUM_BROWSER_IMPLICIT_WAIT}
19     Log    Logging in to ${VID_ENDPOINT}${VID_ENV}
20     #Handle Proxy Warning
21     Title Should Be    Login
22     Input Text    xpath=//input[@id='loginId']    ${GLOBAL_VID_USERNAME}
23     Input Password    xpath=//input[@id='password']    ${GLOBAL_VID_PASSWORD}
24     Click Button    xpath=//input[@id='loginBtn']
25     Wait Until Page Contains  Welcome to VID    ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
26     Log    Logged in to ${VID_ENDPOINT}${VID_ENV}
27     [Teardown]    Close Browser