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