Work around for Slower Env 22/89622/1
authorBrian Freeman <bf1936@att.com>
Sun, 9 Jun 2019 14:11:15 +0000 (09:11 -0500)
committerBrian Freeman <bf1936@att.com>
Sun, 9 Jun 2019 14:43:02 +0000 (14:43 +0000)
Issue-ID: INT-1099
Change-Id: I825072da0718cea4a7cd127594cbd1f79c7880b2
Signed-off-by: Brian Freeman <bf1936@att.com>
robot/resources/vid/create_vid_vnf.robot

index 07de71d..3a484b6 100644 (file)
@@ -27,14 +27,16 @@ Create VID VNF
     Wait Until Page Contains Element    link=View/Edit    timeout=${GLOBAL_VID_UI_TIMEOUT_MEDIUM}
     Click Element     xpath=//a[contains(text(), 'View/Edit')]
     Wait Until Page Contains    View/Edit Service Instance     timeout=${GLOBAL_VID_UI_TIMEOUT_MEDIUM}
+    # in slower environment the background load of data from AAI takes time so that the button is not populated yet
+    Sleep   20s
     Click Element    button=Add node instance
     #01681d02-2304-4c91-ab2d 0
     # This is where firefox breaks. Th elink never becomes visible when run with the script.
     ${dataTestsId}=    Catenate   AddVNFOption-${vnf_type}
+    Sleep   10s
     Click Element    xpath=//a[contains(text(), '${vnf_type}')]
-    Wait Until Page Contains Element    xpath=//input[@parameter-id='instanceName']    ${GLOBAL_VID_UI_TIMEOUT_SHORT}
-    Wait Until Element Is Enabled    xpath=//input[@parameter-id='instanceName']    ${GLOBAL_VID_UI_TIMEOUT_SHORT}
-
+    Wait Until Page Contains Element    xpath=//input[@parameter-id='instanceName']    ${GLOBAL_VID_UI_TIMEOUT_MEDIUM}
+    Wait Until Element Is Enabled    xpath=//input[@parameter-id='instanceName']    ${GLOBAL_VID_UI_TIMEOUT_MEDIUM}
     ## Without this sleep, the input text below gets immediately wiped out.
     ## Wait Until Angular Ready just sleeps for its timeout value
     Sleep    10s