aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/tests/portal/testsuites/browser_setup.robot
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-09-27 10:29:30 -0700
committerGary Wu <gary.i.wu@huawei.com>2018-09-27 12:50:28 -0700
commit2d3d8dcf6ef1bd2a161c69d561c629c5ec3f59c4 (patch)
tree652fd47a183c291e96c6721f550a5f63464f6e66 /test/csit/tests/portal/testsuites/browser_setup.robot
parente161173e279a73134dda4c2f429605d6c9ee1fe7 (diff)
Move CSIT to integration/csit repo
To facilite branching of CSIT tests, all CSIT test code and scripts are relocated to the integration/csit repo. Change-Id: I6777cd414e43dbf2bfa6215f7e50849e1a6a2e59 Issue-ID: INT-671 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'test/csit/tests/portal/testsuites/browser_setup.robot')
-rw-r--r--test/csit/tests/portal/testsuites/browser_setup.robot43
1 files changed, 0 insertions, 43 deletions
diff --git a/test/csit/tests/portal/testsuites/browser_setup.robot b/test/csit/tests/portal/testsuites/browser_setup.robot
deleted file mode 100644
index 6ef4f7268..000000000
--- a/test/csit/tests/portal/testsuites/browser_setup.robot
+++ /dev/null
@@ -1,43 +0,0 @@
-*** Settings ***
-Documentation The main interface for interacting with VID. It handles low level stuff like managing the selenium request library and VID required steps
-Library Collections
-Library OSUtils
-Library OperatingSystem
-Library ExtendedSelenium2Library
-Resource global_properties.robot
-
-*** Variables ***
-
-*** 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