VID: Fix newVNFChange by being more graceful before clicking
[integration/csit.git] / tests / vid / newVNFChange / test3.robot
1 *** Settings ***
2 Documentation     New VNF Change SO workflows
3 Library           Process
4 Library             Selenium2Library
5 Library    Collections
6 Library         String
7 Library               RequestsLibrary
8 Library           OperatingSystem
9 Resource      ../../common.robot
10 Resource    ../resources/keywords/login_vid_keywords.robot
11
12 *** Variables ***
13
14
15 *** Test Cases ***
16 add new VNF Change in VID GUI From SO SDC worfkow
17     [Documentation]   create VNF Change from SO SDC workflows
18
19     Wait Until Element Is Visible     xpath=//div[@heading='VNF Changes']//a[1]
20     Click Element    xpath=//div[@heading='VNF Changes']//a[1]
21
22     Click Element    xpath=//div[@ng-click='vm.createNewChange()']
23
24     Wait Until Page Contains    New VNF Change    ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
25
26     Select From List  xpath=//select[@name='subscriber']  CAR_2020_ER
27
28     Select From List  xpath=//select[@name='serviceType']  gNB
29
30     Select From List  xpath=//select[@name='vnfType']  vLBMS
31
32     Select From List  xpath=//select[@name='fromVNFVersion']  3.0
33
34     Click Element   xpath=//multiselect[@name='vnfName']
35     Click Element   xpath=//a[contains(text(),'vnf-ws')]
36
37     Select From List  xpath=//select[@name='workflow']  inPlaceSoftwareUpdate
38
39     Wait Until Page Contains    Operations Timeout    ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
40     Input Text    xpath=//input[@id='so-workflow-parameter-operations_timeout']    10
41     Input Text    xpath=//input[@id='so-workflow-parameter-existing_software_version']    test
42     Input Text    xpath=//input[@id='so-workflow-parameter-new_software_version']    test
43
44     Wait Until Element Is Enabled   xpath=//button[@id='submit']  ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
45     Click Button    xpath=//button[@id='submit']
46
47     Wait Until Page Does Not Contain  New VNF Change  ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
48     [Teardown]    Close Browser