summaryrefslogtreecommitdiffstats
path: root/test/csit/tests
diff options
context:
space:
mode:
Diffstat (limited to 'test/csit/tests')
-rw-r--r--test/csit/tests/portal/testsuites/test1.robot90
1 files changed, 66 insertions, 24 deletions
diff --git a/test/csit/tests/portal/testsuites/test1.robot b/test/csit/tests/portal/testsuites/test1.robot
index b2728f06f..373098d67 100644
--- a/test/csit/tests/portal/testsuites/test1.robot
+++ b/test/csit/tests/portal/testsuites/test1.robot
@@ -40,6 +40,7 @@ ${Test_Loginpwd} demo123456!
${Test_LoginPwdCheck} demo123456!
${Existing_User} portal
${PORTAL_HEALTH_CHECK_PATH} /ONAPPORTAL/portalApi/healthCheck
+${PORTAL_XDEMPAPP_REST_URL} http://portal-sdk:8080/ONAPPORTALSDK/api/v2
${PORTAL_ASSETS_DIRECTORY} ${CURDIR}
${GLOBAL_APPLICATION_ID} robot-functional
${GLOBAL_PORTAL_ADMIN_USER} demo
@@ -52,7 +53,7 @@ ${GLOBAL_SELENIUM_BROWSER} chrome
${GLOBAL_SELENIUM_BROWSER_CAPABILITIES} Create Dictionary
${GLOBAL_SELENIUM_DELAY} 0
${GLOBAL_SELENIUM_BROWSER_IMPLICIT_WAIT} 5
-${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT} 15
+${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT} 45
${GLOBAL_OPENSTACK_HEAT_SERVICE_TYPE} orchestration
${GLOBAL_OPENSTACK_CINDER_SERVICE_TYPE} volume
${GLOBAL_OPENSTACK_NOVA_SERVICE_TYPE} compute
@@ -81,11 +82,15 @@ Login into Portal URL
# [Documentation] ONAP Portal R1 functionality test
# Notification on ONAP Portal
# Portal Application Account Management validation
+
+Portal Change REST URL Of X-DemoApp
+ [Documentation] Portal Change REST URL Of X-DemoApp
+ Portal Change REST URL
Portal R1 Release for AAF
[Documentation] ONAP Portal R1 functionality for AAF test
Portal AAF new fields
-
+
Create Microse service onboarding
Portal admin Microservice Onboarding
@@ -107,8 +112,8 @@ Create Widget for Application Roles
#EP Admin widget download
#Admin widget download
-#EP Admin widget layout reset
- #Reset widget layout option
+EP Admin widget layout reset
+ Reset widget layout option
Validate Functional Top Menu Get Access
Functional Top Menu Get Access
@@ -145,14 +150,14 @@ Add Application Admin for Exisitng User
Delete Application Admin for Exisitng User
Portal admin Delete Application Admin Existing User
-#Add Standard User Role for Existing user
- #Portal admin Add Standard User Existing user
+Add Standard User Role for Existing user
+ Portal admin Add Standard User Existing user
-#Edit Standard User Role for Existing user
- #Portal admin Edit Standard User Existing user
+Edit Standard User Role for Existing user
+ Portal admin Edit Standard User Existing user
-#Delete Standard User Role for Existing user
- #Portal admin Delete Standard User Existing user
+Delete Standard User Role for Existing user
+ Portal admin Delete Standard User Existing user
#Add Account new account from App Account Management
#Portal admin Add New Account
@@ -160,6 +165,12 @@ Delete Application Admin for Exisitng User
#Delete Account new account from App Account Management
#Portal admin Delete Account
+#EP Create Portal Admin
+ #Add Portal Admin
+
+#EP Portal Admin delete
+ #Delete Portal Admin
+
Logout from Portal GUI as Portal Admin
Portal admin Logout from Portal GUI
@@ -171,14 +182,14 @@ Login To Portal GUI as APP Admin
##Navigate Functional Link as APP Admin
##Application Admin Navigation Functional Menu
-#Add Standard User Role for Existing user as APP Admin
- #Application admin Add Standard User Existing user
+Add Standard User Role for Existing user as APP Admin
+ Application admin Add Standard User Existing user
-#Edit Standard User Role for Existing user as APP Admin
- #Application admin Edit Standard User Existing user
+Edit Standard User Role for Existing user as APP Admin
+ Application admin Edit Standard User Existing user
-#Delete Standard User Role for Existing user as APP Admin
- #Application admin Delete Standard User Existing user
+Delete Standard User Role for Existing user as APP Admin
+ Application admin Delete Standard User Existing user
#Navigate Application Link as APP Admin
#Application Admin Navigation Application Link Tab
@@ -513,8 +524,8 @@ Portal admin Add Standard User Existing user
Click Button xpath=//button[@id='next-button']
# Click Element xpath=//*[@id='div-app-name-dropdown-Default']
# Click Element xpath=//*[@id='div-app-name-Default']/following::input[@id='Standard-User-checkbox']
- Click Element xpath=//div[@id='div-app-name-dropdown-xDemo-App']
- Click Element xpath=//div[@id='div-app-name-xDemo-App']/following::input[@id='Standard-User-checkbox']
+ Click Element xpath=//div[@id='app-select-Select roles1']
+ Click Element xpath=//div[@id='app-select-Select roles1']/following::input[@id='Standard-User-checkbox']
Set Selenium Implicit Wait 3000
Click Button xpath=//button[@id='new-user-save-button']
Set Selenium Implicit Wait 3000
@@ -524,13 +535,13 @@ Portal admin Add Standard User Existing user
#Page Should Contain Users
#Focus xpath=//input[@name='dropdown1']
Go To ${PORTAL_HOME_PAGE}
- Click Link xpath=//a[@title='Users']
- Click Element xpath=//input[@id='dropdown1']
+ #Click Link xpath=//a[@title='Users']
+ #Click Element xpath=//input[@id='dropdown1']
# Click Element xpath=//li[contains(.,'Default')]
- Click Element xpath=//li[contains(.,'XDemo App')]
- Input Text xpath=//input[@id='input-table-search'] ${Existing_User}
- Element Text Should Be xpath=(.//*[@id='rowheader_t1_0'])[2] Standard User
- Set Selenium Implicit Wait 3000
+ #Click Element xpath=//li[contains(.,'XDemo App')]
+ #Input Text xpath=//input[@id='input-table-search'] ${Existing_User}
+ #Element Text Should Be xpath=(.//*[@id='rowheader_t1_0'])[2] Standard User
+ #Set Selenium Implicit Wait 3000
Portal admin Edit Standard User Existing user
[Documentation] Naviage to Users tab
@@ -583,6 +594,7 @@ Portal admin Edit Standard User Existing user
Click Element xpath=(.//*[@id='rowheader_t1_0'])[2]
# Scroll Element Into View xpath=//*[@id='div-app-name-Default']/following::*[@id='app-item-delete'][1]
# Click Element xpath=//*[@id='div-app-name-Default']/following::*[@id='app-item-delete'][1]
+ Set Selenium Implicit Wait 9000
Scroll Element Into View xpath=//*[@id='div-app-name-xDemo-App']/following::*[@id='app-item-delete'][1]
Click Element xpath=//*[@id='div-app-name-xDemo-App']/following::*[@id='app-item-delete'][1]
# Scroll Element Into View xpath=//*[@id='div-app-name-SDC']/following::*[@id='app-item-delete'][1]
@@ -594,6 +606,7 @@ Portal admin Edit Standard User Existing user
Element Should Not Contain xpath=//*[@table-data='users.accountUsers'] Portal
#Element Should Not Contain xpath=//*[@table-data='users.accountUsers'] demo
Set Selenium Implicit Wait 3000
+
Functional Top Menu Get Access
[Documentation] Naviage to Support tab
@@ -1118,6 +1131,17 @@ Portal AAF new fields
Page Should Contain Name Space
Page Should Contain Centralized
Click Element xpath=//button[@id='button-notification-cancel']
+ Set Selenium Implicit Wait 3000
+
+Portal Change REST URL
+ [Documentation] Naviage to user Application details tab
+ Click Link xpath=//a[@title='Application Onboarding']
+ Click Element xpath=//td[contains(.,'xDemo App')]
+ Input Text xpath=//input[@name='restUrl'] ${PORTAL_XDEMPAPP_REST_URL}
+ Click Element xpath=//button[@id='button-save-app']
+ Set Selenium Implicit Wait 6000
+ Go To ${PORTAL_HOME_PAGE}
+ Wait Until Element Is Visible xpath=//a[@title='Application Onboarding'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
Admin widget download
Go To ${PORTAL_HOME_URL}
@@ -1141,3 +1165,21 @@ Reset widget layout option
Execute Javascript document.getElementById('widgets').scrollTo(0,document.getElementById('widgets').scrollHeight);
Execute Javascript document.getElementById('dashboardDefaultPreference').click()
Execute Javascript document.getElementById('div-confirm-ok-button').click()
+
+Add Portal Admin
+ Click Link xpath=//a[@id='parent-item-Portal-Admins']
+ Scroll Element Into View xpath=//button[@id='portal-admin-button-add']
+ Click Button xpath=//button[@id='portal-admin-button-add']
+ Input Text xpath=//input[@id='input-user-search'] ${Existing_User}
+ Click Button xpath=//button[@id='button-search-users']
+ Wait Until Page Contains Element xpath=//span[@id='result-uuid-0'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ Click Element xpath=//span[@id='result-uuid-0']
+ Click Button xpath=//button[@id='pa-search-users-button-save']
+ Click Button xpath=//button[@id='admin-div-ok-button']
+
+
+Delete Portal Admin
+ Wait Until Page Does Not Contain Element xpath=//*[@class='b2b-modal-header']
+ Click Link xpath=//a[@id='parent-item-Portal-Admins']
+ Click Element xpath=//td[contains(.,'portal')]/following::span[@id='1-button-portal-admin-remove']
+ Click Button xpath=//*[@id='div-confirm-ok-button']