summaryrefslogtreecommitdiffstats
path: root/robot/resources/portal-sdk/portalDef.robot
diff options
context:
space:
mode:
authorCHINTAMANI <sireesh.ch@in.ibm.com>2018-09-20 18:08:37 -0400
committerCHINTAMANI <sireesh.ch@in.ibm.com>2018-09-20 18:08:37 -0400
commit24d19fd9b1da0a3908c932a8abb8b8bf125c7b23 (patch)
tree5cf85a4b2ae686fb682a4adec7bb7793185dfb28 /robot/resources/portal-sdk/portalDef.robot
parentf3fcc38525c36592c0b3ede68a5c0dad54cd3a16 (diff)
Portal test cases update for OOM
Change-Id: I5f451b8714db9b0becd8cd7c6d550a647c545e8e Issue-ID: PORTAL-343 Signed-off-by: Sireesh <sireesh.ch@in.ibm.com>
Diffstat (limited to 'robot/resources/portal-sdk/portalDef.robot')
-rw-r--r--robot/resources/portal-sdk/portalDef.robot23
1 files changed, 4 insertions, 19 deletions
diff --git a/robot/resources/portal-sdk/portalDef.robot b/robot/resources/portal-sdk/portalDef.robot
index 8be3abdc..cf553e4c 100644
--- a/robot/resources/portal-sdk/portalDef.robot
+++ b/robot/resources/portal-sdk/portalDef.robot
@@ -13,6 +13,7 @@ Library String
#Library XvfbRobot
Resource ../json_templater.robot
+Resource ../browser_setup.robot
*** Variables ***
#${PORTAL_URL} http://portal.api.simpledemo.onap.org:8989
@@ -60,30 +61,14 @@ ${download_link_id} 0
*** 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 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}
-
Portal admin Login To Portal GUI
[Documentation] Logs into Portal GUI
## Setup Browser Now being managed by test case
Setup Browser
#Start Virtual Display 1920 1080
- Open Browser ${PORTAL_LOGIN_URL} chrome
- #Go To ${PORTAL_LOGIN_URL}
- Maximize Browser Window
+ #Open Browser ${PORTAL_LOGIN_URL} chrome
+ Go To ${PORTAL_LOGIN_URL}
+ #Maximize Browser Window
Set Selenium Speed ${GLOBAL_SELENIUM_DELAY}
Set Browser Implicit Wait ${GLOBAL_SELENIUM_BROWSER_IMPLICIT_WAIT}
Log Logging in to ${PORTAL_URL}${PORTAL_ENV}