diff options
author | DR695H <dr695h@att.com> | 2019-05-08 13:55:32 -0400 |
---|---|---|
committer | DR695H <dr695h@att.com> | 2019-05-09 10:41:52 -0400 |
commit | 910097ed0b1f7922715bfead98d3be6809fe2479 (patch) | |
tree | b8700a356eaeb81f38d34a186ce0e4dbb879c790 /robot/resources/portal_interface.robot | |
parent | c5febc8b6264a08484b23ababec8f912cdd8f70d (diff) |
upgrade to python3 libraries
basing the code off of robot framework 3.1.1 instead of 3.0, replacing
selenium2lib with selnium lib and selenium3, replacing extendedselenium
with angularjs lib. Fixing most warnings and all errors from these moves
Change-Id: Ifed68c5b8cd28c7bbdc80ee7245860914bdee5b4
Issue-ID: TEST-151
Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'robot/resources/portal_interface.robot')
-rw-r--r-- | robot/resources/portal_interface.robot | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/robot/resources/portal_interface.robot b/robot/resources/portal_interface.robot index 2281b1eb..67c98889 100644 --- a/robot/resources/portal_interface.robot +++ b/robot/resources/portal_interface.robot @@ -3,7 +3,7 @@ Documentation The main interface for interacting with Portal. It handles low l Library RequestsClientCert Library RequestsLibrary Library UUID -Library ExtendedSelenium2Library +Library SeleniumLibrary Library Collections Library String @@ -59,6 +59,12 @@ Run Portal Application Access Tests Run Portal Application Login Test demo demo123456! gridster-Policy-icon-link tabframe-Policy Policy Editor Close All Browsers +Login To Portal GUI And Go Home + [Documentation] Logs in to Portal GUI + [Arguments] ${loginId} ${password} + Login To Portal GUI ${loginId} ${password} + Go To Portal HOME + Login To Portal GUI [Documentation] Logs in to Portal GUI [Arguments] ${loginId} ${password} @@ -66,7 +72,6 @@ Login To Portal GUI ### revert to local Setup Browser for Login test Setup Browser 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_ENDPOINT}${PORTAL_ENV} @@ -74,11 +79,17 @@ Login To Portal GUI Title Should Be Login Input Text xpath=//input[@ng-model='loginId'] ${loginId} Input Password xpath=//input[@ng-model='password'] ${password} - #Click Button xpath=//a[@ng-click='loginExternal();'] Click Element xpath=//a[@id='loginBtn'] Wait Until Page Contains Applications ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT} Log Logged in to ${PORTAL_ENDPOINT}${PORTAL_ENV} Log To Console ${loginId} SUCCESS + +Logout From Portal GUI + [Documentation] Logs out of Portal GUI + Go To ${PORTAL_LOGIN_URL} + Click Element xpath=//div[@id='header-user-icon'] + Run Keyword And Ignore Error Click Button xpath=//button[contains(.,'Log out')] + Log Logged out of ${PORTAL_ENDPOINT}${PORTAL_ENV} Run Portal Application Login Test [Documentation] Login to Portal Application |