aboutsummaryrefslogtreecommitdiffstats
path: root/tests/vid/newVNFChange/test3.robot
blob: 30244f99b0102f9598e7242c8fa7d0bb43c50179 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
*** Settings ***
Documentation     New VNF Change SO workflows
Library           Process
Library       Selenium2Library
Library    Collections
Library         String
Library         RequestsLibrary
Library           OperatingSystem
Resource      ../../common.robot
Resource    ../resources/keywords/login_vid_keywords.robot

*** Variables ***


*** Test Cases ***
add new VNF Change in VID GUI From SO SDC worfkow
    [Documentation]   create VNF Change from SO SDC workflows

    Click Element    xpath=//div[@heading='VNF Changes']//a[1]

    Click Element    xpath=//div[@ng-click='vm.createNewChange()']

    Wait Until Page Contains    New VNF Change    ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}

    Select From List  xpath=//select[@name='subscriber']  CAR_2020_ER

    Select From List  xpath=//select[@name='serviceType']  gNB

    Select From List  xpath=//select[@name='vnfType']  vLBMS

    Select From List  xpath=//select[@name='fromVNFVersion']  3.0

    Click Element   xpath=//multiselect[@name='vnfName']
    Click Element   xpath=//a[contains(text(),'vnf-ws')]

    Select From List  xpath=//select[@name='workflow']  inPlaceSoftwareUpdate

    Wait Until Page Contains    Operations Timeout    ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
    Input Text    xpath=//input[@id='so-workflow-parameter-operations_timeout']    10
    Input Text    xpath=//input[@id='so-workflow-parameter-existing_software_version']    test
    Input Text    xpath=//input[@id='so-workflow-parameter-new_software_version']    test

    Wait Until Element Is Enabled   xpath=//button[@id='submit']  ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
    Click Button    xpath=//button[@id='submit']

    Wait Until Page Does Not Contain  New VNF Change  ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
    [Teardown]    Close Browser