diff options
author | 2019-04-22 16:51:32 +0000 | |
---|---|---|
committer | 2019-04-22 16:51:32 +0000 | |
commit | 0ba43dd065b87346adebe651c91d3f97299a32ec (patch) | |
tree | 816e904fef039aa40803662bda0268eda4477608 /tests/vid/login/test1.robot | |
parent | 8d43285f32048a09429aff6b9326959fb8cd52b8 (diff) | |
parent | 867288fc5ce094fb70b85ec40ad9a1e33428238a (diff) |
Merge "changing simulator and endpoints for change management testing"
Diffstat (limited to 'tests/vid/login/test1.robot')
-rw-r--r-- | tests/vid/login/test1.robot | 55 |
1 files changed, 2 insertions, 53 deletions
diff --git a/tests/vid/login/test1.robot b/tests/vid/login/test1.robot index 2c39b503..3690b569 100644 --- a/tests/vid/login/test1.robot +++ b/tests/vid/login/test1.robot @@ -4,24 +4,8 @@ Library Selenium2Library Library Collections Library String Library RequestsLibrary -#Library OSUtils Library OperatingSystem - -*** Variables *** -${GLOBAL_APPLICATION_ID} robot-ete -${GLOBAL_SELENIUM_BROWSER} chrome -${GLOBAL_SELENIUM_BROWSER_CAPABILITIES} Create Dictionary -${GLOBAL_SELENIUM_DELAY} 0 -${GLOBAL_SELENIUM_BROWSER_IMPLICIT_WAIT} 5 -${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT} 15 -${VID_ENV} /vid -${VID_ENDPOINT} http://localhost:8080 -${VID_LOGIN_URL} ${VID_ENDPOINT}${VID_ENV}/login.htm -${VID_HEALTHCHECK_PATH} ${VID_ENV}/api/v2/users -${VID_HOME_URL} ${VID_ENDPOINT}${VID_ENV}/welcome.htm -${GLOBAL_VID_USERNAME} demo -${GLOBAL_VID_PASSWORD} Kp8bJ4SXszM0WX - +Resource ../resources/keywords/login_vid_keywords.robot *** Test Cases *** Login To VID GUI @@ -40,39 +24,4 @@ Login To VID GUI Click Button xpath=//input[@id='loginBtn'] Wait Until Page Contains Welcome to VID ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT} Log Logged in to ${VID_ENDPOINT}${VID_ENV} - [Teardown] Close Browser - -*** Keywords *** -Setup Browser - [Documentation] Sets up browser based upon the value of ${GLOBAL_SELENIUM_BROWSER} - Run Keyword If '${GLOBAL_SELENIUM_BROWSER}' == 'firefox' Setup Browser Firefox - Run Keyword If '${GLOBAL_SELENIUM_BROWSER}' == 'chrome' Setup Browser Chrome - Log Running with ${GLOBAL_SELENIUM_BROWSER} - -Setup Browser Firefox - ${dc} Evaluate sys.modules['selenium.webdriver'].DesiredCapabilities.FIREFOX sys, selenium.webdriver - Set To Dictionary ${dc} elementScrollBehavior 1 - Create Webdriver Firefox desired_capabilities=${dc} - Set Global Variable ${GLOBAL_SELENIUM_BROWSER_CAPABILITIES} ${dc} - -Setup Browser Chrome - #${os}= Get Normalized Os - #Log Normalized OS=${os} - ${chrome options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys - Call Method ${chrome options} add_argument no-sandbox - ${dc} Evaluate sys.modules['selenium.webdriver'].DesiredCapabilities.CHROME sys, selenium.webdriver - Set To Dictionary ${dc} elementScrollBehavior 1 - Create Webdriver Chrome chrome_options=${chrome_options} desired_capabilities=${dc} - Set Global Variable ${GLOBAL_SELENIUM_BROWSER_CAPABILITIES} ${dc} - -Handle Proxy Warning - [Documentation] Handle Intermediate Warnings from Proxies - ${status} ${data}= Run Keyword And Ignore Error Variable Should Exist \${GLOBAL_PROXY_WARNING_TITLE} - Return From Keyword if '${status}' != 'PASS' - ${status} ${data}= Run Keyword And Ignore Error Variable Should Exist \${GLOBAL_PROXY_WARNING_CONTINUE_XPATH} - Return From Keyword if '${status}' != 'PASS' - Return From Keyword if "${GLOBAL_PROXY_WARNING_TITLE}" == '' - Return From Keyword if "${GLOBAL_PROXY_WARNING_CONTINUE_XPATH}" == '' - ${test} ${value}= Run keyword and ignore error Title Should Be ${GLOBAL_PROXY_WARNING_TITLE} - Run keyword If '${test}' == 'PASS' Click Element xpath=${GLOBAL_PROXY_WARNING_CONTINUE_XPATH} -
\ No newline at end of file + [Teardown] Close Browser
\ No newline at end of file |