DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation The main interface for interacting with SDN-GC. It handles low level stuff like managing the http request library and SDN-GC required fields |
| 3 | Library RequestsLibrary |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 4 | Library UUID |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 5 | Library OperatingSystem |
| 6 | Library ExtendedSelenium2Library |
| 7 | Library Collections |
| 8 | Library String |
| 9 | Library StringTemplater |
| 10 | Resource global_properties.robot |
| 11 | Resource ../resources/json_templater.robot |
| 12 | Resource browser_setup.robot |
| 13 | |
| 14 | Variables ../assets/service_mappings.py |
| 15 | |
| 16 | *** Variables *** |
| 17 | ${PRELOAD_VNF_TOPOLOGY_OPERATION_PATH} /operations/VNF-API:preload-vnf-topology-operation |
| 18 | ${PRELOAD_VNF_CONFIG_PATH} /config/VNF-API:preload-vnfs/vnf-preload-list |
| 19 | ${PRELOAD_VNF_TOPOLOGY_OPERATION_BODY} robot/assets/templates/sdnc/ |
| 20 | ${SDNGC_INDEX_PATH} /restconf |
| 21 | ${SDNCGC_HEALTHCHECK_OPERATION_PATH} /operations/SLI-API:healthcheck |
DR695H | bf5a3a3 | 2017-06-30 13:09:57 -0400 | [diff] [blame] | 22 | ${SDNGC_REST_ENDPOINT} ${GLOBAL_SDNGC_SERVER_PROTOCOL}://${GLOBAL_INJECTED_SDNC_IP_ADDR}:${GLOBAL_SDNGC_REST_PORT} |
Gary Wu | 251aa68 | 2018-07-30 15:22:20 -0700 | [diff] [blame] | 23 | ${SDNGC_ADMIN_ENDPOINT} ${GLOBAL_SDNGC_SERVER_PROTOCOL}://${GLOBAL_INJECTED_SDNC_PORTAL_IP_ADDR}:${GLOBAL_SDNGC_ADMIN_PORT} |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 24 | ${SDNGC_ADMIN_SIGNUP_URL} ${SDNGC_ADMIN_ENDPOINT}/signup |
| 25 | ${SDNGC_ADMIN_LOGIN_URL} ${SDNGC_ADMIN_ENDPOINT}/login |
| 26 | ${SDNGC_ADMIN_VNF_PROFILE_URL} ${SDNGC_ADMIN_ENDPOINT}/mobility/getVnfProfile |
| 27 | |
| 28 | *** Keywords *** |
| 29 | Run SDNGC Health Check |
| 30 | [Documentation] Runs an SDNGC healthcheck |
| 31 | ${resp}= Run SDNGC Post Request ${SDNGC_INDEX PATH}${SDNCGC_HEALTHCHECK_OPERATION_PATH} ${None} |
| 32 | Should Be Equal As Strings ${resp.status_code} 200 |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 33 | Should Be Equal As Strings ${resp.json()['output']['response-code']} 200 |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 34 | |
| 35 | Run SDNGC Get Request |
| 36 | [Documentation] Runs an SDNGC get request |
| 37 | [Arguments] ${data_path} |
| 38 | ${auth}= Create List ${GLOBAL_SDNGC_USERNAME} ${GLOBAL_SDNGC_PASSWORD} |
| 39 | Log Creating session ${SDNGC_REST_ENDPOINT} |
| 40 | ${session}= Create Session sdngc ${SDNGC_REST_ENDPOINT} auth=${auth} |
| 41 | ${uuid}= Generate UUID |
| 42 | ${headers}= Create Dictionary Accept=application/json Content-Type=application/json X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid} X-FromAppId=${GLOBAL_APPLICATION_ID} |
| 43 | ${resp}= Get Request sdngc ${data_path} headers=${headers} |
| 44 | Log Received response from sdngc ${resp.text} |
| 45 | [Return] ${resp} |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 46 | |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 47 | Run SDNGC Put Request |
| 48 | [Documentation] Runs an SDNGC put request |
| 49 | [Arguments] ${data_path} ${data} |
| 50 | ${auth}= Create List ${GLOBAL_SDNGC_USERNAME} ${GLOBAL_SDNGC_PASSWORD} |
| 51 | Log Creating session ${SDNGC_REST_ENDPOINT} |
| 52 | ${session}= Create Session sdngc ${SDNGC_REST_ENDPOINT} auth=${auth} |
| 53 | ${uuid}= Generate UUID |
| 54 | ${headers}= Create Dictionary Accept=application/json Content-Type=application/json X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid} X-FromAppId=${GLOBAL_APPLICATION_ID} |
| 55 | ${resp}= Put Request sdngc ${data_path} data=${data} headers=${headers} |
| 56 | Log Received response from sdngc ${resp.text} |
| 57 | [Return] ${resp} |
| 58 | |
| 59 | Run SDNGC Post Request |
| 60 | [Documentation] Runs an SDNGC post request |
| 61 | [Arguments] ${data_path} ${data} |
| 62 | ${auth}= Create List ${GLOBAL_SDNGC_USERNAME} ${GLOBAL_SDNGC_PASSWORD} |
| 63 | Log Creating session ${SDNGC_REST_ENDPOINT} |
| 64 | ${session}= Create Session sdngc ${SDNGC_REST_ENDPOINT} auth=${auth} |
| 65 | ${uuid}= Generate UUID |
| 66 | ${headers}= Create Dictionary Accept=application/json Content-Type=application/json X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid} X-FromAppId=${GLOBAL_APPLICATION_ID} |
| 67 | ${resp}= Post Request sdngc ${data_path} data=${data} headers=${headers} |
| 68 | Log Received response from sdngc ${resp.text} |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 69 | [Return] ${resp} |
| 70 | |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 71 | Run SDNGC Delete Request |
| 72 | [Documentation] Runs an SDNGC delete request |
| 73 | [Arguments] ${data_path} |
| 74 | ${auth}= Create List ${GLOBAL_SDNGC_USERNAME} ${GLOBAL_SDNGC_PASSWORD} |
| 75 | Log Creating session ${SDNGC_REST_ENDPOINT} |
| 76 | ${session}= Create Session sdngc ${SDNGC_REST_ENDPOINT} auth=${auth} |
| 77 | ${uuid}= Generate UUID |
| 78 | ${headers}= Create Dictionary Accept=application/json Content-Type=application/json X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid} X-FromAppId=${GLOBAL_APPLICATION_ID} |
| 79 | ${resp}= Delete Request sdngc ${data_path} headers=${headers} |
| 80 | Log Received response from sdngc ${resp.text} |
| 81 | [Return] ${resp} |
| 82 | |
| 83 | |
| 84 | Preload Vnf |
| 85 | [Arguments] ${service_type_uuid} ${generic_vnf_name} ${generic_vnf_type} ${vf_module_name} ${vf_modules} ${service} ${uuid} |
Jerry Flood | 3a169a3 | 2017-12-01 12:39:10 -0500 | [diff] [blame] | 86 | ${base_vf_module_type}= Catenate |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 87 | ${closedloop_vf_module}= Create Dictionary |
| 88 | ${templates}= Get From Dictionary ${GLOBAL_SERVICE_TEMPLATE_MAPPING} ${service} |
| 89 | :for ${vf_module} in @{vf_modules} |
| 90 | \ ${vf_module_type}= Get From Dictionary ${vf_module} name |
Brian Freeman | 12ff184 | 2019-02-13 13:54:48 -0500 | [diff] [blame] | 91 | # need to pass in vnf_index if non-zero |
| 92 | \ ${dict} Run Keyword If "${generic_vnf_name}".endswith('0') Get From Mapping With Index ${templates} ${vf_module} 0 |
| 93 | \ ... ELSE IF "${generic_vnf_name}".endswith('1') Get From Mapping With Index ${templates} ${vf_module} 1 |
| 94 | \ ... ELSE IF "${generic_vnf_name}".endswith('2') Get From Mapping With Index ${templates} ${vf_module} 2 |
| 95 | \ ... ELSE Get From Mapping ${templates} ${vf_module} |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 96 | \ ${filename}= Get From Dictionary ${dict} template |
| 97 | \ ${base_vf_module_type}= Set Variable If '${dict['isBase']}' == 'true' ${vf_module_type} ${base_vf_module_type} |
| 98 | \ ${closedloop_vf_module}= Set Variable If '${dict['isBase']}' == 'false' ${vf_module} ${closedloop_vf_module} |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 99 | \ ${vf_name}= Update Module Name ${dict} ${vf_module_name} |
| 100 | \ Preload Vnf Profile ${vf_module_type} |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 101 | \ Preload One Vnf Topology ${service_type_uuid} ${generic_vnf_name} ${generic_vnf_type} ${vf_name} ${vf_module_type} ${service} ${filename} ${uuid} |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 102 | [Return] ${base_vf_module_type} ${closedloop_vf_module} |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 103 | |
| 104 | |
| 105 | Update Module Name |
| 106 | [Arguments] ${dict} ${vf_module_name} |
| 107 | Return From Keyword If 'prefix' not in ${dict} ${vf_module_name} |
| 108 | Return From Keyword If '${dict['prefix']}' == '' ${vf_module_name} |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 109 | ${name}= Replace String ${vf_module_name} Vfmodule_ ${dict['prefix']} |
| 110 | [Return] ${name} |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 111 | |
Brian Freeman | 12ff184 | 2019-02-13 13:54:48 -0500 | [diff] [blame] | 112 | Get From Mapping With Index |
| 113 | [Documentation] Retrieve the appropriate prelad template entry for the passed vf_module |
| 114 | [Arguments] ${templates} ${vf_module} ${vnf_index}=0 |
| 115 | ${vf_module_name}= Get From DIctionary ${vf_module} name |
| 116 | :for ${template} in @{templates} |
| 117 | \ Return From Keyword If '${template['name_pattern']}' in '${vf_module_name}' and ('${template['vnf_index']}' == '${vnf_index}') ${template} |
| 118 | [Return] None |
| 119 | |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 120 | Get From Mapping |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 121 | [Documentation] Retrieve the appropriate prelad template entry for the passed vf_module |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 122 | [Arguments] ${templates} ${vf_module} |
| 123 | ${vf_module_name}= Get From DIctionary ${vf_module} name |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 124 | :for ${template} in @{templates} |
| 125 | \ Return From Keyword If '${template['name_pattern']}' in '${vf_module_name}' ${template} |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 126 | [Return] None |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 127 | |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 128 | Preload One Vnf Topology |
| 129 | [Arguments] ${service_type_uuid} ${generic_vnf_name} ${generic_vnf_type} ${vf_module_name} ${vf_module_type} ${service} ${filename} ${uuid} |
| 130 | Return From Keyword If '${filename}' == '' |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 131 | ${data_template}= OperatingSystem.Get File ${PRELOAD_VNF_TOPOLOGY_OPERATION_BODY}/preload.template |
Bin Yang | 326219a | 2018-05-31 05:35:33 +0000 | [diff] [blame] | 132 | ${parameters}= Get Template Parameters ${generic_vnf_name} ${filename} ${uuid} |
Jerry Flood | 81d33fb | 2017-11-21 16:21:21 -0500 | [diff] [blame] | 133 | Set To Dictionary ${parameters} generic_vnf_name=${generic_vnf_name} generic_vnf_type=${generic_vnf_type} service_type=${service_type_uuid} vf_module_name=${vf_module_name} vf_module_type=${vf_module_type} |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 134 | ${data}= Fill JSON Template ${data_template} ${parameters} |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 135 | ${put_resp}= Run SDNGC Post Request ${SDNGC_INDEX_PATH}${PRELOAD_VNF_TOPOLOGY_OPERATION_PATH} ${data} |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 136 | Should Be Equal As Strings ${put_resp.json()['output']['response-code']} 200 |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 137 | ${get_resp}= Run SDNGC Get Request ${SDNGC_INDEX_PATH}${PRELOAD_VNF_CONFIG_PATH}/${vf_module_name}/${vf_module_type} |
| 138 | Should Be Equal As Strings ${get_resp.status_code} 200 |
| 139 | |
| 140 | Get Template Parameters |
Bin Yang | 326219a | 2018-05-31 05:35:33 +0000 | [diff] [blame] | 141 | [Arguments] ${generic_vnf_name} ${template} ${uuid} |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 142 | ${rest} ${suite}= Split String From Right ${SUITE NAME} . 1 |
| 143 | ${uuid}= Catenate ${uuid} |
| 144 | ${hostid}= Get Substring ${uuid} -4 |
Jerry Flood | 81d33fb | 2017-11-21 16:21:21 -0500 | [diff] [blame] | 145 | ${ecompnet}= Evaluate (${GLOBAL_BUILD_NUMBER}%128)+128 |
| 146 | |
| 147 | |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 148 | # Initialize the value map with the properties generated from the Robot VM /opt/config folder |
Jerry Flood | 81d33fb | 2017-11-21 16:21:21 -0500 | [diff] [blame] | 149 | ${valuemap}= Copy Dictionary ${GLOBAL_INJECTED_PROPERTIES} |
| 150 | |
| 151 | # These should be deprecated by the above.... |
Jerry Flood | 028e185 | 2017-03-16 16:44:17 -0400 | [diff] [blame] | 152 | Set To Dictionary ${valuemap} artifacts_version=${GLOBAL_INJECTED_ARTIFACTS_VERSION} |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 153 | Set To Dictionary ${valuemap} network=${GLOBAL_INJECTED_NETWORK} |
Jerry Flood | d750315 | 2017-10-09 16:33:00 -0400 | [diff] [blame] | 154 | Set To Dictionary ${valuemap} public_net_id=${GLOBAL_INJECTED_PUBLIC_NET_ID} |
| 155 | Set To Dictionary ${valuemap} cloud_env=${GLOBAL_INJECTED_CLOUD_ENV} |
Jerry Flood | 81d33fb | 2017-11-21 16:21:21 -0500 | [diff] [blame] | 156 | Set To Dictionary ${valuemap} install_script_version=${GLOBAL_INJECTED_SCRIPT_VERSION} |
Jerry Flood | d750315 | 2017-10-09 16:33:00 -0400 | [diff] [blame] | 157 | Set To Dictionary ${valuemap} vm_image_name=${GLOBAL_INJECTED_VM_IMAGE_NAME} |
Jerry Flood | 81d33fb | 2017-11-21 16:21:21 -0500 | [diff] [blame] | 158 | Set To Dictionary ${valuemap} vm_flavor_name=${GLOBAL_INJECTED_VM_FLAVOR} |
| 159 | |
| 160 | |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 161 | # update the value map with unique values. |
Bin Yang | 326219a | 2018-05-31 05:35:33 +0000 | [diff] [blame] | 162 | Set To Dictionary ${valuemap} uuid=${uuid} hostid=${hostid} ecompnet=${ecompnet} generic_vnf_name=${generic_vnf_name} |
Jerry Flood | 81d33fb | 2017-11-21 16:21:21 -0500 | [diff] [blame] | 163 | |
| 164 | # |
| 165 | # Mash together the defaults dict with the test case dict to create the set of |
| 166 | # preload parameters |
| 167 | # |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 168 | ${suite_templates}= Get From Dictionary ${GLOBAL_PRELOAD_PARAMETERS} ${suite} |
| 169 | ${template}= Get From Dictionary ${suite_templates} ${template} |
Jerry Flood | 81d33fb | 2017-11-21 16:21:21 -0500 | [diff] [blame] | 170 | ${defaults}= Get From Dictionary ${GLOBAL_PRELOAD_PARAMETERS} defaults |
| 171 | # add all of the defaults to template... |
| 172 | @{keys}= Get Dictionary Keys ${defaults} |
| 173 | :for ${key} in @{keys} |
| 174 | \ ${value}= Get From Dictionary ${defaults} ${key} |
| 175 | \ Set To Dictionary ${template} ${key} ${value} |
| 176 | |
| 177 | # |
| 178 | # Get the vnf_parameters to preload |
| 179 | # |
| 180 | ${vnf_parameters}= Resolve VNF Parameters Into Array ${valuemap} ${template} |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 181 | ${vnf_parameters_json}= Evaluate json.dumps(${vnf_parameters}) json |
Jerry Flood | 81d33fb | 2017-11-21 16:21:21 -0500 | [diff] [blame] | 182 | ${parameters}= Create Dictionary vnf_parameters=${vnf_parameters_json} |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 183 | [Return] ${parameters} |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 184 | |
| 185 | Resolve Values Into Dictionary |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 186 | [Arguments] ${valuemap} ${from} ${to} |
| 187 | ${keys}= Get Dictionary Keys ${from} |
| 188 | :for ${key} in @{keys} |
| 189 | \ ${value}= Get From Dictionary ${from} ${key} |
| 190 | \ ${value}= Template String ${value} ${valuemap} |
| 191 | \ Set To Dictionary ${to} ${key} ${value} |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 192 | |
| 193 | Resolve VNF Parameters Into Array |
Jerry Flood | 81d33fb | 2017-11-21 16:21:21 -0500 | [diff] [blame] | 194 | [Arguments] ${valuemap} ${from} |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 195 | ${vnf_parameters}= Create List |
| 196 | ${keys}= Get Dictionary Keys ${from} |
| 197 | :for ${key} in @{keys} |
| 198 | \ ${value}= Get From Dictionary ${from} ${key} |
| 199 | \ ${value}= Template String ${value} ${valuemap} |
| 200 | \ ${parameter}= Create Dictionary vnf-parameter-name=${key} vnf-parameter-value=${value} |
| 201 | \ Append To List ${vnf_parameters} ${parameter} |
| 202 | [Return] ${vnf_parameters} |
| 203 | |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 204 | Preload Vnf Profile |
| 205 | [Arguments] ${vnf_name} |
| 206 | Login To SDNGC Admin GUI |
| 207 | Go To ${SDNGC_ADMIN_VNF_PROFILE_URL} |
| 208 | Click Button xpath=//button[@data-target='#add_vnf_profile'] |
| 209 | Input Text xpath=//input[@id='nf_vnf_type'] ${vnf_name} |
| 210 | Input Text xpath=//input[@id='nf_availability_zone_count'] 999 |
| 211 | Input Text xpath=//input[@id='nf_equipment_role'] robot-ete-test |
| 212 | Click Button xpath=//button[contains(.,'Submit')] |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 213 | Page Should Contain VNF Profile |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 214 | Input Text xpath=//div[@id='vnf_profile_filter']//input ${vnf_name} |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 215 | Page Should Contain ${vnf_name} |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 216 | |
| 217 | Delete Vnf Profile |
| 218 | [Arguments] ${vnf_name} |
| 219 | Login To SDNGC Admin GUI |
| 220 | Go To ${SDNGC_ADMIN_VNF_PROFILE_URL} |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 221 | Page Should Contain VNF Profile |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 222 | Input Text xpath=//div[@id='vnf_profile_filter']//input ${vnf_name} |
| 223 | Page Should Contain ${vnf_name} |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 224 | Click Button xpath=//button[contains(@onclick, '${vnf_name}')] |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 225 | Page Should Contain Are you sure you want to delete VNF_PROFILE |
| 226 | Click Button xpath=//button[contains(text(), 'Yes')] |
| 227 | Page Should Not Contain ${vnf_name} |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 228 | |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 229 | Login To SDNGC Admin GUI |
| 230 | [Documentation] Login To SDNGC Admin GUI |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 231 | ## Setup Browser is now being managed by the test case |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 232 | ## Setup Browser |
| 233 | Go To ${SDNGC_ADMIN_SIGNUP_URL} |
Jerry Flood | 81d33fb | 2017-11-21 16:21:21 -0500 | [diff] [blame] | 234 | ##Maximize Browser Window |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 235 | Set Selenium Speed ${GLOBAL_SELENIUM_DELAY} |
| 236 | Set Browser Implicit Wait ${GLOBAL_SELENIUM_BROWSER_IMPLICIT_WAIT} |
| 237 | Log Logging in to ${SDNGC_ADMIN_LOGIN_URL} |
| 238 | Handle Proxy Warning |
| 239 | Title Should Be AdminPortal |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 240 | ${uuid}= Generate UUID |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 241 | ${shortened_uuid}= Evaluate str("${uuid}")[:12] |
| 242 | ${email}= Catenate ${shortened_uuid}@robotete.com |
| 243 | Input Text xpath=//input[@id='nf_email'] ${email} |
| 244 | Input Password xpath=//input[@id='nf_password'] ${shortened_uuid} |
| 245 | Click Button xpath=//button[@type='submit'] |
| 246 | Wait Until Page Contains User created 20s |
| 247 | Go To ${SDNGC_ADMIN_LOGIN_URL} |
| 248 | Input Text xpath=//input[@id='email'] ${email} |
| 249 | Input Password xpath=//input[@id='password'] ${shortened_uuid} |
| 250 | Click Button xpath=//button[@type='submit'] |
| 251 | Title Should Be SDN-C AdminPortal |
Brian Freeman | 12ff184 | 2019-02-13 13:54:48 -0500 | [diff] [blame] | 252 | Log Logged in to ${SDNGC_ADMIN_LOGIN_URL} |