From 2d3d8dcf6ef1bd2a161c69d561c629c5ec3f59c4 Mon Sep 17 00:00:00 2001 From: Gary Wu Date: Thu, 27 Sep 2018 10:29:30 -0700 Subject: Move CSIT to integration/csit repo To facilite branching of CSIT tests, all CSIT test code and scripts are relocated to the integration/csit repo. Change-Id: I6777cd414e43dbf2bfa6215f7e50849e1a6a2e59 Issue-ID: INT-671 Signed-off-by: Gary Wu --- test/csit/tests/appc/cdt/__init__.robot | 15 -- test/csit/tests/appc/cdt/cdt.robot | 194 --------------------- test/csit/tests/appc/cdt/common.robot | 60 ------- ..._Configure_vUSP - Revenue Assurance_0.0.1V.yaml | 13 -- ...erence_AllAction_HealthCheckAnsible_0.0.1V.json | 48 ----- ..._AllAction_vUSP - Revenue Assurance_0.0.1V.json | 125 ------------- ..._Configure_vUSP - Revenue Assurance_0.0.1V.json | 5 - .../cdt/data/vUSP_User Input Spreadsheet v.07.xlsx | Bin 609997 -> 0 bytes 8 files changed, 460 deletions(-) delete mode 100644 test/csit/tests/appc/cdt/__init__.robot delete mode 100644 test/csit/tests/appc/cdt/cdt.robot delete mode 100644 test/csit/tests/appc/cdt/common.robot delete mode 100755 test/csit/tests/appc/cdt/data/pd_Configure_vUSP - Revenue Assurance_0.0.1V.yaml delete mode 100755 test/csit/tests/appc/cdt/data/reference_AllAction_HealthCheckAnsible_0.0.1V.json delete mode 100755 test/csit/tests/appc/cdt/data/reference_AllAction_vUSP - Revenue Assurance_0.0.1V.json delete mode 100755 test/csit/tests/appc/cdt/data/template_Configure_vUSP - Revenue Assurance_0.0.1V.json delete mode 100755 test/csit/tests/appc/cdt/data/vUSP_User Input Spreadsheet v.07.xlsx (limited to 'test/csit/tests/appc/cdt') diff --git a/test/csit/tests/appc/cdt/__init__.robot b/test/csit/tests/appc/cdt/__init__.robot deleted file mode 100644 index b03cdaeb5..000000000 --- a/test/csit/tests/appc/cdt/__init__.robot +++ /dev/null @@ -1,15 +0,0 @@ -# This does setup and tear down of the suite - -# NOTE 1: The subdirectories must include a symbolic link to this file -# in order to run an individual .robot file (as compared to directory) -# NOTE 2: The Resource file must also be included in the test case .robot files - -*** Settings *** - -# Include a file of common variables, keywords and other settings -| Resource | common.robot - -#| Suite Setup | Run Keywords | Setup1 | Setup2 -| Suite Setup | Run Keywords | Setup2 | Setup1 -| Suite Teardown | Close all browsers - diff --git a/test/csit/tests/appc/cdt/cdt.robot b/test/csit/tests/appc/cdt/cdt.robot deleted file mode 100644 index b33bfe778..000000000 --- a/test/csit/tests/appc/cdt/cdt.robot +++ /dev/null @@ -1,194 +0,0 @@ -*** Settings *** -| Resource | common.robot - -*** Test Cases *** -# Based on Robot test cases created by Dawn Zelinski (dz2438@att.com). -| Verify Home page and links -# Access Home page - All tests files use this as starting point -| | RefreshMainURL -# Verify the links -| | Page should contain link | Home -| | Page should contain link | MY VNFs -| | Page should contain link | Test -| | Page should contain link | About us -| | Page Should Not Contain | ${USER_ID} -# Verify MY VNFs link will will ask for user entry -| | Click Link | MY VNFs -| | Wait Until Element Is Visible | id=userId | ${LONGTIME} -| | Input Text | id=userId | ${USERID} -| | Click Button | Submit -| | Page Should Contain | ${USER_ID} -| Verify Logout of user id -# Access Home page - All tests files use this as starting point -| | RefreshMainURL -| | Page Should Contain | ${USER_ID} -# Log out of user id and then see if My Vnfs asks for user entry -| | Click Element | id=more-button -# Line below also works. -#| | Click Element | xpath=(//*[@class='android-more-button mdl-button mdl-js-button mdl-button--primary']) -# Now Logout -| | Wait Until Element Is Visible | xpath=(//*[@class='mdl-menu__item mdl-js-ripple-effect']) | ${LONGTIME} -| | Click Element | xpath=(//*[@class='mdl-menu__item mdl-js-ripple-effect']) -| | Page Should Not Contain | ${USER_ID} -# Verify MY VNFs link will will ask for user entry -| | Click Link | MY VNFs -| | Wait Until Element Is Visible | id=userId | ${LONGTIME} -| | Input Text | id=userId | ${USERID} -| | Click Button | Submit -| | Page Should Contain | ${USER_ID} - -| Test Uploading an existing VNF Reference file that was previously downloaded -# Access Home page - All tests files use this as starting point -| | RefreshMainURL -| | Click Link | MY VNFs -# Verify button element is ready before clicking it. -| | Wait Until Page Contains Element | xpath=(//*[@class='mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--primary']) | ${LONGTIME} -#| | Click Button | Create New VNF Type or VNFC Type -| | Click Button | Create New VNF Type -#| | Page Should Contain | Enter VNF type and VNFC to proceed -| | Page Should Contain | Enter VNF Type -| | Page Should Contain Element | id=vnfType -# Proceed without entering any new information -#| | Click Button | Proceed anyway -| | Click Button | Proceed To Upload -| | Page Should Contain Element | id=cmbAction -| | Click Button | Upload Reference File -| | Choose File | id=inputFile | ${CURDIR}/data/reference_AllAction_HealthCheckAnsible_0.0.1V.json -| | Sleep | ${SHORTTIME} -# Verify the screen is populated with the HealthCheck (action), dawnMay17 (VNF Type and ANSIBLE (device protocol) -| | ${theVNFType} | Get Value | id=txtVnfType -| | ${theAction} | Get Selected List Value | id=cmbAction -| | ${theProtocol} | Get Selected List Value | id=txtDeviceProtocol -| | Should Be Equal As Strings | ${theVNFType} | csit -| | Should Be Equal As Strings | ${theAction} | HealthCheck -| | Should Be Equal As Strings | ${theProtocol} | ANSIBLE - -| Test Creation of VNF -# Access Home page - All tests files use this as starting point -| | RefreshMainURL -| | Click Link | MY VNFs -# Verify button element is ready before clicking it. -| | Wait Until Page Contains Element | xpath=(//*[@class='mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--primary']) | ${LONGTIME} -#| | Click Button | Create New VNF Type or VNFC Type -| | Click Button | Create New VNF Type -#| | Page Should Contain | Enter VNF type and VNFC to proceed -| | Page Should Contain | Enter VNF Type -| | Page Should Contain Element | id=vnfType -# Create a date to use in VNF Type to make it unique -| | ${THEDATE} | Get Current Date | result_format=%m%d%H%M%S | exclude_millis=True -| | Input Text | id=vnfType | csit${THEDATE} -| | Click Button | Next -| | Page Should Contain Element | id=cmbAction -# Verify 17 selections available -| | Select From List By Index | id=cmbAction | 17 -# Select HealthCheck and ANSIBLE and verify it gets created -| | Select From List By Value | id=cmbAction | HealthCheck -| | Select From List By Value | id=txtDeviceProtocol | ANSIBLE -| | Click Button | saveToAppc -| | Sleep | ${SHORTTIME} -#| | Wait Until Page Contains | successfully uploaded the Reference Data | ${LONGTIME} -| | Click Link | MY VNFs -| | Page Should Contain | csit${THEDATE} - -| Test Creation of VNF with multiple VNFCs -# This test is based on the 1806 Releases, -# APPC-C Design Tool User Guide for Self-Service Onboarding (section 5.1) -# Access Home page - All tests files use this as starting point -| | RefreshMainURL -| | Click Link | MY VNFs -# Verify button element is ready before clicking it. -| | Wait Until Page Contains Element | xpath=(//*[@class='mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--primary']) | ${LONGTIME} -#| | Click Button | Create New VNF Type or VNFC Type -| | Click Button | Create New VNF Type -| | Wait Until Page Contains Element | id=vnfType | ${LONGTIME} -# Create a date to use in VNF Type to make it unique -| | ${THEDATE} | Get Current Date | result_format=%m%d%H%M%S | exclude_millis=True -| | Input Text | id=vnfType | csit${THEDATE} -| | Click Button | Next -| | Wait Until Page Contains Element | id=cmbAction | ${LONGTIME} -# Populate the action and protocol -| | Select From List By Value | id=cmbAction | Configure -| | Select From List By Value | id=txtDeviceProtocol | NETCONF-XML -# Populate the other VNF descriptors -| | Select From List By Value | name=template | Y -| | Input Text | name=loginUserName | ${USER_ID} -| | Input Text | name=portNumber | 777 -# Describe the first VNFC Type and enter the number of VMs for this VNFC Type -| | Input Text | name=samplevnfcType | VNFC_type_A -| | Input Text | name=samplevnfcFunctionCode | aaa -| | Select From List By Value | name=sampleIpaddress | Y -| | Select From List By Value | name=sampleGroupNotation | first-vnfc-name -| | Input Text | name=sampleGroupValue | pair -| | Input Text | name=txtNumber23 | 2 -| | Click Button | Add VM Information -| | Wait Until Page Contains | VM Number: 2 | ${LONGTIME} -# Clear information about the first VNFC -| | Click Button | Clear VNFC Info -# Describe the second VNFC Type and enter the number of VMs for this VNFC Type -| | Input Text | name=samplevnfcType | VNFC_type_B -| | Input Text | name=samplevnfcFunctionCode | bbb -| | Select From List By Value | name=sampleIpaddress | Y -| | Select From List By Value | name=sampleGroupNotation | first-vnfc-name -| | Input Text | name=sampleGroupValue | pair -| | Input Text | name=txtNumber23 | 2 -| | Click Button | Add VM Information -| | Wait Until Page Contains | VM Number: 4 | ${LONGTIME} -| | Click Button | saveToAppc -| | Sleep | ${SHORTTIME} -#| | Wait Until Page Contains | successfully uploaded the Reference Data | ${LONGTIME} -| | Click Link | MY VNFs -| | Wait Until Page Contains | ARTIFACT NAME | ${LONGTIME} -| | Page Should Contain | csit${THEDATE} - -| Test Creation of VNF with VNFC box checked -# This test is based on the 1806 Releases, -# APPC-C Design Tool User Guide for Self-Service Onboarding (section 5.1) -# Access Home page - All tests files use this as starting point -| | RefreshMainURL -| | Click Link | MY VNFs -# Verify button element is ready before clicking it. -| | Wait Until Page Contains Element | xpath=(//*[@class='mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--primary']) | ${LONGTIME} -#| | Click Button | Create New VNF Type or VNFC Type -| | Click Button | Create New VNF Type -| | Wait Until Page Contains Element | id=vnfType | ${LONGTIME} -# Create a date to use in VNF Type to make it unique -| | ${THEDATE} | Get Current Date | result_format=%m%d%H%M%S | exclude_millis=True -| | Input Text | id=vnfType | csit${THEDATE} -# Check the box indicating VNFC templates -| | Select Checkbox | id=vnfcRequired -#| | Input Text | id=vnfcType | csitVNFC -| | Click Button | Next -| | Wait Until Page Contains Element | id=cmbAction | ${LONGTIME} -# Populate the action and protocol -| | Select From List By Value | id=cmbAction | Configure -| | Select From List By Value | id=txtDeviceProtocol | NETCONF-XML -# Populate the other VNF descriptors -| | Select From List By Value | name=template | Y -| | Input Text | name=loginUserName | ${USER_ID} -| | Input Text | name=portNumber | 777 -# Describe the first VNFC Type and enter the number of VMs for this VNFC Type -| | Input Text | name=samplevnfcType | csitVNFC -| | Input Text | name=samplevnfcFunctionCode | aaa -| | Select From List By Value | name=sampleIpaddress | Y -| | Select From List By Value | name=sampleGroupNotation | first-vnfc-name -| | Input Text | name=sampleGroupValue | pair -| | Input Text | name=txtNumber23 | 2 -| | Click Button | Add VM Information -| | Wait Until Page Contains | VM Number: 2 | ${LONGTIME} -# Clear information about the first VNFC -| | Click Button | Clear VNFC Info -# Describe the second VNFC Type and enter the number of VMs for this VNFC Type -| | Input Text | name=samplevnfcType | csitVNFC -| | Input Text | name=samplevnfcFunctionCode | bbb -| | Select From List By Value | name=sampleIpaddress | Y -| | Select From List By Value | name=sampleGroupNotation | first-vnfc-name -| | Input Text | name=sampleGroupValue | pair -| | Input Text | name=txtNumber23 | 2 -| | Click Button | Add VM Information -| | Wait Until Page Contains | VM Number: 4 | ${LONGTIME} -| | Click Button | saveToAppc -| | Sleep | ${SHORTTIME} -| | Click Link | MY VNFs -| | Wait Until Page Contains | ARTIFACT NAME | ${LONGTIME} -| | Page Should Contain | csit${THEDATE} - diff --git a/test/csit/tests/appc/cdt/common.robot b/test/csit/tests/appc/cdt/common.robot deleted file mode 100644 index 3492924f1..000000000 --- a/test/csit/tests/appc/cdt/common.robot +++ /dev/null @@ -1,60 +0,0 @@ -# CDT Regression Testing # Set the MAINURL via the command line -# run as: -# 1) execute a .profile that sets and exports DEV2 and DEV4 -# 2) robot --variable MAINURL:$DEV# filename.robot - - -*** Variables *** - -# ${MAINURL} is now set from the command line per above -| ${BROWSER} | chrome -| ${SHORTTIME} | 5s -| ${LONGTIME} | 90s -| ${TENMINUTES} | 600s -#| ${FFPROFILE_DIR} | /home/dvz/.mozilla/firefox/s87c07vn.AppCZoomed50 -| ${MAINURL} | http://localhost:8080/index.html -| ${USER_ID} | csituser - -*** Keywords *** -| Setup1 | Open browser | ${MAINURL} | ${BROWSER} | | | | | -| Setup2 | SLEEP | 2s - -# Refresh the ${MAINURL} which is used as starting point within each test file -| RefreshMainURL -| | Go To | ${MAINURL} -| | Wait Until Page Contains | WELCOME TO CONTROLLER DESIGN TOOL | ${LONGTIME} - - -# Make sure you can get to APPC server - Wrap in implicit wait then reset -# Want to wait a few seconds to see if Server error appears. -# Can't add an explicit wait to "Page should not contain" -| CheckForServerError -| | [Arguments] | ${WAITTIME} -| | Set Selenium Implicit Wait | ${WAITTIME} -| | Page Should Not Contain | Error in connecting to APPC Server -| | Set Selenium Implicit Wait | 0 - - -| ClickButtonByContent -| | [Arguments] | ${TEXT} -| | ${RETVAL} | Execute Javascript | function clickButtonByTextContent(buttontext) { var buttons = document.querySelectorAll('button'); for (var i=0, l=buttons.length; i