Test Acces to Portal Apps 67/42367/1
authorBrian Freeman <bf1936@att.com>
Thu, 12 Apr 2018 00:15:27 +0000 (19:15 -0500)
committerBrian Freeman <bf1936@att.com>
Thu, 12 Apr 2018 00:16:05 +0000 (19:16 -0500)
Issue-ID: TEST-86
Change-Id: Ic9dd9af376b1755ac24efdfbe9b3264adfcab3ef
Signed-off-by: Brian Freeman <bf1936@att.com>
robot/resources/portal_interface.robot
robot/testsuites/health-check.robot

index d69d5ff..2281b1e 100644 (file)
@@ -49,6 +49,16 @@ Run Portal Login Tests
      Login To Portal GUI   op0001  demo123456!
      Close All Browsers
 
+Run Portal Application Access Tests
+     [Documentation]    Runs Portal Application Access Tests
+     Log To Console    Testing SDC,VID,Policy
+     Run Portal Application Login Test   cs0008   demo123456!   gridster-SDC-icon-link   tabframe-SDC    Welcome to SDC
+     Close All Browsers
+     Run Portal Application Login Test   demo    demo123456!  gridster-Virtual-Infrastructure-Deployment-icon-link   tabframe-Virtual-Infrastructure-Deployment    Welcome to VID
+     Close All Browsers
+     Run Portal Application Login Test   demo    demo123456!  gridster-Policy-icon-link   tabframe-Policy    Policy Editor
+     Close All Browsers
+
 Login To Portal GUI
     [Documentation]   Logs in to Portal GUI
     [Arguments]     ${loginId}    ${password}
@@ -70,6 +80,33 @@ Login To Portal GUI
     Log    Logged in to ${PORTAL_ENDPOINT}${PORTAL_ENV}
     Log To Console  ${loginId} SUCCESS
 
+Run Portal Application Login Test
+    [Documentation]    Login to Portal Application
+    [Arguments]   ${loginId}   ${password}   ${click_element}    ${tabframe}   ${match_string}
+    # Setup Browser Now being managed by test case
+    ### 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}
+    Handle Proxy Warning
+    Title Should Be    Login
+    Input Text    xpath=//input[@ng-model='loginId']    ${loginId}
+    Input Password    xpath=//input[@ng-model='password']    ${password}
+    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
+    Sleep  5
+    Click Element    id=${click_element}
+    Sleep  5
+    Select Frame  id=${tabframe}
+    Sleep  5
+    Page Should Contain  ${match_string}
+    Log To Console   Portal Application Access SUCCESS ${click_element}
+
 Go To Portal HOME
     [Documentation]    Naviage to Portal Home
     Go To    ${PORTAL_HOME_URL}
index 00a64d9..b2953d1 100644 (file)
@@ -161,3 +161,8 @@ Health Distribution Test
 Portal Login Tests
     [Tags]    healthlogin
     Run Portal Login Tests 
+
+Portal Application Access Tests
+    [Tags]    healthportalapp
+    [Timeout]   180
+    Run Portal Application Access Tests