kishore | 328996f | 2017-09-08 17:15:42 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation This is RobotFrame work script |
| 3 | Library ExtendedSelenium2Library |
| 4 | Library OperatingSystem |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 5 | Library eteutils/RequestsClientCert.py |
| 6 | Library RequestsLibrary |
| 7 | Library eteutils/UUID.py |
| 8 | Library DateTime |
| 9 | Library Collections |
| 10 | Library eteutils/OSUtils.py |
| 11 | Library eteutils/StringTemplater.py |
| 12 | Library XvfbRobot |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 13 | Resource json_templater.robot |
kishore | 328996f | 2017-09-08 17:15:42 -0500 | [diff] [blame] | 14 | |
| 15 | |
| 16 | *** Variables *** |
kishore | 4089a33 | 2017-10-18 17:02:53 -0500 | [diff] [blame] | 17 | ${PORTAL_URL} http://portal.api.simpledemo.onap.org:8989 |
| 18 | ${PORTAL_ENV} /ONAPPORTAL |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 19 | ${PORTAL_LOGIN_URL} ${PORTAL_URL}${PORTAL_ENV}/login.htm |
| 20 | ${PORTAL_HOME_PAGE} ${PORTAL_URL}${PORTAL_ENV}/applicationsHome |
| 21 | ${PORTAL_MICRO_ENDPOINT} ${PORTAL_URL}${PORTAL_ENV}/commonWidgets |
| 22 | ${PORTAL_HOME_URL} ${PORTAL_URL}${PORTAL_ENV}/applicationsHome |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 23 | ${App_First_Name} demoapp |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 24 | ${App_Last_Name} demo |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 25 | ${App_Email_Address} demoapp@onap.com |
| 26 | ${App_LoginID} demoapp |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 27 | ${App_Loginpwd} demo123456! |
| 28 | ${App_LoginPwdCheck} demo123456! |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 29 | ${Sta_First_Name} demosta |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 30 | ${Sta_Last_Name} demo |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 31 | ${Sta_Email_Address} demosta@onap.com |
| 32 | ${Sta_LoginID} demosta |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 33 | ${Sta_Loginpwd} demo123456! |
| 34 | ${Sta_LoginPwdCheck} demo123456! |
| 35 | ${Test_First_Name} portal |
| 36 | ${Test_Last_Name} demo |
| 37 | ${Test_Email_Address} portal@onap.com |
| 38 | ${Test_LoginID} portal |
| 39 | ${Test_Loginpwd} demo123456! |
| 40 | ${Test_LoginPwdCheck} demo123456! |
| 41 | ${Existing_User} portal |
kishore | 4089a33 | 2017-10-18 17:02:53 -0500 | [diff] [blame] | 42 | ${PORTAL_HEALTH_CHECK_PATH} /ONAPPORTAL/portalApi/healthCheck |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 43 | ${PORTAL_ASSETS_DIRECTORY} ${CURDIR} |
| 44 | ${GLOBAL_APPLICATION_ID} robot-functional |
| 45 | ${GLOBAL_PORTAL_ADMIN_USER} demo |
| 46 | ${GLOBAL_PORTAL_ADMIN_PWD} demo123456! |
| 47 | ${GLOBAL_MSO_STATUS_PATH} /ecomp/mso/infra/orchestrationRequests/v2/ |
| 48 | ${GLOBAL_SELENIUM_BROWSER} chrome |
| 49 | ${GLOBAL_SELENIUM_BROWSER_CAPABILITIES} Create Dictionary |
| 50 | ${GLOBAL_SELENIUM_DELAY} 0 |
| 51 | ${GLOBAL_SELENIUM_BROWSER_IMPLICIT_WAIT} 5 |
| 52 | ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT} 15 |
| 53 | ${GLOBAL_OPENSTACK_HEAT_SERVICE_TYPE} orchestration |
| 54 | ${GLOBAL_OPENSTACK_CINDER_SERVICE_TYPE} volume |
| 55 | ${GLOBAL_OPENSTACK_NOVA_SERVICE_TYPE} compute |
| 56 | ${GLOBAL_OPENSTACK_NEUTRON_SERVICE_TYPE} network |
| 57 | ${GLOBAL_OPENSTACK_GLANCE_SERVICE_TYPE} image |
| 58 | ${GLOBAL_OPENSTACK_KEYSTONE_SERVICE_TYPE} identity |
| 59 | ${GLOBAL_BUILD_NUMBER} 0 |
| 60 | ${GLOBAL_VM_PRIVATE_KEY} ${EXECDIR}/robot/assets/keys/robot_ssh_private_key.pvt |
| 61 | ${jira} jira |
kishore | 4089a33 | 2017-10-18 17:02:53 -0500 | [diff] [blame] | 62 | ${RESOURCE_PATH} ONAPPORTAL/auxapi/ticketevent |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 63 | ${portal_Template} ${CURDIR}/portal.template |
| 64 | |
kishore | 328996f | 2017-09-08 17:15:42 -0500 | [diff] [blame] | 65 | |
| 66 | |
| 67 | *** Test Cases *** |
| 68 | |
| 69 | Portal Health Check |
| 70 | Run Portal Health Check |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 71 | |
| 72 | Login into Portal URL |
| 73 | Portal admin Login To Portal GUI |
| 74 | |
| 75 | Portal R1 Release |
| 76 | [Documentation] ONAP Portal R1 functionality test |
| 77 | Notification on ONAP Portal |
| 78 | Portal Application Account Management validation |
| 79 | |
| 80 | Portal R1 Release for AAF |
| 81 | [Documentation] ONAP Portal R1 functionality for AAF test |
| 82 | Portal AAF new fields |
| 83 | |
| 84 | Create Microse service onboarding |
| 85 | Portal admin Microservice Onboarding |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 86 | |
| 87 | |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 88 | Create Widget for all users |
| 89 | Portal Admin Create Widget for All users |
| 90 | |
| 91 | Delete Widget for all users |
| 92 | Portal Admin Delete Widget for All users |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 93 | |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 94 | Create Widget for Application Roles |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 95 | Portal Admin Create Widget for Application Roles |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 96 | |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 97 | Delete Widget for Application Roles |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 98 | Portal Admin Delete Widget for Application Roles |
| 99 | |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 100 | Validate Functional Top Menu Get Access |
| 101 | Functional Top Menu Get Access |
| 102 | |
| 103 | Validate Functional Top Menu Contact Us |
| 104 | Functional Top Menu Contact Us |
| 105 | |
| 106 | Edit Functional Menu |
| 107 | Portal admin Edit Functional menu |
| 108 | |
| 109 | |
| 110 | Broadbond Notification functionality |
| 111 | ${AdminBroadCastMsg}= Portal Admin Broadcast Notifications |
| 112 | set global variable ${AdminBroadCastMsg} |
| 113 | |
| 114 | |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 115 | Category Notification functionality |
| 116 | ${AdminCategoryMsg}= Portal Admin Category Notifications |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 117 | set global variable ${AdminCategoryMsg} |
| 118 | |
| 119 | Create a Test user for Application Admin -Test |
| 120 | Portal admin Add Application admin User New user -Test |
| 121 | |
| 122 | Create a Test User for Apllication Admin |
| 123 | Portal admin Add Application admin User New user |
| 124 | |
| 125 | Add Application Admin for Existing User Test user |
| 126 | Portal admin Add Application Admin Exiting User -APPDEMO |
| 127 | |
| 128 | Create a Test user for Standared User |
| 129 | Portal admin Add Standard User New user |
| 130 | |
| 131 | Add Application Admin for Exisitng User |
| 132 | Portal admin Add Application Admin Exiting User |
| 133 | |
| 134 | Delete Application Admin for Exisitng User |
| 135 | Portal admin Delete Application Admin Existing User |
| 136 | |
| 137 | Add Standard User Role for Existing user |
| 138 | Portal admin Add Standard User Existing user |
| 139 | |
| 140 | Edit Standard User Role for Existing user |
| 141 | Portal admin Edit Standard User Existing user |
| 142 | |
| 143 | |
| 144 | Delete Standard User Role for Existing user |
| 145 | Portal admin Delete Standard User Existing user |
| 146 | |
| 147 | |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 148 | |
| 149 | |
| 150 | Logout from Portal GUI as Portal Admin |
| 151 | Portal admin Logout from Portal GUI |
| 152 | |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 153 | Login To Portal GUI as APP Admin |
| 154 | Application admin Login To Portal GUI |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 155 | |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 156 | |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 157 | |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 158 | ##Navigate Functional Link as APP Admin |
| 159 | ## Application Admin Navigation Functional Menu |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 160 | |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 161 | Add Standard User Role for Existing user as APP Admin |
| 162 | Application admin Add Standard User Existing user |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 163 | |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 164 | Edit Standard User Role for Existing user as APP Admin |
| 165 | Application admin Edit Standard User Existing user |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 166 | |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 167 | Delete Standard User Role for Existing user as APP Admin |
| 168 | Application admin Delete Standard User Existing user |
| 169 | |
| 170 | #Navigate Application Link as APP Admin |
| 171 | # Application Admin Navigation Application Link Tab |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 172 | |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 173 | Logout from Portal GUI as APP Admin |
| 174 | Application admin Logout from Portal GUI |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 175 | |
| 176 | |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 177 | Login To Portal GUI as Standared User |
| 178 | Standared user Login To Portal GUI |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 179 | |
| 180 | #Navigate Application Link as Standared User |
| 181 | # Standared user Navigation Application Link Tab |
| 182 | |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 183 | ##Navigate Functional Link as Standared User |
| 184 | ## Standared user Navigation Functional Menu |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 185 | |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 186 | Broadcast Notifications Standared user |
| 187 | Standared user Broadcast Notifications ${AdminBroadCastMsg} |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 188 | |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 189 | Category Notifications Standared user |
| 190 | Standared user Category Notifications ${AdminCategoryMsg} |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 191 | |
| 192 | |
kishore | 328996f | 2017-09-08 17:15:42 -0500 | [diff] [blame] | 193 | Teardown |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 194 | [Documentation] Close All Open browsers |
| 195 | Close All Browsers |
kishore | 328996f | 2017-09-08 17:15:42 -0500 | [diff] [blame] | 196 | |
| 197 | |
| 198 | |
| 199 | |
| 200 | |
| 201 | |
| 202 | *** Keywords *** |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 203 | |
| 204 | Setup Browser |
| 205 | [Documentation] Sets up browser based upon the value of ${GLOBAL_SELENIUM_BROWSER} |
| 206 | # Run Keyword If '${GLOBAL_SELENIUM_BROWSER}' == 'firefox' Setup Browser Firefox |
| 207 | Run Keyword If '${GLOBAL_SELENIUM_BROWSER}' == 'chrome' Setup Browser Chrome |
| 208 | Log Running with ${GLOBAL_SELENIUM_BROWSER} |
| 209 | |
| 210 | |
| 211 | Setup Browser Chrome |
| 212 | ${os}= Get Normalized Os |
| 213 | Log Normalized OS=${os} |
| 214 | ${chrome options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys |
| 215 | Call Method ${chrome options} add_argument no-sandbox |
| 216 | ${dc} Evaluate sys.modules['selenium.webdriver'].DesiredCapabilities.CHROME sys, selenium.webdriver |
| 217 | Set To Dictionary ${dc} elementScrollBehavior 1 |
| 218 | Create Webdriver Chrome chrome_options=${chrome_options} desired_capabilities=${dc} |
| 219 | Set Global Variable ${GLOBAL_SELENIUM_BROWSER_CAPABILITIES} ${dc} |
| 220 | |
| 221 | Handle Proxy Warning |
| 222 | [Documentation] Handle Intermediate Warnings from Proxies |
| 223 | ${status} ${data}= Run Keyword And Ignore Error Variable Should Exist \${GLOBAL_PROXY_WARNING_TITLE} |
| 224 | Return From Keyword if '${status}' != 'PASS' |
| 225 | ${status} ${data}= Run Keyword And Ignore Error Variable Should Exist \${GLOBAL_PROXY_WARNING_CONTINUE_XPATH} |
| 226 | Return From Keyword if '${status}' != 'PASS' |
| 227 | Return From Keyword if "${GLOBAL_PROXY_WARNING_TITLE}" == '' |
| 228 | Return From Keyword if "${GLOBAL_PROXY_WARNING_CONTINUE_XPATH}" == '' |
| 229 | ${test} ${value}= Run keyword and ignore error Title Should Be ${GLOBAL_PROXY_WARNING_TITLE} |
| 230 | Run keyword If '${test}' == 'PASS' Click Element xpath=${GLOBAL_PROXY_WARNING_CONTINUE_XPATH} |
| 231 | |
| 232 | |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 233 | Run Portal Health Check |
| 234 | [Documentation] Runs Portal Health check |
| 235 | ${resp}= Run Portal Get Request ${PORTAL_HEALTH_CHECK_PATH} |
| 236 | Should Be Equal As Strings ${resp.status_code} 200 |
| 237 | Should Be Equal As Strings ${resp.json()['statusCode']} 200 |
| 238 | Run Portal Get Request |
| 239 | [Documentation] Runs Portal Get request |
| 240 | [Arguments] ${data_path} |
| 241 | ${session}= Create Session portal ${PORTAL_URL} |
| 242 | ${uuid}= Generate UUID |
| 243 | ${headers}= Create Dictionary Accept=application/json Content-Type=application/json X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid} X-FromAppId=${GLOBAL_APPLICATION_ID} |
| 244 | ${resp}= Get Request portal ${data_path} headers=${headers} |
| 245 | Log Received response from portal ${resp.text} |
| 246 | [Return] ${resp} |
| 247 | |
| 248 | |
| 249 | Portal admin Login To Portal GUI |
| 250 | [Documentation] Logs into Portal GUI |
| 251 | ## Setup Browser Now being managed by test case |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 252 | # Setup Browser |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 253 | Start Virtual Display 1920 1080 |
| 254 | Open Browser ${PORTAL_LOGIN_URL} chrome |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 255 | # Go To ${PORTAL_LOGIN_URL} |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 256 | Maximize Browser Window |
| 257 | Set Selenium Speed ${GLOBAL_SELENIUM_DELAY} |
| 258 | Set Browser Implicit Wait ${GLOBAL_SELENIUM_BROWSER_IMPLICIT_WAIT} |
| 259 | Log Logging in to ${PORTAL_URL}${PORTAL_ENV} |
| 260 | # Handle Proxy Warning |
| 261 | Title Should Be Login |
| 262 | Input Text xpath=//input[@ng-model='loginId'] ${GLOBAL_PORTAL_ADMIN_USER} |
| 263 | Input Password xpath=//input[@ng-model='password'] ${GLOBAL_PORTAL_ADMIN_PWD} |
| 264 | Click Link xpath=//a[@id='loginBtn'] |
| 265 | Wait Until Page Contains Element xpath=//img[@alt='Onap Logo'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT} |
| 266 | Log Logged in to ${PORTAL_URL}${PORTAL_ENV} |
| 267 | |
| 268 | Portal admin Go To Portal HOME |
| 269 | [Documentation] Naviage to Portal Home |
| 270 | Go To ${PORTAL_HOME_URL} |
| 271 | Wait Until Page Contains Element xpath=//div[@class='applicationWindow'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT} |
| 272 | |
| 273 | Portal admin User Notifications |
| 274 | [Documentation] Naviage to User notification tab |
| 275 | Click Link xpath=//a[@id='parent-item-User-Notifications'] |
| 276 | Wait Until Element Is Visible xpath=//h1[@class='heading-page'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT} |
| 277 | Click Button xpath=//button[@id='button-openAddNewApp'] |
| 278 | Click Button xpath=(//button[@id='undefined'])[1] |
| 279 | #Click Button xpath=//input[@id='datepicker-start'] |
| 280 | |
| 281 | |
| 282 | |
| 283 | |
| 284 | Portal admin Add Application Admin Exiting User |
| 285 | [Documentation] Naviage to Admins tab |
| 286 | Wait Until Element Is Visible xpath=//a[@title='Admins'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT} |
| 287 | Click Link xpath=//a[@title='Admins'] |
| 288 | Wait Until Element Is Visible xpath=//h1[contains(.,'Admins')] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT} |
| 289 | Page Should Contain Admins |
| 290 | Click Button xpath=//button[@ng-click='toggleSidebar()'] |
| 291 | Click Button xpath=//button[@ng-click='admins.openAddNewAdminModal()'] |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 292 | Input Text xpath=//input[@id='input-user-search'] ${Existing_User} |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 293 | Click Button xpath=//button[@id='button-search-users'] |
| 294 | Click Element xpath=//span[@id='result-uuid-0'] |
| 295 | Click Button xpath=//button[@id='search-users-button-next'] |
| 296 | Click Button xpath=//input[@value='Select application'] |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 297 | Scroll Element Into View xpath=(//input[@value='Select application']/following::*[contains(text(),'xDemo App' )])[1] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 298 | Click Element xpath=(//li[contains(.,'xDemo App' )])[2] |
| 299 | #Select From List xpath=(//input[@value='Select application']/following::*[contains(text(),'xDemo App')])[1] xDemo App |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 300 | Click Button xpath=//button[@id='div-updateAdminAppsRoles'] |
| 301 | Click Element xpath=//button[@id='admin-div-ok-button'] |
| 302 | Click Element xpath=//button[@id='div-confirm-ok-button'] |
| 303 | Get Selenium Implicit Wait |
| 304 | Click Link xpath=//a[@aria-label='Admins'] |
| 305 | Click Element xpath=//input[@id='dropdown1'] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 306 | Click Element xpath=//li[contains(.,'xDemo App' )] |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 307 | Input Text xpath=//input[@id='input-table-search'] ${Existing_User} |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 308 | Table Column Should Contain xpath=//*[@table-data='admins.adminsTableData'] 1 ${Existing_User} |
| 309 | #Element Text Should Be xpath=(//span[contains(.,'portal')])[1] ${Existing_User} |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 310 | #Element Text Should Be xpath=(//span[contains(.,'demo')])[1] ${Existing_User} |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 311 | |
| 312 | |
| 313 | Portal admin Delete Application Admin Existing User |
| 314 | [Documentation] Naviage to Admins tab |
| 315 | Click Element xpath=(//span[contains(.,'portal')] )[1] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 316 | #Click Element xpath=(//span[contains(.,'demo')] )[1] |
| 317 | Click Element xpath=//*[@id='select-app-xDemo-App']/following::i[@id='i-delete-application'] |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 318 | Click Element xpath=//button[@id='div-confirm-ok-button'] |
| 319 | Click Button xpath=//button[@id='div-updateAdminAppsRoles'] |
| 320 | Click Element xpath=//button[@id='admin-div-ok-button'] |
| 321 | #Is Element Visible xpath=(//span[contains(.,'Portal')] )[2] |
| 322 | #Is Element Visible xpath=(//*[contains(.,'Portal')] )[2] |
| 323 | Element Should Not Contain xpath=//*[@table-data='admins.adminsTableData'] portal |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 324 | #Element Should Not Contain xpath=//*[@table-data='admins.adminsTableData'] demo |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 325 | Click Image xpath=//img[@alt='Onap Logo'] |
| 326 | Set Selenium Implicit Wait 3000 |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 327 | |
| 328 | |
| 329 | Portal admin Add Application admin User New user |
| 330 | [Documentation] Naviage to Users tab |
| 331 | Click Link xpath=//a[@title='Users'] |
| 332 | Page Should Contain Users |
| 333 | Click Button xpath=//button[@ng-click='toggleSidebar()'] |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 334 | Click Button xpath=//button[@id='users-button-add'] |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 335 | Click Button xpath=//button[@id='Create-New-User-button'] |
| 336 | Input Text xpath=//input[@ng-model='searchUsers.newUser.firstName'] ${App_First_Name} |
| 337 | Input Text xpath=//input[@ng-model='searchUsers.newUser.lastName'] ${App_Last_Name} |
| 338 | Input Text xpath=//input[@ng-model='searchUsers.newUser.emailAddress'] ${App_Email_Address} |
| 339 | Input Text xpath=//input[@ng-model='searchUsers.newUser.loginId'] ${App_LoginID} |
| 340 | Input Text xpath=//input[@ng-model='searchUsers.newUser.loginPwd'] ${App_Loginpwd} |
| 341 | Input Text xpath=//input[@ng-model='searchUsers.newUser.loginPwdCheck'] ${App_LoginPwdCheck} |
| 342 | Click Button xpath=//button[@ng-click='searchUsers.addNewUserFun()'] |
| 343 | Click Button xpath=//button[@id='next-button'] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 344 | #Scroll Element Into View xpath=//div[@id='div-app-name-dropdown-xDemo-App'] |
| 345 | Click Element xpath=//*[@id='div-app-name-dropdown-xDemo-App'] |
| 346 | Click Element xpath=//*[@id='div-app-name-xDemo-App']/following::input[@id='Standard-User-checkbox'] |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 347 | Set Selenium Implicit Wait 3000 |
| 348 | Click Button xpath=//button[@id='new-user-save-button'] |
| 349 | Set Selenium Implicit Wait 3000 |
| 350 | Go To ${PORTAL_HOME_PAGE} |
| 351 | Click Link xpath=//a[@title='Users'] |
| 352 | Click Element xpath=//input[@id='dropdown1'] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 353 | Click Element xpath=//li[contains(.,'xDemo App')] |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 354 | Table Column Should Contain xpath=//*[@table-data='users.accountUsers'] 1 ${App_First_Name} |
| 355 | #Input Text xpath=//input[@id='input-table-search'] ${App_First_Name} |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 356 | #Element Text Should Be xpath=(//span[contains(.,'demoapp')] )[1] ${App_First_Name} |
| 357 | Click Image xpath=//img[@alt='Onap Logo'] |
| 358 | Set Selenium Implicit Wait 3000 |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 359 | |
| 360 | |
| 361 | Portal admin Add Standard User New user |
| 362 | [Documentation] Naviage to Users tab |
| 363 | Click Link xpath=//a[@title='Users'] |
| 364 | Page Should Contain Users |
| 365 | Click Button xpath=//button[@ng-click='toggleSidebar()'] |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 366 | Click Button xpath=//button[@id='users-button-add'] |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 367 | Click Button xpath=//button[@id='Create-New-User-button'] |
| 368 | Input Text xpath=//input[@ng-model='searchUsers.newUser.firstName'] ${Sta_First_Name} |
| 369 | Input Text xpath=//input[@ng-model='searchUsers.newUser.lastName'] ${Sta_Last_Name} |
| 370 | Input Text xpath=//input[@ng-model='searchUsers.newUser.emailAddress'] ${Sta_Email_Address} |
| 371 | Input Text xpath=//input[@ng-model='searchUsers.newUser.loginId'] ${Sta_LoginID} |
| 372 | Input Text xpath=//input[@ng-model='searchUsers.newUser.loginPwd'] ${Sta_Loginpwd} |
| 373 | Input Text xpath=//input[@ng-model='searchUsers.newUser.loginPwdCheck'] ${Sta_LoginPwdCheck} |
| 374 | Click Button xpath=//button[@ng-click='searchUsers.addNewUserFun()'] |
| 375 | Click Button xpath=//button[@id='next-button'] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 376 | #Scroll Element Into View xpath=//div[@id='div-app-name-dropdown-xDemo-App'] |
| 377 | Click Element xpath=//*[@id='div-app-name-dropdown-xDemo-App'] |
| 378 | Click Element xpath=//*[@id='div-app-name-xDemo-App']/following::input[@id='Standard-User-checkbox'] |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 379 | Set Selenium Implicit Wait 3000 |
| 380 | Click Button xpath=//button[@id='new-user-save-button'] |
| 381 | Set Selenium Implicit Wait 3000 |
| 382 | Go To ${PORTAL_HOME_PAGE} |
| 383 | Click Link xpath=//a[@title='Users'] |
| 384 | Click Element xpath=//input[@id='dropdown1'] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 385 | Click Element xpath=//li[contains(.,'xDemo App')] |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 386 | Table Column Should Contain xpath=//*[@table-data='users.accountUsers'] 1 ${Sta_First_Name} |
| 387 | #Input Text xpath=//input[@id='input-table-search'] ${Sta_First_Name} |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 388 | #Element Text Should Be xpath=(//span[contains(.,'appdemo')] )[1] ${Sta_First_Name} |
| 389 | Click Image xpath=//img[@alt='Onap Logo'] |
| 390 | Set Selenium Implicit Wait 3000 |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 391 | |
| 392 | |
| 393 | |
| 394 | Portal admin Add Application admin User New user -Test |
| 395 | [Documentation] Naviage to Users tab |
| 396 | Click Link xpath=//a[@title='Users'] |
| 397 | Page Should Contain Users |
| 398 | Click Button xpath=//button[@ng-click='toggleSidebar()'] |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 399 | Click Button xpath=//button[@id='users-button-add'] |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 400 | Click Button xpath=//button[@id='Create-New-User-button'] |
| 401 | Input Text xpath=//input[@ng-model='searchUsers.newUser.firstName'] ${Test_First_Name} |
| 402 | Input Text xpath=//input[@ng-model='searchUsers.newUser.lastName'] ${Test_Last_Name} |
| 403 | Input Text xpath=//input[@ng-model='searchUsers.newUser.emailAddress'] ${Test_Email_Address} |
| 404 | Input Text xpath=//input[@ng-model='searchUsers.newUser.loginId'] ${Test_LoginID} |
| 405 | Input Text xpath=//input[@ng-model='searchUsers.newUser.loginPwd'] ${Test_Loginpwd} |
| 406 | Input Text xpath=//input[@ng-model='searchUsers.newUser.loginPwdCheck'] ${Test_LoginPwdCheck} |
| 407 | Click Button xpath=//button[@ng-click='searchUsers.addNewUserFun()'] |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 408 | Click Button xpath=//button[@id='search-users-button-cancel'] |
| 409 | Click Image xpath=//img[@alt='Onap Logo'] |
| 410 | Set Selenium Implicit Wait 3000 |
| 411 | |
| 412 | |
| 413 | #Click Button xpath=//button[@id='next-button'] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 414 | #Scroll Element Into View xpath=//div[@id='div-app-name-dropdown-xDemo-App'] |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 415 | #Click Element xpath=//*[@id='div-app-name-dropdown-xDemo-App'] |
| 416 | #Click Element xpath=//*[@id='div-app-name-xDemo-App']/following::input[@id='Standard-User-checkbox'] |
| 417 | #Set Selenium Implicit Wait 3000 |
| 418 | #Click Button xpath=//button[@id='new-user-save-button'] |
| 419 | #Set Selenium Implicit Wait 3000 |
| 420 | #Go To ${PORTAL_HOME_PAGE} |
| 421 | #Click Link xpath=//a[@title='Users'] |
| 422 | #Click Element xpath=//input[@id='dropdown1'] |
| 423 | #Click Element xpath=//li[contains(.,'xDemo App')] |
| 424 | #Table Column Should Contain xpath=//*[@table-data='users.accountUsers'] 1 ${Test_First_Name} |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 425 | #Input Text xpath=//input[@id='input-table-search'] ${Test_First_Name} |
| 426 | #Element Text Should Be xpath=(//span[contains(.,'appdemo')] )[1] ${Test_First_Name} |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 427 | |
| 428 | |
| 429 | |
| 430 | Portal admin Add Application Admin Exiting User -APPDEMO |
| 431 | [Documentation] Naviage to Admins tab |
| 432 | Wait Until Element Is Visible xpath=//a[@title='Admins'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT} |
| 433 | Click Link xpath=//a[@title='Admins'] |
| 434 | Wait Until Element Is Visible xpath=//h1[contains(.,'Admins')] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT} |
| 435 | Page Should Contain Admins |
| 436 | Click Button xpath=//button[@ng-click='toggleSidebar()'] |
| 437 | Click Button xpath=//button[@ng-click='admins.openAddNewAdminModal()'] |
| 438 | Input Text xpath=//input[@id='input-user-search'] ${App_First_Name} |
| 439 | Click Button xpath=//button[@id='button-search-users'] |
| 440 | Click Element xpath=//span[@id='result-uuid-0'] |
| 441 | Click Button xpath=//button[@id='search-users-button-next'] |
| 442 | Click Button xpath=//input[@value='Select application'] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 443 | Scroll Element Into View xpath=(//input[@value='Select application']/following::*[contains(text(),'xDemo App' )])[1] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 444 | Click Element xpath=(//li[contains(.,'xDemo App' )])[2] |
| 445 | #Select From List xpath=(//input[@value='Select application']/following::*[contains(text(),'xDemo App')])[1] xDemo App |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 446 | Click Button xpath=//button[@id='div-updateAdminAppsRoles'] |
| 447 | Click Element xpath=//button[@id='admin-div-ok-button'] |
| 448 | Click Element xpath=//button[@id='div-confirm-ok-button'] |
| 449 | Get Selenium Implicit Wait |
| 450 | Click Link xpath=//a[@aria-label='Admins'] |
| 451 | Click Element xpath=//input[@id='dropdown1'] |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 452 | Click Element xpath=//li[contains(.,'xDemo App' )] |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 453 | Input Text xpath=//input[@id='input-table-search'] ${App_First_Name} |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 454 | #Element Text Should Be xpath=(//span[contains(.,'appdemo')])[1] ${App_First_Name} |
| 455 | Table Column Should Contain xpath=//*[@table-data='admins.adminsTableData'] 1 ${App_First_Name} |
| 456 | Click Image xpath=//img[@alt='Onap Logo'] |
| 457 | Set Selenium Implicit Wait 3000 |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 458 | |
| 459 | |
| 460 | |
| 461 | |
| 462 | |
| 463 | |
| 464 | |
| 465 | Portal admin Add Standard User Existing user |
| 466 | [Documentation] Naviage to Users tab |
| 467 | Click Link xpath=//a[@title='Users'] |
| 468 | Page Should Contain Users |
| 469 | Click Button xpath=//button[@ng-click='toggleSidebar()'] |
| 470 | Click Button xpath=//button[@ng-click='users.openAddNewUserModal()'] |
| 471 | Input Text xpath=//input[@id='input-user-search'] ${Existing_User} |
| 472 | Click Button xpath=//button[@id='button-search-users'] |
| 473 | Click Element xpath=//span[@id='result-uuid-0'] |
| 474 | Click Button xpath=//button[@id='next-button'] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 475 | Click Element xpath=//*[@id='div-app-name-dropdown-xDemo-App'] |
| 476 | Click Element xpath=//*[@id='div-app-name-xDemo-App']/following::input[@id='Standard-User-checkbox'] |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 477 | #Click Element xpath=//div[@id='div-app-name-dropdown-xDemo-App'] |
| 478 | #Click Element xpath=//div[@id='div-app-name-xDemo-App']/following::input[@id='Standard-User-checkbox'] |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 479 | Set Selenium Implicit Wait 3000 |
| 480 | Click Button xpath=//button[@id='new-user-save-button'] |
| 481 | Set Selenium Implicit Wait 3000 |
| 482 | #Set Browser Implicit Wait ${GLOBAL_SELENIUM_BROWSER_IMPLICIT_WAIT} |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 483 | #Select From List xpath=//input[@value='Select application'] xDemo App |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 484 | #Click Link xpath=//a[@title='Users'] |
| 485 | #Page Should Contain Users |
| 486 | #Focus xpath=//input[@name='dropdown1'] |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 487 | Go To ${PORTAL_HOME_PAGE} |
| 488 | Click Link xpath=//a[@title='Users'] |
| 489 | Click Element xpath=//input[@id='dropdown1'] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 490 | Click Element xpath=//li[contains(.,'xDemo App')] |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 491 | #Click Element xpath=//li[contains(.,'XDemo App')] |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 492 | Input Text xpath=//input[@id='input-table-search'] ${Existing_User} |
| 493 | Element Text Should Be xpath=(.//*[@id='rowheader_t1_0'])[2] Standard User |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 494 | |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 495 | |
| 496 | |
| 497 | Portal admin Edit Standard User Existing user |
| 498 | [Documentation] Naviage to Users tab |
| 499 | Click Element xpath=(.//*[@id='rowheader_t1_0'])[2] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 500 | Click Element xpath=//*[@id='div-app-name-dropdown-xDemo-App'] |
| 501 | Click Element xpath=//*[@id='div-app-name-xDemo-App']/following::input[@id='Standard-User-checkbox'] |
| 502 | Click Element xpath=//*[@id='div-app-name-xDemo-App']/following::input[@id='System-Administrator-checkbox'] |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 503 | Set Selenium Implicit Wait 3000 |
| 504 | Click Button xpath=//button[@id='new-user-save-button'] |
| 505 | Set Selenium Implicit Wait 3000 |
| 506 | Page Should Contain Users |
| 507 | #Click Button xpath=//input[@id='dropdown1'] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 508 | #Click Element xpath=//li[contains(.,'xDemo App')] |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 509 | Input Text xpath=//input[@id='input-table-search'] ${Existing_User} |
| 510 | Element Text Should Be xpath=(.//*[@id='rowheader_t1_0'])[2] System Administrator |
| 511 | |
| 512 | |
| 513 | Portal admin Delete Standard User Existing user |
| 514 | [Documentation] Naviage to Users tab |
| 515 | Click Element xpath=(.//*[@id='rowheader_t1_0'])[2] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 516 | Scroll Element Into View xpath=//*[@id='div-app-name-xDemo-App']/following::*[@id='app-item-delete'][1] |
| 517 | Click Element xpath=//*[@id='div-app-name-xDemo-App']/following::*[@id='app-item-delete'][1] |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 518 | Click Element xpath=//button[@id='div-confirm-ok-button'] |
| 519 | Click Button xpath=//button[@id='new-user-save-button'] |
| 520 | #Input Text xpath=//input[@id='input-table-search'] ${Existing_User} |
| 521 | #Is Element Visible xpath=(//*[contains(.,'Portal')] )[2] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 522 | Element Should Not Contain xpath=//*[@table-data='users.accountUsers'] portal |
| 523 | #Element Should Not Contain xpath=//*[@table-data='users.accountUsers'] demo |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 524 | |
| 525 | |
| 526 | |
| 527 | |
| 528 | Functional Top Menu Get Access |
| 529 | [Documentation] Naviage to Support tab |
| 530 | Click Link xpath=//a[contains(.,'Support')] |
| 531 | Mouse Over xpath=//*[contains(text(),'Get Access')] |
| 532 | Click Link xpath=//a[contains(.,'Get Access')] |
| 533 | Element Text Should Be xpath=//h1[contains(.,'Get Access')] Get Access |
| 534 | |
| 535 | |
| 536 | Functional Top Menu Contact Us |
| 537 | [Documentation] Naviage to Support tab |
| 538 | Click Link xpath=//a[contains(.,'Support')] |
| 539 | Mouse Over xpath=//*[contains(text(),'Contact Us')] |
| 540 | Click Link xpath=//a[contains(.,'Contact Us')] |
| 541 | Element Text Should Be xpath=//h1[contains(.,'Contact Us')] Contact Us |
| 542 | Click Image xpath=//img[@alt='Onap Logo'] |
| 543 | |
| 544 | |
| 545 | Portal admin Edit Functional menu |
| 546 | [Documentation] Naviage to Edit Functional menu tab |
| 547 | Click Link xpath=//a[@title='Edit Functional Menu'] |
| 548 | Click Link xpath=.//*[@id='Manage']/div/a |
| 549 | Click Link xpath=.//*[@id='Design']/div/a |
| 550 | Click Link xpath=.//*[@id='Product_Design']/div/a |
| 551 | Open Context Menu xpath=//*[@id='Product_Design']/div/span |
| 552 | Click Link xpath=//a[@href='#add'] |
| 553 | Input Text xpath=//input[@id='input-title'] ONAP Test |
| 554 | #Input Text xpath=//input[@id='input-url'] http://google.com |
| 555 | Click Element xpath=//input[@id='select-app'] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 556 | Scroll Element Into View xpath=//li[contains(.,'xDemo App')] |
| 557 | Click Element xpath=//li[contains(.,'xDemo App')] |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 558 | Input Text xpath=//input[@id='input-url'] http://google.com |
| 559 | Click Button xpath=//button[@id='button-save-continue'] |
| 560 | #Click Button xpath=//div[@title='Select Roles'] |
| 561 | Click Element xpath=//*[@id='app-select-Select Roles'] |
| 562 | Click Element xpath=//input[@id='Standard-User-checkbox'] |
| 563 | Click Element xpath=//button[@id='button-save-add'] |
| 564 | Click Image xpath=//img[@alt='Onap Logo'] |
| 565 | Set Selenium Implicit Wait 3000 |
| 566 | Click Link xpath=//a[contains(.,'Manage')] |
| 567 | Mouse Over xpath=//*[contains(text(),'Design')] |
| 568 | Set Selenium Implicit Wait 3000 |
| 569 | Element Text Should Be xpath=//a[contains(.,'ONAP Test')] ONAP Test |
| 570 | Set Selenium Implicit Wait 3000 |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 571 | Click Image xpath=//img[@alt='Onap Logo'] |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 572 | Click Link xpath=//a[@title='Edit Functional Menu'] |
| 573 | Click Link xpath=.//*[@id='Manage']/div/a |
| 574 | Click Link xpath=.//*[@id='Design']/div/a |
| 575 | Click Link xpath=.//*[@id='Product_Design']/div/a |
| 576 | Open Context Menu xpath=//*[@id='ONAP_Test'] |
| 577 | Click Link xpath=//a[@href='#delete'] |
| 578 | Set Selenium Implicit Wait 3000 |
| 579 | Click Element xpath=//button[@id='div-confirm-ok-button'] |
| 580 | Click Image xpath=//img[@alt='Onap Logo'] |
| 581 | Set Selenium Implicit Wait 3000 |
| 582 | Click Link xpath=//a[contains(.,'Manage')] |
| 583 | Mouse Over xpath=//*[contains(text(),'Design')] |
| 584 | Set Selenium Implicit Wait 3000 |
| 585 | Element Should Not Contain xpath=(.//*[contains(.,'Design')]/following::ul[1])[1] ONAP Test |
| 586 | |
| 587 | |
| 588 | |
| 589 | Portal admin Microservice Onboarding |
| 590 | [Documentation] Naviage to Edit Functional menu tab |
| 591 | Click Link xpath=//a[@title='Microservice Onboarding'] |
| 592 | Click Button xpath=//button[@id='microservice-onboarding-button-add'] |
| 593 | Input Text xpath=//input[@name='name'] Test Microservice |
| 594 | Input Text xpath=//*[@name='desc'] Test |
| 595 | Click Element xpath=//input[@id='microservice-details-input-app'] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 596 | Scroll Element Into View xpath=//li[contains(.,'xDemo App')] |
| 597 | Click Element xpath=//li[contains(.,'xDemo App')] |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 598 | Click Element xpath=//*[@name='desc'] |
| 599 | Input Text xpath=//input[@name='url'] ${PORTAL_MICRO_ENDPOINT} |
| 600 | Click Element xpath=//input[@id='microservice-details-input-security-type'] |
| 601 | Scroll Element Into View xpath=//li[contains(.,'Basic Authentication')] |
| 602 | Click Element xpath=//li[contains(.,'Basic Authentication')] |
| 603 | Input Text xpath=//input[@name='username'] ${GLOBAL_PORTAL_ADMIN_USER} |
| 604 | Input Text xpath=//input[@name='password'] ${GLOBAL_PORTAL_ADMIN_PWD} |
| 605 | Click Button xpath=//button[@id='microservice-details-save-button'] |
| 606 | Table Column Should Contain xpath=//*[@table-data='serviceList'] 1 Test Microservice |
| 607 | #Element Text Should Be xpath=//*[@table-data='serviceList'] Test Microservice |
| 608 | |
| 609 | |
| 610 | |
| 611 | Portal Admin Create Widget for All users |
| 612 | [Documentation] Naviage to Create Widget menu tab |
| 613 | ${WidgetAttachment}= Catenate ${PORTAL_ASSETS_DIRECTORY}//widget_news.zip |
| 614 | Click Link xpath=//a[@title='Widget Onboarding'] |
| 615 | Click Button xpath=//button[@ng-click='toggleSidebar()'] |
| 616 | Click Button xpath=//button[@id='widget-onboarding-button-add'] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 617 | Input Text xpath=//*[@name='name'] ONAP-xDemo |
| 618 | Input Text xpath=//*[@name='desc'] ONAP xDemo |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 619 | Click Element xpath=//*[@id='widgets-details-input-endpoint-url'] |
| 620 | Scroll Element Into View xpath=//li[contains(.,'Test Microservice')] |
| 621 | Click Element xpath=//li[contains(.,'Test Microservice')] |
| 622 | Click Element xpath=//*[contains(text(),'Allow all user access')]/preceding::input[@ng-model='widgetOnboardingDetails.widget.allUser'][1] |
| 623 | Choose File xpath=//input[@id='widget-onboarding-details-upload-file'] ${WidgetAttachment} |
| 624 | Click Button xpath=//button[@id='widgets-details-save-button'] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 625 | Wait Until Page Contains ONAP-xDemo ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT} |
| 626 | Page Should Contain ONAP-xDemo |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 627 | Set Selenium Implicit Wait 3000 |
| 628 | GO TO ${PORTAL_HOME_PAGE} |
| 629 | |
| 630 | |
| 631 | Portal Admin Delete Widget for All users |
| 632 | [Documentation] Naviage to delete Widget menu tab |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 633 | #Wait Until Page Contains ONAP-xDemo ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT} |
| 634 | #Page Should Contain ONAP-xDemo |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 635 | #Click Image xpath=//img[@alt='Onap Logo'] |
| 636 | Click Link xpath=//a[@title='Widget Onboarding'] |
| 637 | Click Element xpath=//input[@id='dropdown1'] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 638 | Click Element xpath=//li[contains(.,'xDemo App')] |
| 639 | #Wait Until Page Contains xpath=(.//*[contains(text(),'ONAP-xDemo')]/followi |
| 640 | #Wait Until Page Contains xpath=(.//*[contains(text(),'ONAP-xDemo')]/following::*[@ng-click='widgetOnboarding.deleteWidget(rowData)'])[1] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT} |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 641 | Click Button xpath=//button[@ng-click='toggleSidebar()'] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 642 | Click Element xpath=(.//*[contains(text(),'ONAP-xDemo')]/following::*[@ng-click='widgetOnboarding.deleteWidget(rowData)'])[1] |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 643 | Click Element xpath=//button[@id='div-confirm-ok-button'] |
| 644 | Set Selenium Implicit Wait 3000 |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 645 | Element Should Not Contain xpath=//*[@table-data='portalAdmin.portalAdminsTableData'] ONAP-xDemo |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 646 | #Is Element Visible xpath=//*[@table-data='portalAdmin.portalAdminsTableData'] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 647 | #Table Column Should Contain .//*[@table-data='portalAdmin.portalAdminsTableData'] 0 ONAP-xDemo |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 648 | #Set Selenium Implicit Wait 3000 |
| 649 | |
| 650 | |
| 651 | Portal Admin Create Widget for Application Roles |
| 652 | [Documentation] Naviage to Create Widget menu tab |
| 653 | ${WidgetAttachment}= Catenate ${PORTAL_ASSETS_DIRECTORY}//widget_news.zip |
| 654 | Click Link xpath=//a[@title='Widget Onboarding'] |
| 655 | Click Button xpath=//button[@ng-click='toggleSidebar()'] |
| 656 | Click Button xpath=//button[@id='widget-onboarding-button-add'] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 657 | Input Text xpath=//*[@name='name'] ONAP-xDemo |
| 658 | Input Text xpath=//*[@name='desc'] ONAP xDemo |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 659 | Click Element xpath=//*[@id='widgets-details-input-endpoint-url'] |
| 660 | Scroll Element Into View xpath=//li[contains(.,'Test Microservice')] |
| 661 | Click Element xpath=//li[contains(.,'Test Microservice')] |
| 662 | Click element xpath=//*[@id="app-select-Select Applications"] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 663 | click element xpath=//*[@id="xDemo-App-checkbox"] |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 664 | Click element xpath=//*[@name='desc'] |
| 665 | click element xpath=//*[@id="app-select-Select Roles"] |
| 666 | click element xpath=//*[@id="Standard-User-checkbox"] |
| 667 | Click element xpath=//*[@name='desc'] |
| 668 | Scroll Element Into View xpath=//input[@id='widget-onboarding-details-upload-file'] |
| 669 | Choose File xpath=//input[@id='widget-onboarding-details-upload-file'] ${WidgetAttachment} |
| 670 | Click Button xpath=//button[@id='widgets-details-save-button'] |
| 671 | Click Image xpath=//img[@alt='Onap Logo'] |
| 672 | Set Selenium Implicit Wait 3000 |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 673 | #Wait Until Page Contains ONAP-xDemo ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT} |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 674 | Click Link xpath=//a[@title='Widget Onboarding'] |
| 675 | Click Element xpath=//input[@id='dropdown1'] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 676 | Click Element xpath=//li[contains(.,'xDemo App')] |
| 677 | Page Should Contain ONAP-xDemo |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 678 | Set Selenium Implicit Wait 3000 |
| 679 | GO TO ${PORTAL_HOME_PAGE} |
| 680 | |
| 681 | |
| 682 | |
| 683 | |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 684 | Portal Admin Delete Widget for Application Roles |
| 685 | #Wait Until Page Contains ONAP-xDemo ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT} |
| 686 | #Page Should Contain ONAP-xDemo |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 687 | #Click Image xpath=//img[@alt='Onap Logo'] |
| 688 | Click Link xpath=//a[@title='Widget Onboarding'] |
| 689 | Click Element xpath=//input[@id='dropdown1'] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 690 | Click Element xpath=//li[contains(.,'xDemo App')] |
| 691 | #Wait Until Page Contains xpath=(.//*[contains(text(),'ONAP-xDemo')]/followi |
| 692 | #Wait Until Page Contains xpath=(.//*[contains(text(),'ONAP-xDemo')]/following::*[@ng-click='widgetOnboarding.deleteWidget(rowData)'])[1] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT} |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 693 | Click Button xpath=//button[@ng-click='toggleSidebar()'] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 694 | Scroll Element Into View xpath=//*[contains(text(),'ONAP-xDemo')]/following::td[3]/div |
| 695 | Click Element xpath=//*[contains(text(),'ONAP-xDemo')]/following::td[3]/div |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 696 | Click Element xpath=//button[@id='div-confirm-ok-button'] |
| 697 | Set Selenium Implicit Wait 3000 |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 698 | Element Should Not Contain xpath=//*[@table-data='portalAdmin.portalAdminsTableData'] ONAP-xDemo |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 699 | #Is Element Visible xpath=//*[@table-data='portalAdmin.portalAdminsTableData'] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 700 | #Table Column Should Contain .//*[@table-data='portalAdmin.portalAdminsTableData'] 0 ONAP-xDemo |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 701 | #Set Selenium Implicit Wait 3000 |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 702 | |
| 703 | |
| 704 | |
| 705 | Portal Admin Edit Widget |
| 706 | [Documentation] Naviage to Home tab |
| 707 | #Mouse Over xpath=(//h3[contains(text(),'News')]/following::span[1])[1] |
| 708 | Click Element xpath=(//h3[contains(text(),'News')]/following::span[1])[1] |
| 709 | Set Browser Implicit Wait 8000 |
| 710 | #Wait Until Element Is Visible xpath=(//h3[contains(text(),'News')]/following::span[1]/following::a[contains(text(),'Edit')])[1] 60 |
| 711 | Mouse Over xpath=(//h3[contains(text(),'News')]/following::span[1]/following::a[contains(text(),'Edit')])[1] |
| 712 | Click Link xpath=(//h3[contains(text(),'News')]/following::span[1]/following::a[contains(text(),'Edit')])[1] |
| 713 | Input Text xpath=//input[@name='title'] ONAP_VID |
| 714 | Input Text xpath=//input[@name='url'] http://about.att.com/news/international.html |
| 715 | Input Text xpath=//input[@id='widget-input-add-order'] 5 |
| 716 | Click Link xpath=//a[contains(.,'Add New')] |
| 717 | Click Element xpath=//div[@id='close-button'] |
| 718 | Element Should Contain xpath=//*[@table-data='ignoredTableData'] ONAP_VID |
| 719 | Click Element xpath=.//div[contains(text(),'ONAP_VID')]/following::*[contains(text(),'5')][1]/following::div[@ng-click='remove($index);'][1] |
| 720 | Click Element xpath=//div[@id='confirmation-button-next'] |
| 721 | Element Should Not Contain xpath=//*[@table-data='ignoredTableData'] ONAP_VID |
| 722 | Click Link xpath=//a[@id='close-button'] |
| 723 | |
| 724 | |
| 725 | |
| 726 | |
| 727 | Portal Admin Broadcast Notifications |
| 728 | [Documentation] Portal Test Admin Broadcast Notifications |
| 729 | ${CurrentDay}= Get Current Date result_format=%m/%d/%Y |
| 730 | ${NextDay}= Get Current Date increment=24:00:00 result_format=%m/%d/%Y |
| 731 | ${CurrentDate}= Get Current Date result_format=%m%d%y%H%M |
| 732 | ${AdminBroadCastMsg}= catenate ONAP VID Broadcast Automation${CurrentDate} |
| 733 | Click Image xpath=//img[@alt='Onap Logo'] |
| 734 | Set Selenium Implicit Wait 3000 |
| 735 | Click Link xpath=//*[@id="parent-item-User-Notifications"] |
| 736 | Wait until Element is visible xpath=//*[@id="button-openAddNewApp"] timeout=10 |
| 737 | Click button xpath=//*[@id="button-openAddNewApp"] |
| 738 | Input Text xpath=//input[@id='datepicker-start'] ${CurrentDay} |
| 739 | Input Text xpath=//input[@id='datepicker-end'] ${NextDay} |
| 740 | Input Text xpath=//*[@id="add-notification-input-title"] ONAP VID Broadcast Automation |
| 741 | Input Text xpath=//*[@id="user-notif-input-message"] ${AdminBroadCastMsg} |
| 742 | click element xpath=//*[@id="button-notification-save"] |
| 743 | Wait until Element is visible xpath=//*[@id="button-openAddNewApp"] timeout=10 |
| 744 | click element xpath=//*[@id="megamenu-notification-button"] |
| 745 | click element xpath=//*[@id="notification-history-link"] |
| 746 | Wait until Element is visible xpath=//*[@id="notification-history-table"] timeout=10 |
| 747 | Table Column Should Contain xpath=//*[@id="notification-history-table"] 2 ${AdminBroadCastMsg} |
| 748 | log ${AdminBroadCastMsg} |
| 749 | [Return] ${AdminBroadCastMsg} |
| 750 | |
| 751 | Portal Admin Category Notifications |
| 752 | [Documentation] Portal Admin Broadcast Notifications |
| 753 | ${CurrentDay}= Get Current Date result_format=%m/%d/%Y |
| 754 | ${NextDay}= Get Current Date increment=24:00:00 result_format=%m/%d/%Y |
| 755 | ${CurrentDate}= Get Current Date result_format=%m%d%y%H%M |
| 756 | ${AdminCategoryMsg}= catenate ONAP VID Category Automation${CurrentDate} |
| 757 | Click Link xpath=//a[@id='parent-item-Home'] |
| 758 | Click Link xpath=//*[@id="parent-item-User-Notifications"] |
| 759 | Wait until Element is visible xpath=//*[@id="button-openAddNewApp"] timeout=10 |
| 760 | Click button xpath=//*[@id="button-openAddNewApp"] |
| 761 | #Select Radio Button NO radio-button-no |
| 762 | Click Element //*[contains(text(),'Broadcast to All Categories')]/following::*[contains(text(),'No')][1] |
| 763 | #Select Radio Button //label[@class='radio'] radio-button-approles |
| 764 | Click Element xpath=//*[contains(text(),'Categories')]/following::*[contains(text(),'Application Roles')][1] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 765 | Click Element xpath=//*[contains(text(),'xDemo App')]/preceding::input[@ng-model='member.isSelected'][1] |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 766 | Input Text xpath=//input[@id='datepicker-start'] ${CurrentDay} |
| 767 | Input Text xpath=//input[@id='datepicker-end'] ${NextDay} |
| 768 | Input Text xpath=//*[@id="add-notification-input-title"] ONAP VID Category Automation |
| 769 | Input Text xpath=//*[@id='user-notif-input-message'] ${AdminCategoryMsg} |
| 770 | click element xpath=//*[@id="button-notification-save"] |
| 771 | Wait until Element is visible xpath=//*[@id="button-openAddNewApp"] timeout=10 |
| 772 | click element xpath=//*[@id="megamenu-notification-button"] |
| 773 | click element xpath=//*[@id="notification-history-link"] |
| 774 | Wait until Element is visible xpath=//*[@id="notification-history-table"] timeout=10 |
| 775 | Table Column Should Contain xpath=//*[@id="notification-history-table"] 2 ${AdminCategoryMsg} |
| 776 | log ${AdminCategoryMsg} |
| 777 | [Return] ${AdminCategoryMsg} |
| 778 | |
| 779 | |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 780 | Portal admin Logout from Portal GUI |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 781 | [Documentation] Logout from Portal GUI |
| 782 | Click Element xpath=//div[@id='header-user-icon'] |
| 783 | Click Button xpath=//button[contains(.,'Log out')] |
| 784 | Title Should Be Login |
| 785 | |
| 786 | |
| 787 | |
| 788 | Application admin Login To Portal GUI |
| 789 | [Documentation] Logs into Portal GUI |
| 790 | # Setup Browser Now being managed by test case |
| 791 | ##Setup Browser |
kishore | 72d3adf | 2017-10-19 11:05:22 -0500 | [diff] [blame] | 792 | # Go To ${PORTAL_LOGIN_URL} |
| 793 | # Maximize Browser Window |
| 794 | # Set Selenium Speed ${GLOBAL_SELENIUM_DELAY} |
| 795 | # Set Browser Implicit Wait ${GLOBAL_SELENIUM_BROWSER_IMPLICIT_WAIT} |
| 796 | # Log Logging in to ${PORTAL_URL}${PORTAL_ENV} |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 797 | # Handle Proxy Warning |
| 798 | Title Should Be Login |
| 799 | Input Text xpath=//input[@ng-model='loginId'] ${App_LoginID} |
| 800 | Input Password xpath=//input[@ng-model='password'] ${App_Loginpwd} |
| 801 | Click Link xpath=//a[@id='loginBtn'] |
| 802 | Wait Until Page Contains Element xpath=//img[@alt='Onap Logo'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT} |
| 803 | Log Logged in to ${PORTAL_URL}${PORTAL_ENV} |
| 804 | |
| 805 | Application Admin Navigation Application Link Tab |
| 806 | [Documentation] Logs into Portal GUI as application admin |
| 807 | Click Link xpath=//a[@id='parent-item-Home'] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 808 | Click Element xpath=.//h3[contains(text(),'xDemo App')]/following::div[1] |
| 809 | Page Should Contain ONAP Portal |
kishore | 5ea942b | 2017-10-14 22:19:45 -0500 | [diff] [blame] | 810 | Scroll Element Into View xpath=//i[@class='ion-close-round'] |
| 811 | Click Element xpath=//i[@class='ion-close-round'] |
| 812 | Set Selenium Implicit Wait 3000 |
| 813 | #Click Element xpath=(.//span[@id='tab-Home'])[1] |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 814 | |
| 815 | |
| 816 | Application Admin Navigation Functional Menu |
| 817 | [Documentation] Logs into Portal GUI as application admin |
| 818 | Click Link xpath=//a[contains(.,'Manage')] |
| 819 | Mouse Over xpath=//*[contains(text(),'Technology Insertion')] |
| 820 | Click Link xpath= //*[contains(text(),'Infrastructure VNF Provisioning')] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 821 | Page Should Contain ONAP Portal |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 822 | Click Element xpath=//i[@class='ion-close-round'] |
| 823 | Click Element xpath=(.//span[@id='tab-Home'])[1] |
| 824 | |
| 825 | |
| 826 | Application admin Add Standard User Existing user |
| 827 | [Documentation] Naviage to Users tab |
| 828 | Click Link xpath=//a[@title='Users'] |
| 829 | Page Should Contain Users |
| 830 | Click Button xpath=//button[@ng-click='toggleSidebar()'] |
| 831 | Click Button xpath=//button[@ng-click='users.openAddNewUserModal()'] |
| 832 | Input Text xpath=//input[@id='input-user-search'] ${Existing_User} |
| 833 | Click Button xpath=//button[@id='button-search-users'] |
| 834 | Click Element xpath=//span[@id='result-uuid-0'] |
| 835 | Click Button xpath=//button[@id='next-button'] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 836 | Click Element xpath=//*[@id='div-app-name-dropdown-xDemo-App'] |
| 837 | Click Element xpath=//*[@id='div-app-name-xDemo-App']/following::input[@id='Standard-User-checkbox'] |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 838 | Set Selenium Implicit Wait 3000 |
| 839 | Click Button xpath=//button[@id='new-user-save-button'] |
| 840 | Set Selenium Implicit Wait 3000 |
| 841 | #Set Browser Implicit Wait ${GLOBAL_SELENIUM_BROWSER_IMPLICIT_WAIT} |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 842 | #Select From List xpath=//input[@value='Select application'] xDemo App |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 843 | #Click Link xpath=//a[@title='Users'] |
| 844 | #Page Should Contain Users |
| 845 | Go To ${PORTAL_HOME_PAGE} |
| 846 | Set Selenium Implicit Wait 3000 |
| 847 | Click Link xpath=//a[@title='Users'] |
| 848 | Click Element xpath=//input[@id='dropdown1'] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 849 | Click Element xpath=//li[contains(.,'xDemo App')] |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 850 | Input Text xpath=//input[@id='input-table-search'] ${Existing_User} |
| 851 | Element Text Should Be xpath=(.//*[@id='rowheader_t1_0'])[2] Standard User |
| 852 | |
| 853 | |
| 854 | Application admin Edit Standard User Existing user |
| 855 | [Documentation] Naviage to Users tab |
| 856 | Click Element xpath=(.//*[@id='rowheader_t1_0'])[2] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 857 | Click Element xpath=//*[@id='div-app-name-dropdown-xDemo-App'] |
| 858 | Click Element xpath=//*[@id='div-app-name-xDemo-App']/following::input[@id='Standard-User-checkbox'] |
| 859 | Click Element xpath=//*[@id='div-app-name-xDemo-App']/following::input[@id='System-Administrator-checkbox'] |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 860 | Set Selenium Implicit Wait 3000 |
| 861 | Click Button xpath=//button[@id='new-user-save-button'] |
| 862 | Set Selenium Implicit Wait 3000 |
| 863 | Page Should Contain Users |
| 864 | #Click Button xpath=//input[@id='dropdown1'] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 865 | #Click Element xpath=//li[contains(.,'xDemo App')] |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 866 | Input Text xpath=//input[@id='input-table-search'] ${Existing_User} |
| 867 | Element Text Should Be xpath=(.//*[@id='rowheader_t1_0'])[2] System Administrator |
| 868 | |
| 869 | |
| 870 | Application admin Delete Standard User Existing user |
| 871 | [Documentation] Naviage to Users tab |
| 872 | Click Element xpath=(.//*[@id='rowheader_t1_0'])[2] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 873 | Scroll Element Into View xpath=//*[@id='div-app-name-xDemo-App']/following::*[@id='app-item-delete'][1] |
| 874 | Click Element xpath=//*[@id='div-app-name-xDemo-App']/following::*[@id='app-item-delete'][1] |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 875 | Click Element xpath=//button[@id='div-confirm-ok-button'] |
| 876 | Click Button xpath=//button[@id='new-user-save-button'] |
| 877 | #Input Text xpath=//input[@id='input-table-search'] ${Existing_User} |
| 878 | #Is Element Visible xpath=(//*[contains(.,'Portal')] )[2] |
| 879 | Element Should Not Contain xpath=//*[@table-data='users.accountUsers'] Portal |
kishore | 72d3adf | 2017-10-19 11:05:22 -0500 | [diff] [blame] | 880 | #Click Image xpath=//img[@alt='Onap Logo'] |
| 881 | #Set Selenium Implicit Wait 3000 |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 882 | |
| 883 | |
| 884 | |
| 885 | Application admin Logout from Portal GUI |
| 886 | [Documentation] Logout from Portal GUI |
| 887 | Click Element xpath=//div[@id='header-user-icon'] |
kishore | 72d3adf | 2017-10-19 11:05:22 -0500 | [diff] [blame] | 888 | #Set Selenium Implicit Wait 3000 |
kishore | 82eb79a | 2017-10-31 08:04:25 -0500 | [diff] [blame] | 889 | Click Button xpath=//button[contains(text(),'Log out')] |
kishore | 72d3adf | 2017-10-19 11:05:22 -0500 | [diff] [blame] | 890 | #Set Selenium Implicit Wait 3000 |
kishore | 4089a33 | 2017-10-18 17:02:53 -0500 | [diff] [blame] | 891 | Title Should Be Login |
| 892 | |
| 893 | |
| 894 | |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 895 | |
| 896 | |
| 897 | Standared user Login To Portal GUI |
| 898 | [Documentation] Logs into Portal GUI |
| 899 | # Setup Browser Now being managed by test case |
| 900 | ##Setup Browser |
kishore | 72d3adf | 2017-10-19 11:05:22 -0500 | [diff] [blame] | 901 | # Go To ${PORTAL_LOGIN_URL} |
| 902 | # Maximize Browser Window |
| 903 | # Set Selenium Speed ${GLOBAL_SELENIUM_DELAY} |
| 904 | # Set Browser Implicit Wait ${GLOBAL_SELENIUM_BROWSER_IMPLICIT_WAIT} |
| 905 | # Log Logging in to ${PORTAL_URL}${PORTAL_ENV} |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 906 | # Handle Proxy Warning |
| 907 | Title Should Be Login |
| 908 | Input Text xpath=//input[@ng-model='loginId'] ${Sta_LoginID} |
| 909 | Input Password xpath=//input[@ng-model='password'] ${Sta_Loginpwd} |
| 910 | Click Link xpath=//a[@id='loginBtn'] |
| 911 | Wait Until Page Contains Element xpath=//img[@alt='Onap Logo'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT} |
| 912 | Log Logged in to ${PORTAL_URL}${PORTAL_ENV} |
| 913 | |
| 914 | |
| 915 | Standared user Navigation Application Link Tab |
| 916 | [Documentation] Logs into Portal GUI as application admin |
| 917 | #Portal admin Go To Portal HOME |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 918 | Click Element xpath=.//h3[contains(text(),'xDemo App')]/following::div[1] |
| 919 | Page Should Contain ONAP Portal |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 920 | Click Element xpath=(.//span[@id='tab-Home'])[1] |
| 921 | |
| 922 | |
| 923 | Standared user Navigation Functional Menu |
| 924 | [Documentation] Logs into Portal GUI as application admin |
| 925 | Click Link xpath=//a[contains(.,'Manage')] |
| 926 | Mouse Over xpath=//*[contains(text(),'Technology Insertion')] |
| 927 | Click Link xpath= //*[contains(text(),'Infrastructure VNF Provisioning')] |
| 928 | Page Should Contain Welcome to VID |
| 929 | Click Element xpath=(.//span[@id='tab-Home'])[1] |
| 930 | |
| 931 | |
| 932 | |
| 933 | Standared user Broadcast Notifications |
| 934 | [Documentation] Logs into Portal GUI as application admin |
| 935 | [Arguments] ${AdminBroadCastMsg} |
| 936 | Click element xpath=//*[@id='megamenu-notification-button'] |
| 937 | Click element xpath=//*[@id='notification-history-link'] |
| 938 | Wait until Element is visible xpath=//*[@id='app-title'] timeout=10 |
| 939 | Table Column Should Contain xpath=//*[@id='notification-history-table'] 2 ${AdminBroadCastMsg} |
| 940 | log ${AdminBroadCastMsg} |
| 941 | |
| 942 | |
| 943 | Standared user Category Notifications |
| 944 | [Documentation] Logs into Portal GUI as application admin |
| 945 | [Arguments] ${AdminCategoryMsg} |
| 946 | #click element xpath=//*[@id='megamenu-notification-button'] |
| 947 | #click element xpath=//*[@id="notification-history-link"] |
| 948 | Wait until Element is visible xpath=//*[@id='app-title'] timeout=10 |
| 949 | Table Column Should Contain xpath=//*[@id='notification-history-table'] 2 ${AdminCategoryMsg} |
| 950 | log ${AdminCategoryMsg} |
| 951 | |
| 952 | |
| 953 | Standared user Logout from Portal GUI |
| 954 | [Documentation] Logout from Portal GUI |
| 955 | Click Element xpath=//div[@id='header-user-icon'] |
| 956 | Click Button xpath=//button[contains(.,'Log out')] |
| 957 | #Confirm Action |
| 958 | Title Should Be Login |
| 959 | |
| 960 | |
| 961 | |
| 962 | |
| 963 | Tear Down |
| 964 | [Documentation] Close all browsers |
| 965 | Close All Browsers |
| 966 | |
| 967 | |
| 968 | Enhanced Notification on ONAP Portal |
| 969 | [Documentation] Runs portal Post request |
| 970 | [Arguments] ${data_path} ${data} |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 971 | # Log Creating session ${GLOBAL_PORTAL_SERVER_URL} |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 972 | ${session}= Create Session portal ${PORTAL_URL} |
| 973 | ${headers}= Create Dictionary Accept=application/json Content-Type=application/json Authorization=Basic amlyYTpfcGFzcw== username=jira password=_pass |
| 974 | ${resp}= Post Request portal ${data_path} data=${data} headers=${headers} |
| 975 | # Log Received response from portal ${resp.text} |
| 976 | [Return] ${resp} |
| 977 | |
| 978 | |
| 979 | |
| 980 | Notification on ONAP Portal |
| 981 | [Documentation] Create Config portal |
| 982 | ${configportal}= Create Dictionary jira_id=${jira} |
| 983 | ${output} = Fill JSON Template File ${portal_Template} ${configportal} |
| 984 | ${post_resp} = Enhanced Notification on ONAP Portal ${RESOURCE_PATH} ${output} |
| 985 | Should Be Equal As Strings ${post_resp.status_code} 200 |
| 986 | |
| 987 | |
| 988 | |
| 989 | |
| 990 | Portal Application Account Management |
| 991 | [Documentation] Naviage to Application Account Management tab |
| 992 | Click Link xpath=//a[@title='App Account Management'] |
| 993 | Click Button xpath=//button[@id='account-onboarding-button-add'] |
| 994 | Input Text xpath=//input[@name='name'] JIRA |
| 995 | Input Text xpath=//input[@name='username'] jira |
| 996 | Input Text xpath=//input[@name='password'] _pass |
| 997 | Input Text xpath=//input[@name='repassword'] _pass |
| 998 | Click Element xpath=//div[@ng-click='accountAddDetails.saveChanges()'] |
| 999 | Element Text Should Be xpath=//*[@table-data='serviceList'] JIRA |
| 1000 | |
| 1001 | Portal Application Account Management validation |
| 1002 | [Documentation] Naviage to user notification tab |
| 1003 | Click Link xpath=//a[@id='parent-item-User-Notifications'] |
| 1004 | click element xpath=//*[@id="megamenu-notification-button"] |
| 1005 | Click element xpath=//*[@id="notification-history-link"] |
| 1006 | Wait until Element is visible xpath=//*[@id="notification-history-table"] timeout=10 |
| 1007 | Table Column Should Contain xpath=//*[@id="notification-history-table"] 1 JIRA |
| 1008 | |
| 1009 | |
| 1010 | Portal AAF new fields |
| 1011 | [Documentation] Naviage to user Application details tab |
| 1012 | Click Link xpath=//a[@title='Application Onboarding'] |
kishore | 92d70d6 | 2017-10-11 14:51:31 -0500 | [diff] [blame] | 1013 | Click Element xpath=//td[contains(.,'xDemo App')] |
kishore | 6eebdba | 2017-10-03 11:12:57 -0500 | [diff] [blame] | 1014 | Page Should Contain Name Space |
| 1015 | Page Should Contain Centralized |
| 1016 | Click Element xpath=//button[@id='button-notification-cancel'] |
| 1017 | |
| 1018 | |
kishore | bbca0cf | 2017-10-09 16:59:38 -0500 | [diff] [blame] | 1019 | |