aboutsummaryrefslogtreecommitdiffstats
path: root/tests/portal/testsuites
diff options
context:
space:
mode:
authorkaihlavi <l.kaihlavirt@partner.samsung.com>2019-08-12 15:55:52 +0300
committerkaihlavi <l.kaihlavirt@partner.samsung.com>2019-08-12 16:22:55 +0300
commit5fe4afa4fbe1ec97535f6b40271445a43252c914 (patch)
treea2580974d0c03667132dea0c76ca3ffcab196bee /tests/portal/testsuites
parentc44a753af3693cc67de62f8fea2c93cf17c070dc (diff)
Fix numerous fatal errors and other typos
Issue-ID: PORTAL-702 Signed-off-by: kaihlavi <l.kaihlavirt@partner.samsung.com> Change-Id: I656a3aca0910d194375391b2e29781389b08df07
Diffstat (limited to 'tests/portal/testsuites')
-rw-r--r--tests/portal/testsuites/browser_setup.robot20
-rw-r--r--tests/portal/testsuites/portal_VID.robot773
-rw-r--r--tests/portal/testsuites/test1.robot1279
3 files changed, 992 insertions, 1080 deletions
diff --git a/tests/portal/testsuites/browser_setup.robot b/tests/portal/testsuites/browser_setup.robot
index dfa6ab68..e98c501a 100644
--- a/tests/portal/testsuites/browser_setup.robot
+++ b/tests/portal/testsuites/browser_setup.robot
@@ -13,28 +13,28 @@ Setup Browser
Run Keyword If '${GLOBAL_SELENIUM_BROWSER}' == 'firefox' Setup Browser Firefox
Run Keyword If '${GLOBAL_SELENIUM_BROWSER}' == 'chrome' Setup Browser Chrome
Log Running with ${GLOBAL_SELENIUM_BROWSER}
-
+
Setup Browser Firefox
${dc} Evaluate sys.modules['selenium.webdriver'].DesiredCapabilities.FIREFOX sys, selenium.webdriver
- Set To Dictionary ${dc} elementScrollBehavior 1
+ Set To Dictionary ${dc} elementScrollBehavior 1
Create Webdriver Firefox desired_capabilities=${dc}
Set Global Variable ${GLOBAL_SELENIUM_BROWSER_CAPABILITIES} ${dc}
-
+
Setup Browser Chrome
${chrome options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys
Call Method ${chrome options} add_argument no-sandbox
${dc} Evaluate sys.modules['selenium.webdriver'].DesiredCapabilities.CHROME sys, selenium.webdriver
Set To Dictionary ${dc} elementScrollBehavior 1
- Create Webdriver Chrome chrome_options=${chrome_options} desired_capabilities=${dc}
- Set Global Variable ${GLOBAL_SELENIUM_BROWSER_CAPABILITIES} ${dc}
+ Create Webdriver Chrome chrome_options=${chrome_options} desired_capabilities=${dc}
+ Set Global Variable ${GLOBAL_SELENIUM_BROWSER_CAPABILITIES} ${dc}
-Handle Proxy Warning
+Handle Proxy Warning
[Documentation] Handle Intermediate Warnings from Proxies
- ${status} ${data}= Run Keyword And Ignore Error Variable Should Exist \${GLOBAL_PROXY_WARNING_TITLE}
+ ${status} ${data}= Run Keyword And Ignore Error Variable Should Exist \${GLOBAL_PROXY_WARNING_TITLE}
Return From Keyword if '${status}' != 'PASS'
- ${status} ${data}= Run Keyword And Ignore Error Variable Should Exist \${GLOBAL_PROXY_WARNING_CONTINUE_XPATH}
+ ${status} ${data}= Run Keyword And Ignore Error Variable Should Exist \${GLOBAL_PROXY_WARNING_CONTINUE_XPATH}
Return From Keyword if '${status}' != 'PASS'
Return From Keyword if "${GLOBAL_PROXY_WARNING_TITLE}" == ''
Return From Keyword if "${GLOBAL_PROXY_WARNING_CONTINUE_XPATH}" == ''
- ${test} ${value}= Run keyword and ignore error Title Should Be ${GLOBAL_PROXY_WARNING_TITLE}
- Run keyword If '${test}' == 'PASS' Click Element xpath=${GLOBAL_PROXY_WARNING_CONTINUE_XPATH} \ No newline at end of file
+ ${test} ${value}= Run keyword And Ignore Error Title Should Be ${GLOBAL_PROXY_WARNING_TITLE}
+ Run Keyword If '${test}' == 'PASS' Click Element xpath=${GLOBAL_PROXY_WARNING_CONTINUE_XPATH} \ No newline at end of file
diff --git a/tests/portal/testsuites/portal_VID.robot b/tests/portal/testsuites/portal_VID.robot
index fdfa4e79..fd8464b6 100644
--- a/tests/portal/testsuites/portal_VID.robot
+++ b/tests/portal/testsuites/portal_VID.robot
@@ -1,10 +1,10 @@
*** Settings ***
Documentation The main interface for interacting with Portal. It handles low level stuff like managing the selenium request library and Portal required steps
-Library ExtendedSelenium2Library
-Library RequestsClientCert
-Library RequestsLibrary
-Library ONAPLibrary.Utilities
-Library DateTime
+Library ExtendedSelenium2Library
+Library RequestsClientCert
+Library RequestsLibrary
+Library ONAPLibrary.Utilities
+Library DateTime
Resource ../global_properties.robot
Resource ../browser_setup.robot
@@ -14,13 +14,13 @@ ${PORTAL_LOGIN_URL} ${GLOBAL_PORTAL_URL}${PORTAL_ENV}/login.htm
${PORTAL_HOME_PAGE} ${GLOBAL_PORTAL_URL}${PORTAL_ENV}/applicationsHome
${PORTAL_MICRO_ENDPOINT} ${GLOBAL_PORTAL_URL}${PORTAL_ENV}/commonWidgets
${PORTAL_HOME_URL} ${GLOBAL_PORTAL_URL}${PORTAL_ENV}/applicationsHome
-${App_First_Name} appdemo
+${App_First_Name} appdemo
${App_Last_Name} demo
${App_Email_Address} appdemo@onap.com
-${App_LoginID} appdemo
+${App_LoginID} appdemo
${App_Loginpwd} demo123456!
${App_LoginPwdCheck} demo123456!
-${Sta_First_Name} stademo
+${Sta_First_Name} stademo
${Sta_Last_Name} demo
${Sta_Email_Address} stademo@onap.com
${Sta_LoginID} stademo
@@ -28,34 +28,30 @@ ${Sta_Loginpwd} demo123456!
${Sta_LoginPwdCheck} demo123456!
${Existing_User} portal
${PORTAL_HEALTH_CHECK_PATH} /ECOMPPORTAL/portalApi/healthCheck
-#${Application} 'Virtual Infrastructure Deployment'
-#${Application_tab} 'select-app-Virtual-Infrastructure-Deployment'
+#${Application} 'Virtual Infrastructure Deployment'
+#${Application_tab} 'select-app-Virtual-Infrastructure-Deployment'
#${Application_dropdown} 'div-app-name-dropdown-Virtual-Infrastructure-Deployment'
-#${Application_dropdown_select} 'div-app-name-Virtual-Infrastructure-Deployment'
-${APPC_LOGIN_URL} http://104.130.74.99:8282/apidoc/explorer/index.html
+#${Application_dropdown_select} 'div-app-name-Virtual-Infrastructure-Deployment'
+${APPC_LOGIN_URL} http://104.130.74.99:8282/apidoc/explorer/index.html
${PORTAL_ASSETS_DIRECTORY} C:\\Users\\kk707x\\Downloads
-
-
-
-
*** Keywords ***
Run Portal Health Check
[Documentation] Runs Portal Health check
- ${resp}= Run Portal Get Request ${PORTAL_HEALTH_CHECK_PATH}
- Should Be Equal As Strings ${resp.status_code} 200
- Should Be Equal As Strings ${resp.json()['statusCode']} 200
+ ${resp}= Run Portal Get Request ${PORTAL_HEALTH_CHECK_PATH}
+ Should Be Equal As Strings ${resp.status_code} 200
+ Should Be Equal As Strings ${resp.json()['statusCode']} 200
+
Run Portal Get Request
[Documentation] Runs Portal Get request
[Arguments] ${data_path}
- ${session}= Create Session portal ${GLOBAL_PORTAL_URL}
+ ${session}= Create Session portal ${GLOBAL_PORTAL_URL}
${uuid}= Generate UUID4
${headers}= Create Dictionary Accept=application/json Content-Type=application/json X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid} X-FromAppId=${GLOBAL_APPLICATION_ID}
- ${resp}= Get Request portal ${data_path} headers=${headers}
+ ${resp}= Get Request portal ${data_path} headers=${headers}
Log Received response from portal ${resp.text}
- [Return] ${resp}
-
+ [Return] ${resp}
Portal admin Login To Portal GUI
[Documentation] Logs into Portal GUI
@@ -71,26 +67,26 @@ Portal admin Login To Portal GUI
Input Text xpath=//input[@ng-model='loginId'] ${GLOBAL_PORTAL_ADMIN_USER}
Input Password xpath=//input[@ng-model='password'] ${GLOBAL_PORTAL_ADMIN_PWD}
Click Link xpath=//a[@id='loginBtn']
- Wait Until Page Contains Element xpath=//img[@alt='Onap Logo'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ Wait Until Page Contains Element xpath=//img[@alt='Onap Logo'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
Log Logged in to ${GLOBAL_PORTAL_SERVER}${PORTAL_ENV}
Portal admin Go To Portal HOME
- [Documentation] Naviage to Portal Home
+ [Documentation] Navigate to Portal Home
Go To ${PORTAL_HOME_URL}
- Wait Until Page Contains Element xpath=//div[@class='applicationWindow'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
-
-Portal admin User Notifications
- [Documentation] Naviage to User notification tab
+ Wait Until Page Contains Element xpath=//div[@class='applicationWindow'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+
+Portal admin User Notifications
+ [Documentation] Navigate to User notification tab
Click Link xpath=//a[@id='parent-item-User-Notifications']
- Wait Until Element Is Visible xpath=//h1[@class='heading-page'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ Wait Until Element Is Visible xpath=//h1[@class='heading-page'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
Click Button xpath=//button[@id='button-openAddNewApp']
Click Button xpath=(//button[@id='undefined'])[1]
#Click Button xpath=//input[@id='datepicker-start']
-
+
Portal admin Add Application Admin New User
- [Documentation] Naviage to Admins tab
+ [Documentation] Navigate to Admins tab
Click Link xpath=//a[@title='Admins']
- Wait Until Element Is Visible xpath=//h1[contains(.,'Admins')] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ Wait Until Element Is Visible xpath=//h1[contains(.,'Admins')] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
Page Should Contain Admins
Click Button xpath=//button[@ng-click='admins.openAddNewAdminModal()']
Click Button xpath=//button[@id='Create-New-User-button']
@@ -106,32 +102,29 @@ Portal admin Add Application Admin New User
Scroll Element Into View xpath=(//input[@value='Select application']/following::*[contains(text(),'Virtual Infrastructure Deployment')])[1]
#Scroll Element Into View xpath=(//input[@value='Select application']/following::*[contains(text(),'Virtual Infrastructure Deployment')])[1]
Click Element xpath=(//li[contains(.,'Virtual Infrastructure Deployment')])[2]
- Click Button xpath=//button[@id='div-updateAdminAppsRoles']
- Click Element xpath=//button[@id='admin-div-ok-button']
+ Click Button xpath=//button[@id='div-updateAdminAppsRoles']
+ Click Element xpath=//button[@id='admin-div-ok-button']
Click Element xpath=//button[@id='div-confirm-ok-button']
Click Link xpath=//a[@aria-label='Admins']
Click Button xpath=//input[@id='dropdown1']
Click Element xpath=//li[contains(.,'Virtual Infrastructure Deployment')]
Input Text xpath=//input[@id='input-table-search'] ${First_Name}
Element Text Should Be xpath=(//span[contains(.,'Test')] )[1] ${First_Name}
-
-
-
-
-Portal admin Add Application Admin Exiting User
- [Documentation] Naviage to Admins tab
- Wait Until Element Is Visible xpath=//a[@title='Admins'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+
+Portal admin Add Application Admin Existing User
+ [Documentation] Navigate to Admins tab
+ Wait Until Element Is Visible xpath=//a[@title='Admins'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
Click Link xpath=//a[@title='Admins']
- Wait Until Element Is Visible xpath=//h1[contains(.,'Admins')] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ Wait Until Element Is Visible xpath=//h1[contains(.,'Admins')] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
Page Should Contain Admins
Click Button xpath=//button[@ng-click='admins.openAddNewAdminModal()']
- Input Text xpath=//input[@id='input-user-search'] ${Existing_User}
+ Input Text xpath=//input[@id='input-user-search'] ${Existing_User}
Click Button xpath=//button[@id='button-search-users']
Click Element xpath=//span[@id='result-uuid-0']
Click Button xpath=//button[@id='search-users-button-next']
Click Button xpath=//input[@value='Select application']
Scroll Element Into View xpath=(//input[@value='Select application']/following::*[contains(text(),'Virtual Infrastructure Deployment' )])[1]
-
+
Click Element xpath=(//li[contains(.,'Virtual Infrastructure Deployment' )])[2]
#Select From List xpath=(//input[@value='Select application']/following::*[contains(text(),'Virtual Infrastructure Deployment')])[1] Virtual Infrastructure Deployment
Click Button xpath=//button[@id='div-updateAdminAppsRoles']
@@ -143,11 +136,10 @@ Portal admin Add Application Admin Exiting User
Click Element xpath=//li[contains(.,'Virtual Infrastructure Deployment' )]
Input Text xpath=//input[@id='input-table-search'] ${Existing_User}
Element Text Should Be xpath=(//span[contains(.,'portal')])[1] ${Existing_User}
-
-
-Portal admin Delete Application Admin Existing User
- [Documentation] Naviage to Admins tab
- Click Element xpath=(//span[contains(.,'portal')] )[1]
+
+Portal admin Delete Application Admin Existing User
+ [Documentation] Navigate to Admins tab
+ Click Element xpath=(//span[contains(.,'portal')] )[1]
Click Element xpath=//*[@id='select-app-Virtual-Infrastructure-Deployment']/following::i[@id='i-delete-application']
Click Element xpath=//button[@id='div-confirm-ok-button']
Click Button xpath=//button[@id='div-updateAdminAppsRoles']
@@ -155,10 +147,9 @@ Portal admin Delete Application Admin Existing User
#Is Element Visible xpath=(//span[contains(.,'Portal')] )[2]
#Is Element Visible xpath=(//*[contains(.,'Portal')] )[2]
Element Should Not Contain xpath=//*[@table-data='admins.adminsTableData'] portal
-
-
+
Portal admin Add Application admin User New user
- [Documentation] Naviage to Users tab
+ [Documentation] Navigate to Users tab
Click Link xpath=//a[@title='Users']
Page Should Contain Users
Click Button xpath=//button[@ng-click='users.openAddNewUserModal()']
@@ -178,15 +169,14 @@ Portal admin Add Application admin User New user
Click Button xpath=//button[@id='new-user-save-button']
Set Selenium Implicit Wait 3000
Go To ${PORTAL_HOME_PAGE}
- Click Link xpath=//a[@title='Users']
- Click Element xpath=//input[@id='dropdown1']
- Click Element xpath=//li[contains(.,'Virtual Infrastructure Deployment')]
+ Click Link xpath=//a[@title='Users']
+ Click Element xpath=//input[@id='dropdown1']
+ Click Element xpath=//li[contains(.,'Virtual Infrastructure Deployment')]
Input Text xpath=//input[@id='input-table-search'] ${App_First_Name}
Element Text Should Be xpath=(//span[contains(.,'appdemo')] )[1] ${App_First_Name}
-
-
+
Portal admin Add Standard User New user
- [Documentation] Naviage to Users tab
+ [Documentation] Navigate to Users tab
Click Link xpath=//a[@title='Users']
Page Should Contain Users
Click Button xpath=//button[@ng-click='users.openAddNewUserModal()']
@@ -206,28 +196,26 @@ Portal admin Add Standard User New user
Click Button xpath=//button[@id='new-user-save-button']
Set Selenium Implicit Wait 3000
Go To ${PORTAL_HOME_PAGE}
- Click Link xpath=//a[@title='Users']
- Click Element xpath=//input[@id='dropdown1']
- Click Element xpath=//li[contains(.,'Virtual Infrastructure Deployment')]
+ Click Link xpath=//a[@title='Users']
+ Click Element xpath=//input[@id='dropdown1']
+ Click Element xpath=//li[contains(.,'Virtual Infrastructure Deployment')]
Input Text xpath=//input[@id='input-table-search'] ${Sta_First_Name}
- Element Text Should Be xpath=(//span[contains(.,'appdemo')] )[1] ${Sta_First_Name}
-
-
-
-Portal admin Add Application Admin Exiting User -APPDEMO
- [Documentation] Naviage to Admins tab
- Wait Until Element Is Visible xpath=//a[@title='Admins'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ Element Text Should Be xpath=(//span[contains(.,'appdemo')] )[1] ${Sta_First_Name}
+
+Portal admin Add Application Admin Existing User -APPDEMO
+ [Documentation] Navigate to Admins tab
+ Wait Until Element Is Visible xpath=//a[@title='Admins'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
Click Link xpath=//a[@title='Admins']
- Wait Until Element Is Visible xpath=//h1[contains(.,'Admins')] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ Wait Until Element Is Visible xpath=//h1[contains(.,'Admins')] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
Page Should Contain Admins
Click Button xpath=//button[@ng-click='admins.openAddNewAdminModal()']
- Input Text xpath=//input[@id='input-user-search'] ${App_First_Name}
+ Input Text xpath=//input[@id='input-user-search'] ${App_First_Name}
Click Button xpath=//button[@id='button-search-users']
Click Element xpath=//span[@id='result-uuid-0']
Click Button xpath=//button[@id='search-users-button-next']
Click Button xpath=//input[@value='Select application']
Scroll Element Into View xpath=(//input[@value='Select application']/following::*[contains(text(),'Virtual Infrastructure Deployment' )])[1]
-
+
Click Element xpath=(//li[contains(.,'Virtual Infrastructure Deployment' )])[2]
#Select From List xpath=(//input[@value='Select application']/following::*[contains(text(),'Virtual Infrastructure Deployment')])[1] Virtual Infrastructure Deployment
Click Button xpath=//button[@id='div-updateAdminAppsRoles']
@@ -238,91 +226,82 @@ Portal admin Add Application Admin Exiting User -APPDEMO
Click Element xpath=//input[@id='dropdown1']
Click Element xpath=//li[contains(.,'Virtual Infrastructure Deployment' )]
Input Text xpath=//input[@id='input-table-search'] ${App_First_Name}
- Element Text Should Be xpath=(//span[contains(.,'appdemo')])[1] ${App_First_Name}
-
-
-
-Portal admin Add Standard User Existing user
- [Documentation] Naviage to Users tab
- Click Link xpath=//a[@title='Users']
- Page Should Contain Users
- Click Button xpath=//button[@ng-click='users.openAddNewUserModal()']
- Input Text xpath=//input[@id='input-user-search'] ${Existing_User}
- Click Button xpath=//button[@id='button-search-users']
- Click Element xpath=//span[@id='result-uuid-0']
- Click Button xpath=//button[@id='next-button']
- Click Element xpath=//*[@id='div-app-name-dropdown-Virtual-Infrastructure-Deployment']
- Click Element xpath=//*[@id='div-app-name-Virtual-Infrastructure-Deployment']/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']
-
- Set Selenium Implicit Wait 3000
- Click Button xpath=//button[@id='new-user-save-button']
- Set Selenium Implicit Wait 3000
- #Set Browser Implicit Wait ${GLOBAL_SELENIUM_BROWSER_IMPLICIT_WAIT}
- #Select From List xpath=//input[@value='Select application'] Virtual Infrastructure Deployment
- #Click Link xpath=//a[@title='Users']
- #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 Element xpath=//li[contains(.,'Virtual Infrastructure Deployment')]
- #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
-
-
-Portal admin Edit Standard User Existing user
- [Documentation] Naviage to Users tab
- Click Element xpath=(.//*[@id='rowheader_t1_0'])[2]
- Click Element xpath=//*[@id='div-app-name-dropdown-Virtual-Infrastructure-Deployment']
- Click Element xpath=//*[@id='div-app-name-Virtual-Infrastructure-Deployment']/following::input[@id='Standard-User-checkbox']
- Click Element xpath=//*[@id='div-app-name-Virtual-Infrastructure-Deployment']/following::input[@id='System-Administrator-checkbox']
- Set Selenium Implicit Wait 3000
- Click Button xpath=//button[@id='new-user-save-button']
- Set Selenium Implicit Wait 3000
- Page Should Contain Users
- #Click Button xpath=//input[@id='dropdown1']
- #Click Element xpath=//li[contains(.,'Virtual Infrastructure Deployment')]
- Input Text xpath=//input[@id='input-table-search'] ${Existing_User}
- Element Text Should Be xpath=(.//*[@id='rowheader_t1_0'])[2] System Administrator
-
-
- Portal admin Delete Standard User Existing user
- [Documentation] Naviage to Users tab
- Click Element xpath=(.//*[@id='rowheader_t1_0'])[2]
- Scroll Element Into View xpath=//*[@id='div-app-name-Virtual-Infrastructure-Deployment']/following::*[@id='app-item-delete'][1]
- Click Element xpath=//*[@id='div-app-name-Virtual-Infrastructure-Deployment']/following::*[@id='app-item-delete'][1]
- Click Element xpath=//button[@id='div-confirm-ok-button']
- Click Button xpath=//button[@id='new-user-save-button']
- #Input Text xpath=//input[@id='input-table-search'] ${Existing_User}
- #Is Element Visible xpath=(//*[contains(.,'Portal')] )[2]
- Element Should Not Contain xpath=//*[@table-data='users.accountUsers'] portal
-
-
-
-
-Functional Top Menu Get Access
- [Documentation] Naviage to Support tab
+ Element Text Should Be xpath=(//span[contains(.,'appdemo')])[1] ${App_First_Name}
+
+Portal admin Add Standard User Existing user
+ [Documentation] Navigate to Users tab
+ Click Link xpath=//a[@title='Users']
+ Page Should Contain Users
+ Click Button xpath=//button[@ng-click='users.openAddNewUserModal()']
+ Input Text xpath=//input[@id='input-user-search'] ${Existing_User}
+ Click Button xpath=//button[@id='button-search-users']
+ Click Element xpath=//span[@id='result-uuid-0']
+ Click Button xpath=//button[@id='next-button']
+ Click Element xpath=//*[@id='div-app-name-dropdown-Virtual-Infrastructure-Deployment']
+ Click Element xpath=//*[@id='div-app-name-Virtual-Infrastructure-Deployment']/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']
+
+ Set Selenium Implicit Wait 3000
+ Click Button xpath=//button[@id='new-user-save-button']
+ Set Selenium Implicit Wait 3000
+ #Set Browser Implicit Wait ${GLOBAL_SELENIUM_BROWSER_IMPLICIT_WAIT}
+ #Select From List xpath=//input[@value='Select application'] Virtual Infrastructure Deployment
+ #Click Link xpath=//a[@title='Users']
+ #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 Element xpath=//li[contains(.,'Virtual Infrastructure Deployment')]
+ #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
+
+Portal admin Edit Standard User Existing user
+ [Documentation] Navigate to Users tab
+ Click Element xpath=(.//*[@id='rowheader_t1_0'])[2]
+ Click Element xpath=//*[@id='div-app-name-dropdown-Virtual-Infrastructure-Deployment']
+ Click Element xpath=//*[@id='div-app-name-Virtual-Infrastructure-Deployment']/following::input[@id='Standard-User-checkbox']
+ Click Element xpath=//*[@id='div-app-name-Virtual-Infrastructure-Deployment']/following::input[@id='System-Administrator-checkbox']
+ Set Selenium Implicit Wait 3000
+ Click Button xpath=//button[@id='new-user-save-button']
+ Set Selenium Implicit Wait 3000
+ Page Should Contain Users
+ #Click Button xpath=//input[@id='dropdown1']
+ #Click Element xpath=//li[contains(.,'Virtual Infrastructure Deployment')]
+ Input Text xpath=//input[@id='input-table-search'] ${Existing_User}
+ Element Text Should Be xpath=(.//*[@id='rowheader_t1_0'])[2] System Administrator
+
+Portal admin Delete Standard User Existing user
+ [Documentation] Navigate to Users tab
+ Click Element xpath=(.//*[@id='rowheader_t1_0'])[2]
+ Scroll Element Into View xpath=//*[@id='div-app-name-Virtual-Infrastructure-Deployment']/following::*[@id='app-item-delete'][1]
+ Click Element xpath=//*[@id='div-app-name-Virtual-Infrastructure-Deployment']/following::*[@id='app-item-delete'][1]
+ Click Element xpath=//button[@id='div-confirm-ok-button']
+ Click Button xpath=//button[@id='new-user-save-button']
+ #Input Text xpath=//input[@id='input-table-search'] ${Existing_User}
+ #Is Element Visible xpath=(//*[contains(.,'Portal')] )[2]
+ Element Should Not Contain xpath=//*[@table-data='users.accountUsers'] portal
+
+Functional Top Menu Get Access
+ [Documentation] Navigate to Support tab
Click Link xpath=//a[contains(.,'Support')]
Mouse Over xpath=//*[contains(text(),'Get Access')]
Click Link xpath=//a[contains(.,'Get Access')]
Element Text Should Be xpath=//h1[contains(.,'Get Access')] Get Access
-
-
-Functional Top Menu Contact Us
- [Documentation] Naviage to Support tab
+
+Functional Top Menu Contact Us
+ [Documentation] Navigate to Support tab
Click Link xpath=//a[contains(.,'Support')]
Mouse Over xpath=//*[contains(text(),'Contact Us')]
Click Link xpath=//a[contains(.,'Contact Us')]
- Element Text Should Be xpath=//h1[contains(.,'Contact Us')] Contact Us
- Click Image xpath=//img[@alt='Onap Logo']
-
+ Element Text Should Be xpath=//h1[contains(.,'Contact Us')] Contact Us
+ Click Image xpath=//img[@alt='Onap Logo']
-Portal admin Edit Functional menu
- [Documentation] Naviage to Edit Functional menu tab
+Portal admin Edit Functional menu
+ [Documentation] Navigate to Edit Functional menu tab
Click Link xpath=//a[@title='Edit Functional Menu']
Click Link xpath=.//*[@id='Manage']/div/a
Click Link xpath=.//*[@id='Design']/div/a
@@ -343,34 +322,27 @@ Portal admin Edit Functional menu
Click Image xpath=//img[@alt='Onap Logo']
Set Selenium Implicit Wait 3000
Click Link xpath=//a[contains(.,'Manage')]
- Mouse Over xpath=//*[contains(text(),'Design')]
- Set Selenium Implicit Wait 3000
- Element Text Should Be xpath=//a[contains(.,'ONAP Test')] ONAP Test
- Set Selenium Implicit Wait 3000
- Click Link xpath=//a[@title='Edit Functional Menu']
+ Mouse Over xpath=//*[contains(text(),'Design')]
+ Set Selenium Implicit Wait 3000
+ Element Text Should Be xpath=//a[contains(.,'ONAP Test')] ONAP Test
+ Set Selenium Implicit Wait 3000
+ Click Link xpath=//a[@title='Edit Functional Menu']
Click Link xpath=.//*[@id='Manage']/div/a
Click Link xpath=.//*[@id='Design']/div/a
Click Link xpath=.//*[@id='Product_Design']/div/a
Open Context Menu xpath=//*[@id='ONAP_Test']
Click Link xpath=//a[@href='#delete']
- Set Selenium Implicit Wait 3000
- Click Element xpath=//button[@id='div-confirm-ok-button']
- Click Image xpath=//img[@alt='Onap Logo']
+ Set Selenium Implicit Wait 3000
+ Click Element xpath=//button[@id='div-confirm-ok-button']
+ Click Image xpath=//img[@alt='Onap Logo']
Set Selenium Implicit Wait 3000
Click Link xpath=//a[contains(.,'Manage')]
- Mouse Over xpath=//*[contains(text(),'Design')]
- Set Selenium Implicit Wait 3000
- Element Should Not Contain xpath=(.//*[contains(.,'Design')]/following::ul[1])[1] ONAP Test
-
-
-
-
-
-
-
-
+ Mouse Over xpath=//*[contains(text(),'Design')]
+ Set Selenium Implicit Wait 3000
+ Element Should Not Contain xpath=(.//*[contains(.,'Design')]/following::ul[1])[1] ONAP Test
+
Portal admin Microservice Onboarding
- [Documentation] Naviage to Edit Functional menu tab
+ [Documentation] Navigate to Edit Functional menu tab
Click Link xpath=//a[@title='Microservice Onboarding']
Click Button xpath=//button[@id='microservice-onboarding-button-add']
Input Text xpath=//input[@name='name'] Test Microservice
@@ -388,11 +360,9 @@ Portal admin Microservice Onboarding
Click Button xpath=//button[@id='microservice-details-save-button']
#Table Column Should Contain xpath=//*[@table-data='serviceList'] 0 Test Microservice
Element Text Should Be xpath=//*[@table-data='serviceList'] Test Microservice
-
-
-
-Portal Admin Create Widget for All users
- [Documentation] Naviage to Create Widget menu tab
+
+Portal Admin Create Widget for All users
+ [Documentation] Navigate to Create Widget menu tab
${WidgetAttachment}= Catenate ${PORTAL_ASSETS_DIRECTORY}\\widget_news.zip
Click Link xpath=//a[@title='Widget Onboarding']
Click Button xpath=//button[@id='widget-onboarding-button-add']
@@ -401,92 +371,84 @@ Portal Admin Create Widget for All users
Click Element xpath=//*[@id='widgets-details-input-endpoint-url']
Scroll Element Into View xpath=//li[contains(.,'Test Microservice')]
Click Element xpath=//li[contains(.,'Test Microservice')]
- Click Element xpath=//*[contains(text(),'Allow all user access')]/preceding::input[@ng-model='widgetOnboardingDetails.widget.allUser'][1]
+ Click Element xpath=//*[contains(text(),'Allow all user access')]/preceding::input[@ng-model='widgetOnboardingDetails.widget.allUser'][1]
Choose File xpath=//input[@id='widget-onboarding-details-upload-file'] ${WidgetAttachment}
Click Button xpath=//button[@id='widgets-details-save-button']
- Wait Until Page Contains ONAP-VID ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ Wait Until Page Contains ONAP-VID ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
Page Should Contain ONAP-VID
Set Selenium Implicit Wait 3000
GO TO ${PORTAL_HOME_PAGE}
-
-
-Portal Admin Delete Widget for All users
- [Documentation] Naviage to delete Widget menu tab
- #Wait Until Page Contains ONAP-VID ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
- #Page Should Contain ONAP-VID
- #Click Image xpath=//img[@alt='Onap Logo']
- Click Link xpath=//a[@title='Widget Onboarding']
- Click Element xpath=//input[@id='dropdown1']
+
+Portal Admin Delete Widget for All users
+ [Documentation] Navigate to delete Widget menu tab
+ #Wait Until Page Contains ONAP-VID ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ #Page Should Contain ONAP-VID
+ #Click Image xpath=//img[@alt='Onap Logo']
+ Click Link xpath=//a[@title='Widget Onboarding']
+ Click Element xpath=//input[@id='dropdown1']
Click Element xpath=//li[contains(.,'Virtual Infrastructure Deployment')]
- #Wait Until Page Contains xpath=(.//*[contains(text(),'ONAP-VID')]/followi
- #Wait Until Page Contains xpath=(.//*[contains(text(),'ONAP-VID')]/following::*[@ng-click='widgetOnboarding.deleteWidget(rowData)'])[1] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
- Click Element xpath=(.//*[contains(text(),'ONAP-VID')]/following::*[@ng-click='widgetOnboarding.deleteWidget(rowData)'])[1]
- Click Element xpath=//button[@id='div-confirm-ok-button']
- Set Selenium Implicit Wait 3000
- Element Should Not Contain xpath=//*[@table-data='portalAdmin.portalAdminsTableData'] ONAP-VID
- #Is Element Visible xpath=//*[@table-data='portalAdmin.portalAdminsTableData']
- #Table Column Should Contain .//*[@table-data='portalAdmin.portalAdminsTableData'] 0 ONAP-VID
- #Set Selenium Implicit Wait 3000
-
-
-Portal Admin Create Widget for Application Roles
- [Documentation] Naviage to Create Widget menu tab
- ${WidgetAttachment}= Catenate ${PORTAL_ASSETS_DIRECTORY}\\widget_news.zip
- Click Link xpath=//a[@title='Widget Onboarding']
- Click Button xpath=//button[@id='widget-onboarding-button-add']
- Input Text xpath=//*[@name='name'] ONAP-VID
- Input Text xpath=//*[@name='desc'] ONAP VID
- Click Element xpath=//*[@id='widgets-details-input-endpoint-url']
- Scroll Element Into View xpath=//li[contains(.,'Test Microservice')]
- Click Element xpath=//li[contains(.,'Test Microservice')]
- Click element xpath=//*[@id="app-select-Select Applications"]
- click element xpath=//*[@id="Virtual-Infrastructure-Deployment-checkbox"]
- Click element xpath=//*[@name='desc']
- click element xpath=//*[@id="app-select-Select Roles"]
- click element xpath=//*[@id="Standard-User-checkbox"]
- Click element xpath=//*[@name='desc']
- Scroll Element Into View xpath=//input[@id='widget-onboarding-details-upload-file']
- Choose File xpath=//input[@id='widget-onboarding-details-upload-file'] ${WidgetAttachment}
- Click Button xpath=//button[@id='widgets-details-save-button']
+ #Wait Until Page Contains xpath=(.//*[contains(text(),'ONAP-VID')]/following::*[@ng-click='widgetOnboarding.deleteWidget(rowData)'])[1] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ Click Element xpath=(.//*[contains(text(),'ONAP-VID')]/following::*[@ng-click='widgetOnboarding.deleteWidget(rowData)'])[1]
+ Click Element xpath=//button[@id='div-confirm-ok-button']
+ Set Selenium Implicit Wait 3000
+ Element Should Not Contain xpath=//*[@table-data='portalAdmin.portalAdminsTableData'] ONAP-VID
+ #Is Element Visible xpath=//*[@table-data='portalAdmin.portalAdminsTableData']
+ #Table Column Should Contain .//*[@table-data='portalAdmin.portalAdminsTableData'] 0 ONAP-VID
+ #Set Selenium Implicit Wait 3000
+
+Portal Admin Create Widget for Application Roles
+ [Documentation] Navigate to Create Widget menu tab
+ ${WidgetAttachment}= Catenate ${PORTAL_ASSETS_DIRECTORY}\\widget_news.zip
+ Click Link xpath=//a[@title='Widget Onboarding']
+ Click Button xpath=//button[@id='widget-onboarding-button-add']
+ Input Text xpath=//*[@name='name'] ONAP-VID
+ Input Text xpath=//*[@name='desc'] ONAP VID
+ Click Element xpath=//*[@id='widgets-details-input-endpoint-url']
+ Scroll Element Into View xpath=//li[contains(.,'Test Microservice')]
+ Click Element xpath=//li[contains(.,'Test Microservice')]
+ Click Element xpath=//*[@id="app-select-Select Applications"]
+ Click Element xpath=//*[@id="Virtual-Infrastructure-Deployment-checkbox"]
+ Click Element xpath=//*[@name='desc']
+ Click Element xpath=//*[@id="app-select-Select Roles"]
+ Click Element xpath=//*[@id="Standard-User-checkbox"]
+ Click Element xpath=//*[@name='desc']
+ Scroll Element Into View xpath=//input[@id='widget-onboarding-details-upload-file']
+ Choose File xpath=//input[@id='widget-onboarding-details-upload-file'] ${WidgetAttachment}
+ Click Button xpath=//button[@id='widgets-details-save-button']
Click Image xpath=//img[@alt='Onap Logo']
Set Selenium Implicit Wait 3000
- #Wait Until Page Contains ONAP-VID ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
- Click Link xpath=//a[@title='Widget Onboarding']
+ #Wait Until Page Contains ONAP-VID ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ Click Link xpath=//a[@title='Widget Onboarding']
Click Element xpath=//input[@id='dropdown1']
Click Element xpath=//li[contains(.,'Virtual Infrastructure Deployment')]
- Page Should Contain ONAP-VID
- Set Selenium Implicit Wait 3000
+ Page Should Contain ONAP-VID
+ Set Selenium Implicit Wait 3000
GO TO ${PORTAL_HOME_PAGE}
-
-
-
-
- Portal Admin Delete Widget for Application Roles
- [Documentation] Naviage to delete Widget menu tab
- #Wait Until Page Contains ONAP-VID ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
- #Page Should Contain ONAP-VID
- #Click Image xpath=//img[@alt='Onap Logo']
- Click Link xpath=//a[@title='Widget Onboarding']
- Click Element xpath=//input[@id='dropdown1']
- Click Element xpath=//li[contains(.,'Virtual Infrastructure Deployment')]
- #Wait Until Page Contains xpath=(.//*[contains(text(),'ONAP-VID')]/following::*[@ng-click='widgetOnboarding.deleteWidget(rowData)'])[1] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
- Click Element xpath=(.//*[contains(text(),'ONAP-VID')]/following::*[@ng-click='widgetOnboarding.deleteWidget(rowData)'])[1]
- Click Element xpath=//button[@id='div-confirm-ok-button']
- Set Selenium Implicit Wait 3000
- Element Should Not Contain xpath=//*[@table-data='portalAdmin.portalAdminsTableData'] ONAP-VID
- #Is Element Visible xpath=//*[@table-data='portalAdmin.portalAdminsTableData']
- #Table Column Should Contain .//*[@table-data='portalAdmin.portalAdminsTableData'] 0 ONAP-VID
- #Set Selenium Implicit Wait 3000
-
-
-
+
+Portal Admin Delete Widget for Application Roles
+ [Documentation] Navigate to delete Widget menu tab
+ #Wait Until Page Contains ONAP-VID ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ #Page Should Contain ONAP-VID
+ #Click Image xpath=//img[@alt='Onap Logo']
+ Click Link xpath=//a[@title='Widget Onboarding']
+ Click Element xpath=//input[@id='dropdown1']
+ Click Element xpath=//li[contains(.,'Virtual Infrastructure Deployment')]
+ #Wait Until Page Contains xpath=(.//*[contains(text(),'ONAP-VID')]/following::*[@ng-click='widgetOnboarding.deleteWidget(rowData)'])[1] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ Click Element xpath=(.//*[contains(text(),'ONAP-VID')]/following::*[@ng-click='widgetOnboarding.deleteWidget(rowData)'])[1]
+ Click Element xpath=//button[@id='div-confirm-ok-button']
+ Set Selenium Implicit Wait 3000
+ Element Should Not Contain xpath=//*[@table-data='portalAdmin.portalAdminsTableData'] ONAP-VID
+ #Is Element Visible xpath=//*[@table-data='portalAdmin.portalAdminsTableData']
+ #Table Column Should Contain .//*[@table-data='portalAdmin.portalAdminsTableData'] 0 ONAP-VID
+ #Set Selenium Implicit Wait 3000
+
Portal Admin Edit Widget
- [Documentation] Naviage to Home tab
+ [Documentation] Navigate to Home tab
#Mouse Over xpath=(//h3[contains(text(),'News')]/following::span[1])[1]
Click Element xpath=(//h3[contains(text(),'News')]/following::span[1])[1]
Set Browser Implicit Wait 8000
#Wait Until Element Is Visible xpath=(//h3[contains(text(),'News')]/following::span[1]/following::a[contains(text(),'Edit')])[1] 60
- Mouse Over xpath=(//h3[contains(text(),'News')]/following::span[1]/following::a[contains(text(),'Edit')])[1]
+ Mouse Over xpath=(//h3[contains(text(),'News')]/following::span[1]/following::a[contains(text(),'Edit')])[1]
Click Link xpath=(//h3[contains(text(),'News')]/following::span[1]/following::a[contains(text(),'Edit')])[1]
Input Text xpath=//input[@name='title'] ONAP_VID
Input Text xpath=//input[@name='url'] http://about.att.com/news/international.html
@@ -498,71 +460,65 @@ Portal Admin Edit Widget
Click Element xpath=//div[@id='confirmation-button-next']
Element Should Not Contain xpath=//*[@table-data='ignoredTableData'] ONAP_VID
Click Link xpath=//a[@id='close-button']
-
-
-
-
-Portal Admin Broadcast Notifications
- [Documentation] Portal Test Admin Broadcast Notifications
- ${CurrentDay}= Get Current Date result_format=%m/%d/%Y
- ${NextDay}= Get Current Date increment=24:00:00 result_format=%m/%d/%Y
+
+Portal Admin Broadcast Notifications
+ [Documentation] Portal Test Admin Broadcast Notifications
+ ${CurrentDay}= Get Current Date result_format=%m/%d/%Y
+ ${NextDay}= Get Current Date increment=24:00:00 result_format=%m/%d/%Y
${CurrentDate}= Get Current Date result_format=%m%d%y%H%M
- ${AdminBroadCastMsg}= catenate ONAP VID Broadcast Automation${CurrentDate}
+ ${AdminBroadCastMsg}= catenate ONAP VID Broadcast Automation${CurrentDate}
Click Image xpath=//img[@alt='Onap Logo']
Set Selenium Implicit Wait 3000
- Click Link xpath=//*[@id="parent-item-User-Notifications"]
- Wait until Element is visible xpath=//*[@id="button-openAddNewApp"] timeout=10
- Click button xpath=//*[@id="button-openAddNewApp"]
- Input Text xpath=//input[@id='datepicker-start'] ${CurrentDay}
- Input Text xpath=//input[@id='datepicker-end'] ${NextDay}
- Input Text xpath=//*[@id="add-notification-input-title"] ONAP VID Broadcast Automation
- Input Text xpath=//*[@id="user-notif-input-message"] ${AdminBroadCastMsg}
- click element xpath=//*[@id="button-notification-save"]
- Wait until Element is visible xpath=//*[@id="button-openAddNewApp"] timeout=10
- click element xpath=//*[@id="megamenu-notification-button"]
- click element xpath=//*[@id="notification-history-link"]
- Wait until Element is visible xpath=//*[@id="notification-history-table"] timeout=10
- Table Column Should Contain xpath=//*[@id="notification-history-table"] 2 ${AdminBroadCastMsg}
- log ${AdminBroadCastMsg}
+ Click Link xpath=//*[@id="parent-item-User-Notifications"]
+ Wait Until Element Is Visible xpath=//*[@id="button-openAddNewApp"] timeout=10
+ Click button xpath=//*[@id="button-openAddNewApp"]
+ Input Text xpath=//input[@id='datepicker-start'] ${CurrentDay}
+ Input Text xpath=//input[@id='datepicker-end'] ${NextDay}
+ Input Text xpath=//*[@id="add-notification-input-title"] ONAP VID Broadcast Automation
+ Input Text xpath=//*[@id="user-notif-input-message"] ${AdminBroadCastMsg}
+ Click Element xpath=//*[@id="button-notification-save"]
+ Wait Until Element Is Visible xpath=//*[@id="button-openAddNewApp"] timeout=10
+ Click Element xpath=//*[@id="megamenu-notification-button"]
+ Click Element xpath=//*[@id="notification-history-link"]
+ Wait Until Element Is Visible xpath=//*[@id="notification-history-table"] timeout=10
+ Table Column Should Contain xpath=//*[@id="notification-history-table"] 2 ${AdminBroadCastMsg}
+ Log ${AdminBroadCastMsg}
[Return] ${AdminBroadCastMsg}
-
-Portal Admin Category Notifications
- [Documentation] Portal Admin Broadcast Notifications
- ${CurrentDay}= Get Current Date result_format=%m/%d/%Y
- ${NextDay}= Get Current Date increment=24:00:00 result_format=%m/%d/%Y
+
+Portal Admin Category Notifications
+ [Documentation] Portal Admin Broadcast Notifications
+ ${CurrentDay}= Get Current Date result_format=%m/%d/%Y
+ ${NextDay}= Get Current Date increment=24:00:00 result_format=%m/%d/%Y
${CurrentDate}= Get Current Date result_format=%m%d%y%H%M
- ${AdminCategoryMsg}= catenate ONAP VID Category Automation${CurrentDate}
- Click Link xpath=//a[@id='parent-item-Home']
- Click Link xpath=//*[@id="parent-item-User-Notifications"]
- Wait until Element is visible xpath=//*[@id="button-openAddNewApp"] timeout=10
+ ${AdminCategoryMsg}= catenate ONAP VID Category Automation${CurrentDate}
+ Click Link xpath=//a[@id='parent-item-Home']
+ Click Link xpath=//*[@id="parent-item-User-Notifications"]
+ Wait Until Element Is Visible xpath=//*[@id="button-openAddNewApp"] timeout=10
Click button xpath=//*[@id="button-openAddNewApp"]
#Select Radio Button NO radio-button-no
Click Element //*[contains(text(),'Broadcast to All Categories')]/following::*[contains(text(),'No')][1]
#Select Radio Button //label[@class='radio'] radio-button-approles
Click Element xpath=//*[contains(text(),'Categories')]/following::*[contains(text(),'Application Roles')][1]
- Click Element xpath=//*[contains(text(),'Virtual Infrastructure Deployment')]/preceding::input[@ng-model='member.isSelected'][1]
- Input Text xpath=//input[@id='datepicker-start'] ${CurrentDay}
- Input Text xpath=//input[@id='datepicker-end'] ${NextDay}
- Input Text xpath=//*[@id="add-notification-input-title"] ONAP VID Category Automation
- Input Text xpath=//*[@id='user-notif-input-message'] ${AdminCategoryMsg}
- click element xpath=//*[@id="button-notification-save"]
- Wait until Element is visible xpath=//*[@id="button-openAddNewApp"] timeout=10
- click element xpath=//*[@id="megamenu-notification-button"]
- click element xpath=//*[@id="notification-history-link"]
- Wait until Element is visible xpath=//*[@id="notification-history-table"] timeout=10
- Table Column Should Contain xpath=//*[@id="notification-history-table"] 2 ${AdminCategoryMsg}
- log ${AdminCategoryMsg}
- [Return] ${AdminCategoryMsg}
-
-
- Portal admin Logout from Portal GUI
+ Click Element xpath=//*[contains(text(),'Virtual Infrastructure Deployment')]/preceding::input[@ng-model='member.isSelected'][1]
+ Input Text xpath=//input[@id='datepicker-start'] ${CurrentDay}
+ Input Text xpath=//input[@id='datepicker-end'] ${NextDay}
+ Input Text xpath=//*[@id="add-notification-input-title"] ONAP VID Category Automation
+ Input Text xpath=//*[@id='user-notif-input-message'] ${AdminCategoryMsg}
+ Click Element xpath=//*[@id="button-notification-save"]
+ Wait Until Element Is Visible xpath=//*[@id="button-openAddNewApp"] timeout=10
+ Click Element xpath=//*[@id="megamenu-notification-button"]
+ Click Element xpath=//*[@id="notification-history-link"]
+ Wait Until Element Is Visible xpath=//*[@id="notification-history-table"] timeout=10
+ Table Column Should Contain xpath=//*[@id="notification-history-table"] 2 ${AdminCategoryMsg}
+ Log ${AdminCategoryMsg}
+ [Return] ${AdminCategoryMsg}
+
+Portal admin Logout from Portal GUI
[Documentation] Logout from Portal GUI
Click Element xpath=//div[@id='header-user-icon']
Click Button xpath=//button[contains(.,'Log out')]
Title Should Be Login
-
-
-
+
Application admin Login To Portal GUI
[Documentation] Logs into Portal GUI
# Setup Browser Now being managed by test case
@@ -577,93 +533,86 @@ Application admin Login To Portal GUI
Input Text xpath=//input[@ng-model='loginId'] ${GLOBAL_APP_ADMIN_USER}
Input Password xpath=//input[@ng-model='password'] ${GLOBAL_APP_ADMIN_PWD}
Click Link xpath=//a[@id='loginBtn']
- Wait Until Page Contains Element xpath=//img[@alt='Onap Logo'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
- Log Logged in to ${GLOBAL_PORTAL_SERVER}${PORTAL_ENV}
-
-Application Admin Navigation Application Link Tab
+ Wait Until Page Contains Element xpath=//img[@alt='Onap Logo'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ Log Logged in to ${GLOBAL_PORTAL_SERVER}${PORTAL_ENV}
+
+Application Admin Navigation Application Link Tab
[Documentation] Logs into Portal GUI as application admin
Click Link xpath=//a[@id='parent-item-Home']
Click Element xpath=.//h3[contains(text(),'Virtual Infras...')]/following::div[1]
Page Should Contain Welcome to VID
- Click Element xpath=//i[@class='ion-close-round']
+ Click Element xpath=//i[@class='ion-close-round']
Click Element xpath=(.//span[@id='tab-Home'])[1]
-
-
-Application Admin Navigation Functional Menu
+
+Application Admin Navigation Functional Menu
[Documentation] Logs into Portal GUI as application admin
Click Link xpath=//a[contains(.,'Manage')]
- Mouse Over xpath=//*[contains(text(),'Technology Insertion')]
- Click Link xpath= //*[contains(text(),'Infrastructure VNF Provisioning')]
- Page Should Contain Welcome to VID
- Click Element xpath=//i[@class='ion-close-round']
- Click Element xpath=(.//span[@id='tab-Home'])[1]
-
-
-Application admin Add Standard User Existing user
- [Documentation] Naviage to Users tab
- Click Link xpath=//a[@title='Users']
- Page Should Contain Users
- Click Button xpath=//button[@ng-click='users.openAddNewUserModal()']
- Input Text xpath=//input[@id='input-user-search'] ${Existing_User}
- Click Button xpath=//button[@id='button-search-users']
- Click Element xpath=//span[@id='result-uuid-0']
- Click Button xpath=//button[@id='next-button']
- Click Element xpath=//*[@id='div-app-name-dropdown-Virtual-Infrastructure-Deployment']
- Click Element xpath=//*[@id='div-app-name-Virtual-Infrastructure-Deployment']/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
- #Set Browser Implicit Wait ${GLOBAL_SELENIUM_BROWSER_IMPLICIT_WAIT}
- #Select From List xpath=//input[@value='Select application'] Virtual Infrastructure Deployment
- #Click Link xpath=//a[@title='Users']
- #Page Should Contain Users
- Go To ${PORTAL_HOME_PAGE}
- Set Selenium Implicit Wait 3000
- Click Link xpath=//a[@title='Users']
- Click Element xpath=//input[@id='dropdown1']
- Click Element xpath=//li[contains(.,'Virtual Infrastructure Deployment')]
- Input Text xpath=//input[@id='input-table-search'] ${Existing_User}
- Element Text Should Be xpath=(.//*[@id='rowheader_t1_0'])[2] Standard User
-
-
-Application admin Edit Standard User Existing user
- [Documentation] Naviage to Users tab
- Click Element xpath=(.//*[@id='rowheader_t1_0'])[2]
- Click Element xpath=//*[@id='div-app-name-dropdown-Virtual-Infrastructure-Deployment']
- Click Element xpath=//*[@id='div-app-name-Virtual-Infrastructure-Deployment']/following::input[@id='Standard-User-checkbox']
- Click Element xpath=//*[@id='div-app-name-Virtual-Infrastructure-Deployment']/following::input[@id='System-Administrator-checkbox']
- Set Selenium Implicit Wait 3000
- Click Button xpath=//button[@id='new-user-save-button']
- Set Selenium Implicit Wait 3000
- Page Should Contain Users
- #Click Button xpath=//input[@id='dropdown1']
- #Click Element xpath=//li[contains(.,'Virtual Infrastructure Deployment')]
- Input Text xpath=//input[@id='input-table-search'] ${Existing_User}
- Element Text Should Be xpath=(.//*[@id='rowheader_t1_0'])[2] System Administrator
-
-
-Application admin Delete Standard User Existing user
- [Documentation] Naviage to Users tab
- Click Element xpath=(.//*[@id='rowheader_t1_0'])[2]
- Scroll Element Into View xpath=//*[@id='div-app-name-Virtual-Infrastructure-Deployment']/following::*[@id='app-item-delete'][1]
- Click Element xpath=//*[@id='div-app-name-Virtual-Infrastructure-Deployment']/following::*[@id='app-item-delete'][1]
- Click Element xpath=//button[@id='div-confirm-ok-button']
- Click Button xpath=//button[@id='new-user-save-button']
- #Input Text xpath=//input[@id='input-table-search'] ${Existing_User}
- #Is Element Visible xpath=(//*[contains(.,'Portal')] )[2]
- Element Should Not Contain xpath=//*[@table-data='users.accountUsers'] Portal
-
-
-
+ Mouse Over xpath=//*[contains(text(),'Technology Insertion')]
+ Click Link xpath= //*[contains(text(),'Infrastructure VNF Provisioning')]
+ Page Should Contain Welcome to VID
+ Click Element xpath=//i[@class='ion-close-round']
+ Click Element xpath=(.//span[@id='tab-Home'])[1]
+
+Application admin Add Standard User Existing user
+ [Documentation] Navigate to Users tab
+ Click Link xpath=//a[@title='Users']
+ Page Should Contain Users
+ Click Button xpath=//button[@ng-click='users.openAddNewUserModal()']
+ Input Text xpath=//input[@id='input-user-search'] ${Existing_User}
+ Click Button xpath=//button[@id='button-search-users']
+ Click Element xpath=//span[@id='result-uuid-0']
+ Click Button xpath=//button[@id='next-button']
+ Click Element xpath=//*[@id='div-app-name-dropdown-Virtual-Infrastructure-Deployment']
+ Click Element xpath=//*[@id='div-app-name-Virtual-Infrastructure-Deployment']/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
+ #Set Browser Implicit Wait ${GLOBAL_SELENIUM_BROWSER_IMPLICIT_WAIT}
+ #Select From List xpath=//input[@value='Select application'] Virtual Infrastructure Deployment
+ #Click Link xpath=//a[@title='Users']
+ #Page Should Contain Users
+ Go To ${PORTAL_HOME_PAGE}
+ Set Selenium Implicit Wait 3000
+ Click Link xpath=//a[@title='Users']
+ Click Element xpath=//input[@id='dropdown1']
+ Click Element xpath=//li[contains(.,'Virtual Infrastructure Deployment')]
+ Input Text xpath=//input[@id='input-table-search'] ${Existing_User}
+ Element Text Should Be xpath=(.//*[@id='rowheader_t1_0'])[2] Standard User
+
+Application admin Edit Standard User Existing user
+ [Documentation] Navigate to Users tab
+ Click Element xpath=(.//*[@id='rowheader_t1_0'])[2]
+ Click Element xpath=//*[@id='div-app-name-dropdown-Virtual-Infrastructure-Deployment']
+ Click Element xpath=//*[@id='div-app-name-Virtual-Infrastructure-Deployment']/following::input[@id='Standard-User-checkbox']
+ Click Element xpath=//*[@id='div-app-name-Virtual-Infrastructure-Deployment']/following::input[@id='System-Administrator-checkbox']
+ Set Selenium Implicit Wait 3000
+ Click Button xpath=//button[@id='new-user-save-button']
+ Set Selenium Implicit Wait 3000
+ Page Should Contain Users
+ #Click Button xpath=//input[@id='dropdown1']
+ #Click Element xpath=//li[contains(.,'Virtual Infrastructure Deployment')]
+ Input Text xpath=//input[@id='input-table-search'] ${Existing_User}
+ Element Text Should Be xpath=(.//*[@id='rowheader_t1_0'])[2] System Administrator
+
+Application admin Delete Standard User Existing user
+ [Documentation] Navigate to Users tab
+ Click Element xpath=(.//*[@id='rowheader_t1_0'])[2]
+ Scroll Element Into View xpath=//*[@id='div-app-name-Virtual-Infrastructure-Deployment']/following::*[@id='app-item-delete'][1]
+ Click Element xpath=//*[@id='div-app-name-Virtual-Infrastructure-Deployment']/following::*[@id='app-item-delete'][1]
+ Click Element xpath=//button[@id='div-confirm-ok-button']
+ Click Button xpath=//button[@id='new-user-save-button']
+ #Input Text xpath=//input[@id='input-table-search'] ${Existing_User}
+ #Is Element Visible xpath=(//*[contains(.,'Portal')] )[2]
+ Element Should Not Contain xpath=//*[@table-data='users.accountUsers'] Portal
+
Application admin Logout from Portal GUI
[Documentation] Logout from Portal GUI
Click Element xpath=//div[@id='header-user-icon']
Click Button xpath=//button[contains(.,'Log out')]
- #Confirm Action
- Title Should Be Login
-
-
-Standared user Login To Portal GUI
+ #Confirm Action
+ Title Should Be Login
+
+Standard user Login To Portal GUI
[Documentation] Logs into Portal GUI
# Setup Browser Now being managed by test case
##Setup Browser
@@ -677,65 +626,49 @@ Standared user Login To Portal GUI
Input Text xpath=//input[@ng-model='loginId'] ${GLOBAL_STA_USER_USER}
Input Password xpath=//input[@ng-model='password'] ${GLOBAL_STA_USER_PWD}
Click Link xpath=//a[@id='loginBtn']
- Wait Until Page Contains Element xpath=//img[@alt='Onap Logo'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
- Log Logged in to ${GLOBAL_PORTAL_SERVER}${PORTAL_ENV}
-
-
-Standared user Navigation Application Link Tab
+ Wait Until Page Contains Element xpath=//img[@alt='Onap Logo'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ Log Logged in to ${GLOBAL_PORTAL_SERVER}${PORTAL_ENV}
+
+Standard user Navigation Application Link Tab
[Documentation] Logs into Portal GUI as application admin
#Portal admin Go To Portal HOME
Click Element xpath=.//h3[contains(text(),'Virtual Infras...')]/following::div[1]
- Page Should Contain Welcome to VID
+ Page Should Contain Welcome to VID
Click Element xpath=(.//span[@id='tab-Home'])[1]
-
-
-Standared user Navigation Functional Menu
+
+Standard user Navigation Functional Menu
[Documentation] Logs into Portal GUI as application admin
Click Link xpath=//a[contains(.,'Manage')]
- Mouse Over xpath=//*[contains(text(),'Technology Insertion')]
- Click Link xpath= //*[contains(text(),'Infrastructure VNF Provisioning')]
- Page Should Contain Welcome to VID
- Click Element xpath=(.//span[@id='tab-Home'])[1]
-
-
-
-Standared user Broadcast Notifications
- [Documentation] Logs into Portal GUI as application admin
+ Mouse Over xpath=//*[contains(text(),'Technology Insertion')]
+ Click Link xpath= //*[contains(text(),'Infrastructure VNF Provisioning')]
+ Page Should Contain Welcome to VID
+ Click Element xpath=(.//span[@id='tab-Home'])[1]
+
+Standard user Broadcast Notifications
+ [Documentation] Logs into Portal GUI as application admin
[Arguments] ${AdminBroadCastMsg}
- Click element xpath=//*[@id='megamenu-notification-button']
- Click element xpath=//*[@id='notification-history-link']
- Wait until Element is visible xpath=//*[@id='app-title'] timeout=10
- Table Column Should Contain xpath=//*[@id='notification-history-table'] 2 ${AdminBroadCastMsg}
- log ${AdminBroadCastMsg}
-
-
-Standared user Category Notifications
- [Documentation] Logs into Portal GUI as application admin
+ Click Element xpath=//*[@id='megamenu-notification-button']
+ Click Element xpath=//*[@id='notification-history-link']
+ Wait Until Element Is Visible xpath=//*[@id='app-title'] timeout=10
+ Table Column Should Contain xpath=//*[@id='notification-history-table'] 2 ${AdminBroadCastMsg}
+ Log ${AdminBroadCastMsg}
+
+Standard user Category Notifications
+ [Documentation] Logs into Portal GUI as application admin
[Arguments] ${AdminCategoryMsg}
- #click element xpath=//*[@id='megamenu-notification-button']
- #click element xpath=//*[@id="notification-history-link"]
- Wait until Element is visible xpath=//*[@id='app-title'] timeout=10
- Table Column Should Contain xpath=//*[@id='notification-history-table'] 2 ${AdminCategoryMsg}
- log ${AdminCategoryMsg}
-
-
-Standared user Logout from Portal GUI
+ #Click Element xpath=//*[@id='megamenu-notification-button']
+ #Click Element xpath=//*[@id="notification-history-link"]
+ Wait Until Element Is Visible xpath=//*[@id='app-title'] timeout=10
+ Table Column Should Contain xpath=//*[@id='notification-history-table'] 2 ${AdminCategoryMsg}
+ Log ${AdminCategoryMsg}
+
+Standard user Logout from Portal GUI
[Documentation] Logout from Portal GUI
Click Element xpath=//div[@id='header-user-icon']
Click Button xpath=//button[contains(.,'Log out')]
- #Confirm Action
- Title Should Be Login
-
-
-
-
-Tear Down
+ #Confirm Action
+ Title Should Be Login
+
+Tear Down
[Documentation] Close all browsers
Close All Browsers
-
-
-
-
-
-
-
diff --git a/tests/portal/testsuites/test1.robot b/tests/portal/testsuites/test1.robot
index 93316548..c45ef52f 100644
--- a/tests/portal/testsuites/test1.robot
+++ b/tests/portal/testsuites/test1.robot
@@ -1,38 +1,38 @@
*** Settings ***
-Documentation This is RobotFrame work script
-Library ExtendedSelenium2Library
-Library OperatingSystem
-Library RequestsLibrary
-Library ONAPLibrary.Utilities
-Library ONAPLibrary.Templating
-Library DateTime
-Library Collections
-Library String
-Library XvfbRobot
+Documentation CSIT cases for basic ONAP functionalities
+Library ExtendedSelenium2Library
+Library OperatingSystem
+Library RequestsLibrary
+Library ONAPLibrary.Utilities
+Library ONAPLibrary.Templating
+Library DateTime
+Library Collections
+Library String
+Library XvfbRobot
*** Variables ***
-${PORTAL_URL} http://portal.api.simpledemo.onap.org:8989
+${PORTAL_URL} http://portal.api.simpledemo.onap.org:8989
${PORTAL_ENV} /ONAPPORTAL
${PORTAL_LOGIN_URL} ${PORTAL_URL}${PORTAL_ENV}/login.htm
${PORTAL_HOME_PAGE} ${PORTAL_URL}${PORTAL_ENV}/applicationsHome
${PORTAL_MICRO_ENDPOINT} ${PORTAL_URL}${PORTAL_ENV}/commonWidgets
${PORTAL_HOME_URL} ${PORTAL_URL}${PORTAL_ENV}/applicationsHome
-${App_First_Name} demoapp
+${App_First_Name} demoapp
${App_Last_Name} demo
${App_Email_Address} demoapp@onap.com
-${App_LoginID} demoapp
+${App_LoginID} demoapp
${App_Loginpwd} demo123456!
${App_LoginPwdCheck} demo123456!
-${Sta_First_Name} demosta
+${Sta_First_Name} demosta
${Sta_Last_Name} demo
${Sta_Email_Address} demosta@onap.com
${Sta_LoginID} demosta
${Sta_Loginpwd} demo123456!
${Sta_LoginPwdCheck} demo123456!
-${Test_First_Name} portal
+${Test_First_Name} portal
${Test_Last_Name} demo
${Test_Email_Address} portal@onap.com
-${Test_LoginID} portal
+${Test_LoginID} portal
${Test_Loginpwd} demo123456!
${Test_LoginPwdCheck} demo123456!
${Existing_User} portal
@@ -40,8 +40,8 @@ ${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
-${GLOBAL_PORTAL_ADMIN_PWD} demo123456!
+${GLOBAL_PORTAL_ADMIN_USER} demo
+${GLOBAL_PORTAL_ADMIN_PWD} demo123456!
${AppAccountName} testApp
${AppUserName} testApp
${AppPassword} testApp123!
@@ -69,155 +69,155 @@ ${download_link_id} 0
*** Test Cases ***
-Portal Health Check
+Portal Health Check
Run Portal Health Check
-
-#Login into Portal URL
-# Portal admin Login To Portal GUI
-
+
+#Login into Portal URL
+# Portal admin Login To Portal GUI
+
## Portal R1 Release
# # [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
+# [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
-
-###Delete Microse service
-# ##Portal admin Microservice Delete
-
+# [Documentation] ONAP Portal R1 functionality for AAF test
+# Portal AAF new fields
+
+#Create Microservice onboarding
+# Portal admin Microservice Onboarding
+
+###Delete Microservice
+# ##Portal admin Microservice Delete
+
#Create Widget for all users
-# Portal Admin Create Widget for All users
+# Portal Admin Create Widget for All users
#Delete Widget for all users
-# Portal Admin Delete Widget for All users
-
+# Portal Admin Delete Widget for All users
+
#Create Widget for Application Roles
-# Portal Admin Create Widget for Application Roles
-
+# Portal Admin Create Widget for Application Roles
+
##Delete Widget for Application Roles
-# #Portal Admin Delete Widget for Application Roles
+# #Portal Admin Delete Widget for Application Roles
##EP Admin widget download
-# #Admin widget download
-
+# #Admin widget download
+
#EP Admin widget layout reset
-# Reset widget layout option
-
-#Validate Functional Top Menu Get Access
-# Functional Top Menu Get Access
-
-#Validate Functional Top Menu Contact Us
-# Functional Top Menu Contact Us
-
-#Edit Functional Menu
-# Portal admin Edit Functional menu
-
-#Broadbond Notification functionality
-# ${AdminBroadCastMsg}= Portal Admin Broadcast Notifications
-# set global variable ${AdminBroadCastMsg}
-
-#Category Notification functionality
-# ${AdminCategoryMsg}= Portal Admin Category Notifications
-# set global variable ${AdminCategoryMsg}
-
+# Reset widget layout option
+
+#Validate Functional Top Menu Get Access
+# Functional Top Menu Get Access
+
+#Validate Functional Top Menu Contact Us
+# Functional Top Menu Contact Us
+
+#Edit Functional Menu
+# Portal admin Edit Functional menu
+
+#Broadcast Notification functionality
+# ${AdminBroadCastMsg}= Portal Admin Broadcast Notifications
+# set global variable ${AdminBroadCastMsg}
+
+#Category Notification functionality
+# ${AdminCategoryMsg}= Portal Admin Category Notifications
+# set global variable ${AdminCategoryMsg}
+
#Create a Test user for Application Admin -Test
-# Portal admin Add Application admin User New user -Test
-
-#Create a Test User for Apllication Admin
-# Portal admin Add Application admin User New user
-
-#Add Application Admin for Existing User Test user
-# Portal admin Add Application Admin Exiting User -APPDEMO
-
-#Create a Test user for Standared User
-# Portal admin Add Standard User New user
-
-#Add Application Admin for Exisitng User
-# Portal admin Add Application Admin Exiting 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
-
+# Portal admin Add Application admin User New user -Test
+
+#Create a Test User for Application Admin
+# Portal admin Add Application admin User New user
+
+#Add Application Admin for Existing User Test user
+# Portal admin Add Application Admin Existing User -APPDEMO
+
+#Create a Test user for Standard User
+# Portal admin Add Standard User New user
+
+#Add Application Admin for Existing User
+# Portal admin Add Application Admin Existing 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
+
#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
+# Portal admin Edit 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
-
+# #Portal admin Add New Account
+
##Delete Account new account from App Account Management
-# #Portal admin Delete Account
+# #Portal admin Delete Account
##EP Create Portal Admin
-# #Add Portal Admin
+# #Add Portal Admin
##EP Portal Admin delete
-# #Delete Portal Admin
-
+# #Delete Portal Admin
+
#Logout from Portal GUI as Portal Admin
# Portal admin Logout from Portal GUI
-## Application Admin user Test cases
-
-#Login To Portal GUI as APP Admin
-# Application admin Login To Portal GUI
-
-##Navigate Functional Link as APP Admin
- ##Application Admin Navigation Functional Menu
-
+## Application Admin user Test cases
+
+#Login To Portal GUI as APP Admin
+# Application admin Login To Portal GUI
+
+##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
-
+# Application admin Add 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
-
-##Navigate Application Link as APP Admin
-# #Application Admin Navigation Application Link Tab
-
-#Logout from Portal GUI as APP Admin
-# Application admin Logout from Portal GUI
-
+# Application admin Edit 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
+
+#Logout from Portal GUI as APP Admin
+# Application admin Logout from Portal GUI
+
##Standard User Test cases
-
-#Login To Portal GUI as Standared User
-# Standared user Login To Portal GUI
-
-##Navigate Application Link as Standared User
-# #Standared user Navigation Application Link Tab
-
-##Navigate Functional Link as Standared User
-# #Standared user Navigation Functional Menu
-
-##Broadcast Notifications Standared user
-# #Standared user Broadcast Notifications ${AdminBroadCastMsg}
-
-##Category Notifications Standared user
-# #Standared user Category Notifications ${AdminCategoryMsg}
-
-#Logout from Portal GUI as Standared User
-# Standared User Logout from Portal GUI
-
-Teardown
- [Documentation] Close All Open browsers
- Close All Browsers
-
+
+#Login To Portal GUI as Standard User
+# Standard user Login To Portal GUI
+
+##Navigate Application Link as Standard User
+# #Standard user Navigation Application Link Tab
+
+##Navigate Functional Link as Standard User
+# #Standard user Navigation Functional Menu
+
+##Broadcast Notifications Standard user
+# #Standard user Broadcast Notifications ${AdminBroadCastMsg}
+
+##Category Notifications Standard user
+# #Standard user Category Notifications ${AdminCategoryMsg}
+
+#Logout from Portal GUI as Standard User
+# Standard User Logout from Portal GUI
+
+Teardown
+ [Documentation] Close All Open browsers
+ Close All Browsers
+
*** Keywords ***
Setup Browser
@@ -225,51 +225,48 @@ Setup Browser
# Run Keyword If '${GLOBAL_SELENIUM_BROWSER}' == 'firefox' Setup Browser Firefox
Run Keyword If '${GLOBAL_SELENIUM_BROWSER}' == 'chrome' Setup Browser Chrome
Log Running with ${GLOBAL_SELENIUM_BROWSER}
-
-
- Setup Browser Chrome
+
+Setup Browser Chrome
${chrome options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys
Call Method ${chrome options} add_argument no-sandbox
${dc} Evaluate sys.modules['selenium.webdriver'].DesiredCapabilities.CHROME sys, selenium.webdriver
Set To Dictionary ${dc} elementScrollBehavior 1
- Create Webdriver Chrome chrome_options=${chrome_options} desired_capabilities=${dc}
- Set Global Variable ${GLOBAL_SELENIUM_BROWSER_CAPABILITIES} ${dc}
+ Create Webdriver Chrome chrome_options=${chrome_options} desired_capabilities=${dc}
+ Set Global Variable ${GLOBAL_SELENIUM_BROWSER_CAPABILITIES} ${dc}
-Handle Proxy Warning
+Handle Proxy Warning
[Documentation] Handle Intermediate Warnings from Proxies
- ${status} ${data}= Run Keyword And Ignore Error Variable Should Exist \${GLOBAL_PROXY_WARNING_TITLE}
+ ${status} ${data}= Run Keyword And Ignore Error Variable Should Exist \${GLOBAL_PROXY_WARNING_TITLE}
Return From Keyword if '${status}' != 'PASS'
- ${status} ${data}= Run Keyword And Ignore Error Variable Should Exist \${GLOBAL_PROXY_WARNING_CONTINUE_XPATH}
+ ${status} ${data}= Run Keyword And Ignore Error Variable Should Exist \${GLOBAL_PROXY_WARNING_CONTINUE_XPATH}
Return From Keyword if '${status}' != 'PASS'
Return From Keyword if "${GLOBAL_PROXY_WARNING_TITLE}" == ''
Return From Keyword if "${GLOBAL_PROXY_WARNING_CONTINUE_XPATH}" == ''
${test} ${value}= Run keyword and ignore error Title Should Be ${GLOBAL_PROXY_WARNING_TITLE}
Run keyword If '${test}' == 'PASS' Click Element xpath=${GLOBAL_PROXY_WARNING_CONTINUE_XPATH}
-
Run Portal Health Check
[Documentation] Runs Portal Health check
- ${resp}= Run Portal Get Request ${PORTAL_HEALTH_CHECK_PATH}
- Should Be Equal As Strings ${resp.status_code} 200
- Should Be Equal As Strings ${resp.json()['statusCode']} 200
+ ${resp}= Run Portal Get Request ${PORTAL_HEALTH_CHECK_PATH}
+ Should Be Equal As Strings ${resp.status_code} 200
+ Should Be Equal As Strings ${resp.json()['statusCode']} 200
Run Portal Get Request
[Documentation] Runs Portal Get request
[Arguments] ${data_path}
- ${session}= Create Session portal ${PORTAL_URL}
+ ${session}= Create Session portal ${PORTAL_URL}
${uuid}= Generate UUID4
${headers}= Create Dictionary Accept=application/json Content-Type=application/json X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid} X-FromAppId=${GLOBAL_APPLICATION_ID}
- ${resp}= Get Request portal ${data_path} headers=${headers}
+ ${resp}= Get Request portal ${data_path} headers=${headers}
Log Received response from portal ${resp.text}
- [Return] ${resp}
-
+ [Return] ${resp}
Portal admin Login To Portal GUI
[Documentation] Logs into Portal GUI
## Setup Browser Now being managed by test case
# Setup Browser
- Start Virtual Display 1920 1080
- Open Browser ${PORTAL_LOGIN_URL} chrome
+ Start Virtual Display 1920 1080
+ Open Browser ${PORTAL_LOGIN_URL} chrome
# Go To ${PORTAL_LOGIN_URL}
Maximize Browser Window
Set Selenium Speed ${GLOBAL_SELENIUM_DELAY}
@@ -280,39 +277,39 @@ Portal admin Login To Portal GUI
Input Text xpath=//input[@ng-model='loginId'] ${GLOBAL_PORTAL_ADMIN_USER}
Input Password xpath=//input[@ng-model='password'] ${GLOBAL_PORTAL_ADMIN_PWD}
Click Link xpath=//a[@id='loginBtn']
- Wait Until Page Contains Element xpath=//img[@alt='Onap Logo'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
- #Execute Javascript document.getElementById('w-ecomp-footer').style.display = 'none'
- Log Logged in to ${PORTAL_URL}${PORTAL_ENV}
+ Wait Until Page Contains Element xpath=//img[@alt='Onap Logo'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ #Execute Javascript document.getElementById('w-ecomp-footer').style.display = 'none'
+ Log Logged in to ${PORTAL_URL}${PORTAL_ENV}
Portal admin Go To Portal HOME
- [Documentation] Naviage to Portal Home
+ [Documentation] Navigate to Portal Home
Go To ${PORTAL_HOME_URL}
Wait Until Page Contains Element xpath=//div[@class='applicationWindow'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
-
-Portal admin User Notifications
- [Documentation] Naviage to User notification tab
+
+Portal admin User Notifications
+ [Documentation] Navigate to User notification tab
Click Link xpath=//a[@id='parent-item-User-Notifications']
Wait Until Element Is Visible xpath=//h1[@class='heading-page'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
Click Button xpath=//button[@id='button-openAddNewApp']
Click Button xpath=(//button[@id='undefined'])[1]
- #Click Button xpath=//input[@id='datepicker-start']
-
-Portal admin Add Application Admin Exiting User
- [Documentation] Naviage to Admins tab
+ #Click Button xpath=//input[@id='datepicker-start']
+
+Portal admin Add Application Admin Existing User
+ [Documentation] Navigate to Admins tab
Wait Until Element Is Visible xpath=//a[@title='Admins'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
Click Link xpath=//a[@title='Admins']
Wait Until Element Is Visible xpath=//h1[contains(.,'Admins')] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
Page Should Contain Admins
- Click Button xpath=//button[@ng-click='toggleSidebar()']
+ Click Button xpath=//button[@ng-click='toggleSidebar()']
Click Button xpath=//button[@ng-click='admins.openAddNewAdminModal()']
- Input Text xpath=//input[@id='input-user-search'] ${Existing_User}
+ Input Text xpath=//input[@id='input-user-search'] ${Existing_User}
Click Button xpath=//button[@id='button-search-users']
Click Element xpath=//span[@id='result-uuid-0']
Click Button xpath=//button[@id='search-users-button-next']
Click Button xpath=//input[@value='Select application']
- Scroll Element Into View xpath=(//input[@value='Select application']/following::*[contains(text(),'xDemo App' )])[1]
+ Scroll Element Into View xpath=(//input[@value='Select application']/following::*[contains(text(),'xDemo App' )])[1]
Click Element xpath=(//li[contains(.,'xDemo App' )])[2]
-# Scroll Element Into View xpath=(//input[@value='Select application']/following::*[contains(text(),'Default' )])[1]
+# Scroll Element Into View xpath=(//input[@value='Select application']/following::*[contains(text(),'Default' )])[1]
# Click Element xpath=(//li[contains(.,'Default' )])[2]
#Select From List xpath=(//input[@value='Select application']/following::*[contains(text(),'xDemo App')])[1] xDemo App
Click Button xpath=//button[@id='div-updateAdminAppsRoles']
@@ -324,21 +321,20 @@ Portal admin Add Application Admin Exiting User
# Click Element xpath=//li[contains(.,'Default' )]
Click Element xpath=//li[contains(.,'xDemo App' )]
Input Text xpath=//input[@id='input-table-search'] ${Existing_User}
- Table Column Should Contain xpath=//*[@table-data='admins.adminsTableData'] 1 ${Existing_User}
+ Table Column Should Contain xpath=//*[@table-data='admins.adminsTableData'] 1 ${Existing_User}
#Element Text Should Be xpath=(//span[contains(.,'portal')])[1] ${Existing_User}
- #Element Text Should Be xpath=(//span[contains(.,'demo')])[1] ${Existing_User}
-
-
-Portal admin Delete Application Admin Existing User
- [Documentation] Naviage to Admins tab
- Wait Until Element Is Visible xpath=//a[@title='Admins'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ #Element Text Should Be xpath=(//span[contains(.,'demo')])[1] ${Existing_User}
+
+Portal admin Delete Application Admin Existing User
+ [Documentation] Navigate to Admins tab
+ Wait Until Element Is Visible xpath=//a[@title='Admins'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
Click Link xpath=//a[@title='Admins']
- Wait Until Element Is Visible xpath=//h1[contains(.,'Admins')] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ Wait Until Element Is Visible xpath=//h1[contains(.,'Admins')] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
Page Should Contain Admins
- Click Button xpath=//button[@ng-click='toggleSidebar()']
- Input Text xpath=//input[@id='input-table-search'] ${Existing_User}
- Click Element xpath=(//span[contains(.,'portal')] )[1]
- #Click Element xpath=(//span[contains(.,'demo')] )[1]
+ Click Button xpath=//button[@ng-click='toggleSidebar()']
+ Input Text xpath=//input[@id='input-table-search'] ${Existing_User}
+ Click Element xpath=(//span[contains(.,'portal')] )[1]
+ #Click Element xpath=(//span[contains(.,'demo')] )[1]
Click Element xpath=//*[@id='select-app-xDemo-App']/following::i[@id='i-delete-application']
# Click Element xpath=//*[@id='select-app-Default']/following::i[@id='i-delete-application']
Click Element xpath=//button[@id='div-confirm-ok-button']
@@ -347,16 +343,15 @@ Portal admin Delete Application Admin Existing User
#Is Element Visible xpath=(//span[contains(.,'Portal')] )[2]
#Is Element Visible xpath=(//*[contains(.,'Portal')] )[2]
Element Should Not Contain xpath=//*[@table-data='admins.adminsTableData'] portal
- #Element Should Not Contain xpath=//*[@table-data='admins.adminsTableData'] demo
- Click Image xpath=//img[@alt='Onap Logo']
+ #Element Should Not Contain xpath=//*[@table-data='admins.adminsTableData'] demo
+ Click Image xpath=//img[@alt='Onap Logo']
Set Selenium Implicit Wait 3000
-
-
+
Portal admin Add Application admin User New user
- [Documentation] Naviage to Users tab
+ [Documentation] Navigate to Users tab
Click Link xpath=//a[@title='Users']
Page Should Contain Users
- Click Button xpath=//button[@ng-click='toggleSidebar()']
+ Click Button xpath=//button[@ng-click='toggleSidebar()']
Click Button xpath=//button[@id='users-button-add']
Click Button xpath=//button[@id='Create-New-User-button']
Input Text xpath=//input[@ng-model='searchUsers.newUser.firstName'] ${App_First_Name}
@@ -366,7 +361,7 @@ Portal admin Add Application admin User New user
Input Text xpath=//input[@ng-model='searchUsers.newUser.loginPwd'] ${App_Loginpwd}
Input Text xpath=//input[@ng-model='searchUsers.newUser.loginPwdCheck'] ${App_LoginPwdCheck}
Click Button xpath=//button[@ng-click='searchUsers.addNewUserFun()']
-
+
${Result}= Get Matching XPath Count xpath=//*[contains(text(),'User with same loginId already exists')]
#log ${Result}
@@ -380,7 +375,7 @@ Portal admin Add Application admin User New user
Goto Home Image
Click Image xpath=//img[@alt='Onap Logo']
-AdminUser does not exist already
+AdminUser does not exist already
Click Button xpath=//button[@id='next-button']
#Scroll Element Into View xpath=//div[@id='div-app-name-dropdown-xDemo-App']
Click Element xpath=//*[@id='div-app-name-dropdown-xDemo-App']
@@ -389,21 +384,20 @@ AdminUser does not exist already
Click Button xpath=//button[@id='new-user-save-button']
Set Selenium Implicit Wait 3000
Go To ${PORTAL_HOME_PAGE}
- Click Link xpath=//a[@title='Users']
- Click Element xpath=//input[@id='dropdown1']
- Click Element xpath=//li[contains(.,'xDemo App')]
- Table Column Should Contain xpath=//*[@table-data='users.accountUsers'] 1 ${App_First_Name}
+ Click Link xpath=//a[@title='Users']
+ Click Element xpath=//input[@id='dropdown1']
+ Click Element xpath=//li[contains(.,'xDemo App')]
+ Table Column Should Contain xpath=//*[@table-data='users.accountUsers'] 1 ${App_First_Name}
#Input Text xpath=//input[@id='input-table-search'] ${App_First_Name}
#Element Text Should Be xpath=(//span[contains(.,'demoapp')] )[1] ${App_First_Name}
- Click Image xpath=//img[@alt='Onap Logo']
+ Click Image xpath=//img[@alt='Onap Logo']
Set Selenium Implicit Wait 3000
-
-
+
Portal admin Add Standard User New user
- [Documentation] Naviage to Users tab
+ [Documentation] Navigate to Users tab
Click Link xpath=//a[@title='Users']
Page Should Contain Users
- Click Button xpath=//button[@ng-click='toggleSidebar()']
+ Click Button xpath=//button[@ng-click='toggleSidebar()']
Click Button xpath=//button[@id='users-button-add']
Click Button xpath=//button[@id='Create-New-User-button']
Input Text xpath=//input[@ng-model='searchUsers.newUser.firstName'] ${Sta_First_Name}
@@ -413,7 +407,7 @@ Portal admin Add Standard User New user
Input Text xpath=//input[@ng-model='searchUsers.newUser.loginPwd'] ${Sta_Loginpwd}
Input Text xpath=//input[@ng-model='searchUsers.newUser.loginPwdCheck'] ${Sta_LoginPwdCheck}
Click Button xpath=//button[@ng-click='searchUsers.addNewUserFun()']
-
+
${Result}= Get Matching XPath Count xpath=//*[contains(text(),'User with same loginId already exists')]
#log ${Result}
@@ -424,7 +418,7 @@ Portal admin Add Standard User New user
... ELSE Goto Home Image
Set Selenium Implicit Wait 3000
-StaUser does not exist already
+StaUser does not exist already
Click Button xpath=//button[@id='next-button']
#Scroll Element Into View xpath=//div[@id='div-app-name-dropdown-xDemo-App']
Click Element xpath=//*[@id='div-app-name-dropdown-xDemo-App']
@@ -433,23 +427,21 @@ StaUser does not exist already
Click Button xpath=//button[@id='new-user-save-button']
Set Selenium Implicit Wait 3000
Go To ${PORTAL_HOME_PAGE}
- Click Link xpath=//a[@title='Users']
- Click Element xpath=//input[@id='dropdown1']
- Click Element xpath=//li[contains(.,'xDemo App')]
- Table Column Should Contain xpath=//*[@table-data='users.accountUsers'] 1 ${Sta_First_Name}
+ Click Link xpath=//a[@title='Users']
+ Click Element xpath=//input[@id='dropdown1']
+ Click Element xpath=//li[contains(.,'xDemo App')]
+ Table Column Should Contain xpath=//*[@table-data='users.accountUsers'] 1 ${Sta_First_Name}
#Input Text xpath=//input[@id='input-table-search'] ${Sta_First_Name}
#Element Text Should Be xpath=(//span[contains(.,'appdemo')] )[1] ${Sta_First_Name}
- Click Image xpath=//img[@alt='Onap Logo']
+ Click Image xpath=//img[@alt='Onap Logo']
Set Selenium Implicit Wait 3000
-
-
-
+
Portal admin Add Application admin User New user -Test
- [Documentation] Naviage to Users tab
+ [Documentation] Navigate to Users tab
Click Link xpath=//a[@title='Users']
Page Should Contain Users
- Click Button xpath=//button[@ng-click='toggleSidebar()']
- Click Button xpath=//button[@id='users-button-add']
+ Click Button xpath=//button[@ng-click='toggleSidebar()']
+ Click Button xpath=//button[@id='users-button-add']
Click Button xpath=//button[@id='Create-New-User-button']
Input Text xpath=//input[@ng-model='searchUsers.newUser.firstName'] ${Test_First_Name}
Input Text xpath=//input[@ng-model='searchUsers.newUser.lastName'] ${Test_Last_Name}
@@ -458,11 +450,10 @@ Portal admin Add Application admin User New user -Test
Input Text xpath=//input[@ng-model='searchUsers.newUser.loginPwd'] ${Test_Loginpwd}
Input Text xpath=//input[@ng-model='searchUsers.newUser.loginPwdCheck'] ${Test_LoginPwdCheck}
Click Button xpath=//button[@ng-click='searchUsers.addNewUserFun()']
- Click Button xpath=//button[@id='search-users-button-cancel']
- Click Image xpath=//img[@alt='Onap Logo']
+ Click Button xpath=//button[@id='search-users-button-cancel']
+ Click Image xpath=//img[@alt='Onap Logo']
Set Selenium Implicit Wait 3000
-
-
+
#Click Button xpath=//button[@id='next-button']
#Scroll Element Into View xpath=//div[@id='div-app-name-dropdown-xDemo-App']
#Click Element xpath=//*[@id='div-app-name-dropdown-xDemo-App']
@@ -471,22 +462,22 @@ Portal admin Add Application admin User New user -Test
#Click Button xpath=//button[@id='new-user-save-button']
#Set Selenium Implicit Wait 3000
#Go To ${PORTAL_HOME_PAGE}
- #Click Link xpath=//a[@title='Users']
- #Click Element xpath=//input[@id='dropdown1']
- #Click Element xpath=//li[contains(.,'xDemo App')]
- #Table Column Should Contain xpath=//*[@table-data='users.accountUsers'] 1 ${Test_First_Name}
+ #Click Link xpath=//a[@title='Users']
+ #Click Element xpath=//input[@id='dropdown1']
+ #Click Element xpath=//li[contains(.,'xDemo App')]
+ #Table Column Should Contain xpath=//*[@table-data='users.accountUsers'] 1 ${Test_First_Name}
#Input Text xpath=//input[@id='input-table-search'] ${Test_First_Name}
- #Element Text Should Be xpath=(//span[contains(.,'appdemo')] )[1] ${Test_First_Name}
-
-Portal admin Add Application Admin Exiting User -APPDEMO
- [Documentation] Naviage to Admins tab
+ #Element Text Should Be xpath=(//span[contains(.,'appdemo')] )[1] ${Test_First_Name}
+
+Portal admin Add Application Admin Existing User -APPDEMO
+ [Documentation] Navigate to Admins tab
Wait Until Element Is Visible xpath=//a[@title='Admins'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
Click Link xpath=//a[@title='Admins']
- Wait Until Element Is Visible xpath=//h1[contains(.,'Admins')] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ Wait Until Element Is Visible xpath=//h1[contains(.,'Admins')] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
Page Should Contain Admins
- Click Button xpath=//button[@ng-click='toggleSidebar()']
+ Click Button xpath=//button[@ng-click='toggleSidebar()']
Click Button xpath=//button[@ng-click='admins.openAddNewAdminModal()']
- Input Text xpath=//input[@id='input-user-search'] ${App_First_Name}
+ Input Text xpath=//input[@id='input-user-search'] ${App_First_Name}
Click Button xpath=//button[@id='button-search-users']
Click Element xpath=//span[@id='result-uuid-0']
Click Button xpath=//button[@id='search-users-button-next']
@@ -500,129 +491,128 @@ Portal admin Add Application Admin Exiting User -APPDEMO
Get Selenium Implicit Wait
Click Link xpath=//a[@aria-label='Admins']
Click Element xpath=//input[@id='dropdown1']
- Click Element xpath=//li[contains(.,'xDemo App' )]
+ Click Element xpath=//li[contains(.,'xDemo App' )]
Input Text xpath=//input[@id='input-table-search'] ${App_First_Name}
#Element Text Should Be xpath=(//span[contains(.,'appdemo')])[1] ${App_First_Name}
- Table Column Should Contain xpath=//*[@table-data='admins.adminsTableData'] 1 ${App_First_Name}
- Click Image xpath=//img[@alt='Onap Logo']
- Set Selenium Implicit Wait 3000
-
-Portal admin Add Standard User Existing user
- [Documentation] Naviage to Users tab
- Click Link xpath=//a[@title='Users']
- Page Should Contain Users
- Click Button xpath=//button[@ng-click='toggleSidebar()']
- Click Button xpath=//button[@ng-click='users.openAddNewUserModal()']
- Input Text xpath=//input[@id='input-user-search'] ${Existing_User}
- Click Button xpath=//button[@id='button-search-users']
- Click Element xpath=//span[@id='result-uuid-0']
- 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='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
- #Set Browser Implicit Wait ${GLOBAL_SELENIUM_BROWSER_IMPLICIT_WAIT}
- #Select From List xpath=//input[@value='Select application'] xDemo App
- #Click Link xpath=//a[@title='Users']
- #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 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
-
+ Table Column Should Contain xpath=//*[@table-data='admins.adminsTableData'] 1 ${App_First_Name}
+ Click Image xpath=//img[@alt='Onap Logo']
+ Set Selenium Implicit Wait 3000
+
+Portal admin Add Standard User Existing user
+ [Documentation] Navigate to Users tab
+ Click Link xpath=//a[@title='Users']
+ Page Should Contain Users
+ Click Button xpath=//button[@ng-click='toggleSidebar()']
+ Click Button xpath=//button[@ng-click='users.openAddNewUserModal()']
+ Input Text xpath=//input[@id='input-user-search'] ${Existing_User}
+ Click Button xpath=//button[@id='button-search-users']
+ Click Element xpath=//span[@id='result-uuid-0']
+ 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='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
+# Set Browser Implicit Wait ${GLOBAL_SELENIUM_BROWSER_IMPLICIT_WAIT}
+# Select From List xpath=//input[@value='Select application'] xDemo App
+# Click Link xpath=//a[@title='Users']
+# 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 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
+
Portal admin Edit Standard User Existing user
- [Documentation] Naviage to Users tab
- Click Link xpath=//a[@title='Users']
- Click Element xpath=//input[@id='dropdown1']
- # Click Element xpath=//li[contains(.,'Default')]
-# Set Selenium Implicit Wait 3000
- Click Element xpath=//li[contains(.,'xDemo App')]
-# Set Selenium Implicit Wait 3000
- Input Text xpath=//input[@id='input-table-search'] ${Existing_User}
- Element Text Should Be xpath=(.//*[@id='rowheader_t1_0'])[2] Standard User
- Click Element xpath=(.//*[@id='rowheader_t1_0'])[2]
- # 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=//*[@id='div-app-name-Default']/following::input[@id='Portal-Notification-Admin-checkbox']
- Click Element xpath=//*[@id='app-select-Standard User1']
- Click Element xpath=//*[@id='app-select-Standard User1']/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
+ [Documentation] Navigate to Users tab
+ Click Link xpath=//a[@title='Users']
+ Click Element xpath=//input[@id='dropdown1']
+# Click Element xpath=//li[contains(.,'Default')]
+# Set Selenium Implicit Wait 3000
+ Click Element xpath=//li[contains(.,'xDemo App')]
+# Set Selenium Implicit Wait 3000
+ Input Text xpath=//input[@id='input-table-search'] ${Existing_User}
+ Element Text Should Be xpath=(.//*[@id='rowheader_t1_0'])[2] Standard User
+ Click Element xpath=(.//*[@id='rowheader_t1_0'])[2]
+# 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=//*[@id='div-app-name-Default']/following::input[@id='Portal-Notification-Admin-checkbox']
+ Click Element xpath=//*[@id='app-select-Standard User1']
+ Click Element xpath=//*[@id='app-select-Standard User1']/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
- Page Should Contain Users
- Click Button xpath=//button[@ng-click='toggleSidebar()']
- Click Button xpath=//button[@ng-click='users.openAddNewUserModal()']
- Input Text xpath=//input[@id='input-user-search'] ${Existing_User}
- Click Button xpath=//button[@id='button-search-users']
- Click Element xpath=//span[@id='result-uuid-0']
- Click Button xpath=//button[@id='next-button']
- Click Element xpath=//div[@id='app-select-Select roles1']
- Click Element xpath=//div[@id='app-select-Select roles1']/following::input[@id='System-Administrator-checkbox']
- Set Selenium Implicit Wait 3000
-# Click Element xpath=//*[@id='app-select-Standard User1']
-# Click Element xpath=//*[@id='app-select-Standard User1']/following::input[@id='System-Administrator-checkbox']
- # Click Element xpath=//*[@id='div-app-name-dropdown-SDC']
- # Click Element xpath=//*[@id='div-app-name-SDC']/following::input[@id='Standard-User-checkbox']
- # Click Element xpath=//*[@id='div-app-name-SDC']/following::input[@id='Portal-Notification-Admin-checkbox']
- Set Selenium Implicit Wait 3000
- Click Button xpath=//button[@id='new-user-save-button']
- Set Selenium Implicit Wait 3000
- Page Should Contain Users
- #Click Button xpath=//input[@id='dropdown1']
- #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] Portal Notification Admin
- Element Text Should Be xpath=(.//*[@id='rowheader_t1_0'])[2] System Administrator
- Set Selenium Implicit Wait 3000
-
- Portal admin Delete Standard User Existing user
- [Documentation] Naviage to Users tab
- 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]
-# Click Element xpath=//*[@id='div-app-name-SDC']/following::*[@id='app-item-delete'][1]
- Click Element xpath=//button[@id='div-confirm-ok-button']
- Click Button xpath=//button[@id='new-user-save-button']
- #Input Text xpath=//input[@id='input-table-search'] ${Existing_User}
- #Is Element Visible xpath=(//*[contains(.,'Portal')] )[2]
- 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
- Go To ${PORTAL_HOME_URL}
+ Page Should Contain Users
+ Click Button xpath=//button[@ng-click='toggleSidebar()']
+ Click Button xpath=//button[@ng-click='users.openAddNewUserModal()']
+ Input Text xpath=//input[@id='input-user-search'] ${Existing_User}
+ Click Button xpath=//button[@id='button-search-users']
+ Click Element xpath=//span[@id='result-uuid-0']
+ Click Button xpath=//button[@id='next-button']
+ Click Element xpath=//div[@id='app-select-Select roles1']
+ Click Element xpath=//div[@id='app-select-Select roles1']/following::input[@id='System-Administrator-checkbox']
+ Set Selenium Implicit Wait 3000
+# Click Element xpath=//*[@id='app-select-Standard User1']
+# Click Element xpath=//*[@id='app-select-Standard User1']/following::input[@id='System-Administrator-checkbox']
+ # Click Element xpath=//*[@id='div-app-name-dropdown-SDC']
+ # Click Element xpath=//*[@id='div-app-name-SDC']/following::input[@id='Standard-User-checkbox']
+ # Click Element xpath=//*[@id='div-app-name-SDC']/following::input[@id='Portal-Notification-Admin-checkbox']
+ Set Selenium Implicit Wait 3000
+ Click Button xpath=//button[@id='new-user-save-button']
+ Set Selenium Implicit Wait 3000
+ Page Should Contain Users
+ #Click Button xpath=//input[@id='dropdown1']
+ #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] Portal Notification Admin
+ Element Text Should Be xpath=(.//*[@id='rowheader_t1_0'])[2] System Administrator
+ Set Selenium Implicit Wait 3000
+
+Portal admin Delete Standard User Existing user
+ [Documentation] Navigate to Users tab
+ 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]
+# Click Element xpath=//*[@id='div-app-name-SDC']/following::*[@id='app-item-delete'][1]
+ Click Element xpath=//button[@id='div-confirm-ok-button']
+ Click Button xpath=//button[@id='new-user-save-button']
+ #Input Text xpath=//input[@id='input-table-search'] ${Existing_User}
+ #Is Element Visible xpath=(//*[contains(.,'Portal')] )[2]
+ 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] Navigate to Support tab
+ Go To ${PORTAL_HOME_URL}
Click Link xpath=//a[contains(.,'Support')]
Mouse Over xpath=//*[contains(text(),'Get Access')]
Click Link xpath=//a[contains(.,'Get Access')]
Element Text Should Be xpath=//h1[contains(.,'Get Access')] Get Access
- Set Selenium Implicit Wait 3000
-
-Functional Top Menu Contact Us
- [Documentation] Naviage to Support tab
+ Set Selenium Implicit Wait 3000
+
+Functional Top Menu Contact Us
+ [Documentation] Navigate to Support tab
Click Link xpath=//a[contains(.,'Support')]
Mouse Over xpath=//*[contains(text(),'Contact Us')]
Click Link xpath=//a[contains(.,'Contact Us')]
- Element Text Should Be xpath=//h1[contains(.,'Contact Us')] Contact Us
- Click Image xpath=//img[@alt='Onap Logo']
- Set Selenium Implicit Wait 3000
+ Element Text Should Be xpath=//h1[contains(.,'Contact Us')] Contact Us
+ Click Image xpath=//img[@alt='Onap Logo']
+ Set Selenium Implicit Wait 3000
-Portal admin Edit Functional menu
- [Documentation] Naviage to Edit Functional menu tab
+Portal admin Edit Functional menu
+ [Documentation] Navigate to Edit Functional menu tab
Click Link xpath=//a[@title='Edit Functional Menu']
Click Link xpath=.//*[@id='Manage']/div/a
Click Link xpath=.//*[@id='Design']/div/a
@@ -643,52 +633,52 @@ Portal admin Edit Functional menu
Click Image xpath=//img[@alt='Onap Logo']
Set Selenium Implicit Wait 3000
Click Link xpath=//a[contains(.,'Manage')]
- Mouse Over xpath=//*[contains(text(),'Design')]
- Set Selenium Implicit Wait 3000
- Element Text Should Be xpath=//a[contains(.,'ONAP Test')] ONAP Test
- Set Selenium Implicit Wait 3000
- Click Image xpath=//img[@alt='Onap Logo']
- Click Link xpath=//a[@title='Edit Functional Menu']
+ Mouse Over xpath=//*[contains(text(),'Design')]
+ Set Selenium Implicit Wait 3000
+ Element Text Should Be xpath=//a[contains(.,'ONAP Test')] ONAP Test
+ Set Selenium Implicit Wait 3000
+ Click Image xpath=//img[@alt='Onap Logo']
+ Click Link xpath=//a[@title='Edit Functional Menu']
Click Link xpath=.//*[@id='Manage']/div/a
Click Link xpath=.//*[@id='Design']/div/a
Click Link xpath=.//*[@id='Product_Design']/div/a
Open Context Menu xpath=//*[@id='ONAP_Test']
Click Link xpath=//a[@href='#delete']
- Set Selenium Implicit Wait 3000
- Click Element xpath=//button[@id='div-confirm-ok-button']
- Click Image xpath=//img[@alt='Onap Logo']
+ Set Selenium Implicit Wait 3000
+ Click Element xpath=//button[@id='div-confirm-ok-button']
+ Click Image xpath=//img[@alt='Onap Logo']
Set Selenium Implicit Wait 3000
Click Link xpath=//a[contains(.,'Manage')]
- Mouse Over xpath=//*[contains(text(),'Design')]
- Set Selenium Implicit Wait 3000
- Element Should Not Contain xpath=(.//*[contains(.,'Design')]/following::ul[1])[1] ONAP Test
- Set Selenium Implicit Wait 3000
- Click Image xpath=//img[@alt='Onap Logo']
- Set Selenium Implicit Wait 3000
-
+ Mouse Over xpath=//*[contains(text(),'Design')]
+ Set Selenium Implicit Wait 3000
+ Element Should Not Contain xpath=(.//*[contains(.,'Design')]/following::ul[1])[1] ONAP Test
+ Set Selenium Implicit Wait 3000
+ Click Image xpath=//img[@alt='Onap Logo']
+ Set Selenium Implicit Wait 3000
+
Portal admin Microservice Onboarding
- [Documentation] Naviage to Edit Functional menu tab
- Click Link xpath=//a[@title='Microservice Onboarding']
- Click Button xpath=//button[@id='microservice-onboarding-button-add']
- Input Text xpath=//input[@name='name'] Test Microservice
- Input Text xpath=//*[@name='desc'] Test
- Click Element xpath=//input[@id='microservice-details-input-app']
- Scroll Element Into View xpath=//li[contains(.,'xDemo App')]
- Click Element xpath=//li[contains(.,'xDemo App')]
- Click Element xpath=//*[@name='desc']
- Input Text xpath=//input[@name='url'] ${PORTAL_MICRO_ENDPOINT}
- Click Element xpath=//input[@id='microservice-details-input-security-type']
- Scroll Element Into View xpath=//li[contains(.,'Basic Authentication')]
- Click Element xpath=//li[contains(.,'Basic Authentication')]
- Input Text xpath=//input[@name='username'] ${GLOBAL_PORTAL_ADMIN_USER}
- Input Text xpath=//input[@name='password'] ${GLOBAL_PORTAL_ADMIN_PWD}
- Click Button xpath=//button[@id='microservice-details-save-button']
- Table Column Should Contain xpath=//*[@table-data='serviceList'] 1 Test Microservice
- #Element Text Should Be xpath=//*[@table-data='serviceList'] Test Microservice
- Set Selenium Implicit Wait 3000
+ [Documentation] Navigate to Edit Functional menu tab
+ Click Link xpath=//a[@title='Microservice Onboarding']
+ Click Button xpath=//button[@id='microservice-onboarding-button-add']
+ Input Text xpath=//input[@name='name'] Test Microservice
+ Input Text xpath=//*[@name='desc'] Test
+ Click Element xpath=//input[@id='microservice-details-input-app']
+ Scroll Element Into View xpath=//li[contains(.,'xDemo App')]
+ Click Element xpath=//li[contains(.,'xDemo App')]
+ Click Element xpath=//*[@name='desc']
+ Input Text xpath=//input[@name='url'] ${PORTAL_MICRO_ENDPOINT}
+ Click Element xpath=//input[@id='microservice-details-input-security-type']
+ Scroll Element Into View xpath=//li[contains(.,'Basic Authentication')]
+ Click Element xpath=//li[contains(.,'Basic Authentication')]
+ Input Text xpath=//input[@name='username'] ${GLOBAL_PORTAL_ADMIN_USER}
+ Input Text xpath=//input[@name='password'] ${GLOBAL_PORTAL_ADMIN_PWD}
+ Click Button xpath=//button[@id='microservice-details-save-button']
+ Table Column Should Contain xpath=//*[@table-data='serviceList'] 1 Test Microservice
+ #Element Text Should Be xpath=//*[@table-data='serviceList'] Test Microservice
+ Set Selenium Implicit Wait 3000
Portal admin Microservice Delete
- [Documentation] Naviage to Edit Functional menu tab
+ [Documentation] Navigate to Edit Functional menu tab
Click Link xpath=//a[@title='Microservice Onboarding']
Click Button xpath=//button[@id='microservice-onboarding-button-add']
Input Text xpath=//input[@name='name'] TestMS
@@ -708,105 +698,100 @@ Portal admin Microservice Delete
Click Element xpath=(.//*[contains(text(),'TestMS')]/following::*[@ng-click='microserviceOnboarding.deleteService(rowData)'])[1]
Click Button xpath=//button[@id="div-confirm-ok-button"]
Set Selenium Implicit Wait 3000
-
-Portal Admin Create Widget for All users
+
+Portal Admin Create Widget for All users
[Documentation] Navigate to Create Widget menu tab
${WidgetAttachment}= Catenate ${PORTAL_ASSETS_DIRECTORY}//news_widget.zip
- Wait until page contains Element xpath=//a[@title='Widget Onboarding'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ Wait Until Page Contains Element xpath=//a[@title='Widget Onboarding'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
Click Link xpath=//a[@title='Widget Onboarding']
- Click Button xpath=//button[@ng-click='toggleSidebar()']
+ Click Button xpath=//button[@ng-click='toggleSidebar()']
Click Button xpath=//button[@id='widget-onboarding-button-add']
Input Text xpath=//*[@name='name'] ONAP-xDemo
Input Text xpath=//*[@name='desc'] ONAP xDemo
Click Element xpath=//*[@id='widgets-details-input-endpoint-url']
Scroll Element Into View xpath=//li[contains(.,'News Microservice')]
Click Element xpath=//li[contains(.,'News Microservice')]
- Click Element xpath=//*[contains(text(),'Allow all user access')]/preceding::input[@ng-model='widgetOnboardingDetails.widget.allUser'][1]
+ Click Element xpath=//*[contains(text(),'Allow all user access')]/preceding::input[@ng-model='widgetOnboardingDetails.widget.allUser'][1]
Choose File xpath=//input[@id='widget-onboarding-details-upload-file'] ${WidgetAttachment}
Click Button xpath=//button[@id='widgets-details-save-button']
- Wait Until Page Contains ONAP-xDemo ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ Wait Until Page Contains ONAP-xDemo ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
Page Should Contain ONAP-xDemo
Set Selenium Implicit Wait 3000
GO TO ${PORTAL_HOME_PAGE}
-
-
-Portal Admin Delete Widget for All users
- [Documentation] Naviage to delete Widget menu tab
- #Wait Until Page Contains ONAP-xDemo ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
- #Page Should Contain ONAP-xDemo
- #Click Image xpath=//img[@alt='Onap Logo']
- Click Link xpath=//a[@title='Widget Onboarding']
- Click Element xpath=//input[@id='dropdown1']
+
+Portal Admin Delete Widget for All users
+ [Documentation] Navigate to delete Widget menu tab
+ #Wait Until Page Contains ONAP-xDemo ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ #Page Should Contain ONAP-xDemo
+ #Click Image xpath=//img[@alt='Onap Logo']
+ Click Link xpath=//a[@title='Widget Onboarding']
+ Click Element xpath=//input[@id='dropdown1']
Click Element xpath=//li[contains(.,'xDemo App')]
- #Wait Until Page Contains xpath=(.//*[contains(text(),'ONAP-xDemo')]/followi
- #Wait Until Page Contains xpath=(.//*[contains(text(),'ONAP-xDemo')]/following::*[@ng-click='widgetOnboarding.deleteWidget(rowData)'])[1] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
- Click Button xpath=//button[@ng-click='toggleSidebar()']
- Click Element xpath=(.//*[contains(text(),'ONAP-xDemo')]/following::*[@ng-click='widgetOnboarding.deleteWidget(rowData)'])[1]
- Click Element xpath=//button[@id='div-confirm-ok-button']
- Set Selenium Implicit Wait 3000
- Element Should Not Contain xpath=//*[@table-data='portalAdmin.portalAdminsTableData'] ONAP-xDemo
- #Is Element Visible xpath=//*[@table-data='portalAdmin.portalAdminsTableData']
- #Table Column Should Contain .//*[@table-data='portalAdmin.portalAdminsTableData'] 0 ONAP-xDemo
- #Set Selenium Implicit Wait 3000
-
-Portal Admin Create Widget for Application Roles
- [Documentation] Naviage to Create Widget menu tab
- ${WidgetAttachment}= Catenate ${PORTAL_ASSETS_DIRECTORY}//news_widget.zip
- Click Link xpath=//a[@title='Widget Onboarding']
- Click Button xpath=//button[@ng-click='toggleSidebar()']
- Click Button xpath=//button[@id='widget-onboarding-button-add']
- Input Text xpath=//*[@name='name'] ONAP-xDemo
- Input Text xpath=//*[@name='desc'] ONAP xDemo
- Click Element xpath=//*[@id='widgets-details-input-endpoint-url']
- Scroll Element Into View xpath=//li[contains(.,'News Microservice')]
- Click Element xpath=//li[contains(.,'News Microservice')]
- Click element xpath=//*[@id="app-select-Select Applications"]
- click element xpath=//*[@id="xDemo-App-checkbox"]
- Click element xpath=//*[@name='desc']
- click element xpath=//*[@id="app-select-Select Roles0"]
- click element xpath=//*[@id="Standard-User-checkbox"]
- Click element xpath=//*[@name='desc']
- Scroll Element Into View xpath=//input[@id='widget-onboarding-details-upload-file']
- Choose File xpath=//input[@id='widget-onboarding-details-upload-file'] ${WidgetAttachment}
- Click Button xpath=//button[@id='widgets-details-save-button']
- Click Image xpath=//img[@alt='Onap Logo']
+ #Wait Until Page Contains xpath=(.//*[contains(text(),'ONAP-xDemo')]/following::*[@ng-click='widgetOnboarding.deleteWidget(rowData)'])[1] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ Click Button xpath=//button[@ng-click='toggleSidebar()']
+ Click Element xpath=(.//*[contains(text(),'ONAP-xDemo')]/following::*[@ng-click='widgetOnboarding.deleteWidget(rowData)'])[1]
+ Click Element xpath=//button[@id='div-confirm-ok-button']
Set Selenium Implicit Wait 3000
- #Wait Until Page Contains ONAP-xDemo ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
- Click Link xpath=//a[@title='Widget Onboarding']
+ Element Should Not Contain xpath=//*[@table-data='portalAdmin.portalAdminsTableData'] ONAP-xDemo
+ #Is Element Visible xpath=//*[@table-data='portalAdmin.portalAdminsTableData']
+ #Table Column Should Contain .//*[@table-data='portalAdmin.portalAdminsTableData'] 0 ONAP-xDemo
+ #Set Selenium Implicit Wait 3000
+
+Portal Admin Create Widget for Application Roles
+ [Documentation] Navigate to Create Widget menu tab
+ ${WidgetAttachment}= Catenate ${PORTAL_ASSETS_DIRECTORY}//news_widget.zip
+ Click Link xpath=//a[@title='Widget Onboarding']
+ Click Button xpath=//button[@ng-click='toggleSidebar()']
+ Click Button xpath=//button[@id='widget-onboarding-button-add']
+ Input Text xpath=//*[@name='name'] ONAP-xDemo
+ Input Text xpath=//*[@name='desc'] ONAP xDemo
+ Click Element xpath=//*[@id='widgets-details-input-endpoint-url']
+ Scroll Element Into View xpath=//li[contains(.,'News Microservice')]
+ Click Element xpath=//li[contains(.,'News Microservice')]
+ Click Element xpath=//*[@id="app-select-Select Applications"]
+ Click Element xpath=//*[@id="xDemo-App-checkbox"]
+ Click Element xpath=//*[@name='desc']
+ Click Element xpath=//*[@id="app-select-Select Roles0"]
+ Click Element xpath=//*[@id="Standard-User-checkbox"]
+ Click Element xpath=//*[@name='desc']
+ Scroll Element Into View xpath=//input[@id='widget-onboarding-details-upload-file']
+ Choose File xpath=//input[@id='widget-onboarding-details-upload-file'] ${WidgetAttachment}
+ Click Button xpath=//button[@id='widgets-details-save-button']
+ Click Image xpath=//img[@alt='Onap Logo']
+ Set Selenium Implicit Wait 3000
+ #Wait Until Page Contains ONAP-xDemo ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ Click Link xpath=//a[@title='Widget Onboarding']
Click Element xpath=//input[@id='dropdown1']
Click Element xpath=//li[contains(.,'xDemo App')]
- Page Should Contain ONAP-xDemo
- Set Selenium Implicit Wait 3000
+ Page Should Contain ONAP-xDemo
+ Set Selenium Implicit Wait 3000
GO TO ${PORTAL_HOME_PAGE}
-
-Portal Admin Delete Widget for Application Roles
- #Wait Until Page Contains ONAP-xDemo ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
- #Page Should Contain ONAP-xDemo
- #Click Image xpath=//img[@alt='Onap Logo']
- Click Link xpath=//a[@title='Widget Onboarding']
- Click Element xpath=//input[@id='dropdown1']
- Click Element xpath=//li[contains(.,'xDemo App')]
- #Wait Until Page Contains xpath=(.//*[contains(text(),'ONAP-xDemo')]/followi
- #Wait Until Page Contains xpath=(.//*[contains(text(),'ONAP-xDemo')]/following::*[@ng-click='widgetOnboarding.deleteWidget(rowData)'])[1] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
- Click Button xpath=//button[@ng-click='toggleSidebar()']
- Scroll Element Into View xpath=//*[contains(text(),'ONAP-xDemo')]/following::td[3]/div
- Click Element xpath=//*[contains(text(),'ONAP-xDemo')]/following::td[3]/div
- Click Element xpath=//button[@id='div-confirm-ok-button']
- Set Selenium Implicit Wait 3000
- Element Should Not Contain xpath=//*[@table-data='portalAdmin.portalAdminsTableData'] ONAP-xDemo
- #Is Element Visible xpath=//*[@table-data='portalAdmin.portalAdminsTableData']
- #Table Column Should Contain .//*[@table-data='portalAdmin.portalAdminsTableData'] 0 ONAP-xDemo
- Set Selenium Implicit Wait 3000
-
-
-
+
+Portal Admin Delete Widget for Application Roles
+ #Wait Until Page Contains ONAP-xDemo ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ #Page Should Contain ONAP-xDemo
+ #Click Image xpath=//img[@alt='Onap Logo']
+ Click Link xpath=//a[@title='Widget Onboarding']
+ Click Element xpath=//input[@id='dropdown1']
+ Click Element xpath=//li[contains(.,'xDemo App')]
+ #Wait Until Page Contains xpath=(.//*[contains(text(),'ONAP-xDemo')]/following::*[@ng-click='widgetOnboarding.deleteWidget(rowData)'])[1] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ Click Button xpath=//button[@ng-click='toggleSidebar()']
+ Scroll Element Into View xpath=//*[contains(text(),'ONAP-xDemo')]/following::td[3]/div
+ Click Element xpath=//*[contains(text(),'ONAP-xDemo')]/following::td[3]/div
+ Click Element xpath=//button[@id='div-confirm-ok-button']
+ Set Selenium Implicit Wait 3000
+ Element Should Not Contain xpath=//*[@table-data='portalAdmin.portalAdminsTableData'] ONAP-xDemo
+ #Is Element Visible xpath=//*[@table-data='portalAdmin.portalAdminsTableData']
+ #Table Column Should Contain .//*[@table-data='portalAdmin.portalAdminsTableData'] 0 ONAP-xDemo
+ Set Selenium Implicit Wait 3000
+
Portal Admin Edit Widget
- [Documentation] Naviage to Home tab
+ [Documentation] Navigate to Home tab
#Mouse Over xpath=(//h3[contains(text(),'News')]/following::span[1])[1]
Click Element xpath=(//h3[contains(text(),'News')]/following::span[1])[1]
Set Browser Implicit Wait 8000
#Wait Until Element Is Visible xpath=(//h3[contains(text(),'News')]/following::span[1]/following::a[contains(text(),'Edit')])[1] 60
- Mouse Over xpath=(//h3[contains(text(),'News')]/following::span[1]/following::a[contains(text(),'Edit')])[1]
+ Mouse Over xpath=(//h3[contains(text(),'News')]/following::span[1]/following::a[contains(text(),'Edit')])[1]
Click Link xpath=(//h3[contains(text(),'News')]/following::span[1]/following::a[contains(text(),'Edit')])[1]
Input Text xpath=//input[@name='title'] ONAP_VID
Input Text xpath=//input[@name='url'] http://about.att.com/news/international.html
@@ -818,72 +803,72 @@ Portal Admin Edit Widget
Click Element xpath=//div[@id='confirmation-button-next']
Element Should Not Contain xpath=//*[@table-data='ignoredTableData'] ONAP_VID
Click Link xpath=//a[@id='close-button']
- Set Selenium Implicit Wait 3000
-
-Portal Admin Broadcast Notifications
- [Documentation] Portal Test Admin Broadcast Notifications
- ${CurrentDay}= Get Current Date increment=24:00:00 result_format=%m/%d/%Y
- ${NextDay}= Get Current Date increment=48:00:00 result_format=%m/%d/%Y
+ Set Selenium Implicit Wait 3000
+
+Portal Admin Broadcast Notifications
+ [Documentation] Portal Test Admin Broadcast Notifications
+ ${CurrentDay}= Get Current Date increment=24:00:00 result_format=%m/%d/%Y
+ ${NextDay}= Get Current Date increment=48:00:00 result_format=%m/%d/%Y
${CurrentDate}= Get Current Date increment=24:00:00 result_format=%m%d%y%H%M
- ${AdminBroadCastMsg}= catenate ONAP VID Broadcast Automation${CurrentDate}
+ ${AdminBroadCastMsg}= catenate ONAP VID Broadcast Automation${CurrentDate}
Go To ${PORTAL_HOME_URL}
- Click Image xpath=//img[@alt='Onap Logo']
+ Click Image xpath=//img[@alt='Onap Logo']
Set Selenium Implicit Wait 3000
- Click Link xpath=//*[@id="parent-item-User-Notifications"]
+ Click Link xpath=//*[@id="parent-item-User-Notifications"]
Wait until Element is visible xpath=//*[@id="button-openAddNewApp"] timeout=10
- Click button xpath=//*[@id="button-openAddNewApp"]
- Input Text xpath=//input[@id='datepicker-start'] ${CurrentDay}
- Input Text xpath=//input[@id='datepicker-end'] ${NextDay}
- Input Text xpath=//*[@id="add-notification-input-title"] ONAP VID Broadcast Automation
- Input Text xpath=//*[@id="user-notif-input-message"] ${AdminBroadCastMsg}
- click element xpath=//*[@id="button-notification-save"]
- Wait until Element is visible xpath=//*[@id="button-openAddNewApp"] timeout=10
- click element xpath=//*[@id="megamenu-notification-button"]
- click element xpath=//*[@id="notification-history-link"]
-# Notification bug, Uncomment the code when PORTAL-232 is fixed
- # Wait until Element is visible xpath=//*[@id="notification-history-table"] timeout=10
+ Click button xpath=//*[@id="button-openAddNewApp"]
+ Input Text xpath=//input[@id='datepicker-start'] ${CurrentDay}
+ Input Text xpath=//input[@id='datepicker-end'] ${NextDay}
+ Input Text xpath=//*[@id="add-notification-input-title"] ONAP VID Broadcast Automation
+ Input Text xpath=//*[@id="user-notif-input-message"] ${AdminBroadCastMsg}
+ Click Element xpath=//*[@id="button-notification-save"]
+ Wait until Element is visible xpath=//*[@id="button-openAddNewApp"] timeout=10
+ Click Element xpath=//*[@id="megamenu-notification-button"]
+ Click Element xpath=//*[@id="notification-history-link"]
+# Notification bug, Uncomment the code when PORTAL-232 is fixed
+ # Wait until Element is visible xpath=//*[@id="notification-history-table"] timeout=10
# Table Column Should Contain xpath=//*[@id="notification-history-table"] 2 ${AdminBroadCastMsg}
- Set Selenium Implicit Wait 3000
- log ${AdminBroadCastMsg}
+ Set Selenium Implicit Wait 3000
+ Log ${AdminBroadCastMsg}
[Return] ${AdminBroadCastMsg}
-
-Portal Admin Category Notifications
- [Documentation] Portal Admin Broadcast Notifications
- ${CurrentDay}= Get Current Date increment=24:00:00 result_format=%m/%d/%Y
- ${NextDay}= Get Current Date increment=48:00:00 result_format=%m/%d/%Y
-# ${CurrentDay}= Get Current Date result_format=%m/%d/%Y
+
+Portal Admin Category Notifications
+ [Documentation] Portal Admin Broadcast Notifications
+ ${CurrentDay}= Get Current Date increment=24:00:00 result_format=%m/%d/%Y
+ ${NextDay}= Get Current Date increment=48:00:00 result_format=%m/%d/%Y
+# ${CurrentDay}= Get Current Date result_format=%m/%d/%Y
${CurrentDate}= Get Current Date increment=24:00:00 result_format=%m%d%y%H%M
- ${AdminCategoryMsg}= catenate ONAP VID Category Automation${CurrentDate}
- Click Link xpath=//a[@id='parent-item-Home']
- Click Link xpath=//*[@id="parent-item-User-Notifications"]
- Wait until Element is visible xpath=//*[@id="button-openAddNewApp"] timeout=10
+ ${AdminCategoryMsg}= catenate ONAP VID Category Automation${CurrentDate}
+ Click Link xpath=//a[@id='parent-item-Home']
+ Click Link xpath=//*[@id="parent-item-User-Notifications"]
+ Wait until Element is visible xpath=//*[@id="button-openAddNewApp"] timeout=10
Click button xpath=//*[@id="button-openAddNewApp"]
#Select Radio Button NO radio-button-no
Click Element //*[contains(text(),'Broadcast to All Categories')]/following::*[contains(text(),'No')][1]
#Select Radio Button //label[@class='radio'] radio-button-approles
Click Element xpath=//*[contains(text(),'Categories')]/following::*[contains(text(),'Application Roles')][1]
- Click Element xpath=//*[contains(text(),'xDemo App')]/preceding::input[@ng-model='member.isSelected'][1]
- Input Text xpath=//input[@id='datepicker-start'] ${CurrentDay}
- Input Text xpath=//input[@id='datepicker-end'] ${NextDay}
- Input Text xpath=//*[@id="add-notification-input-title"] ONAP VID Category Automation
- Input Text xpath=//*[@id='user-notif-input-message'] ${AdminCategoryMsg}
- click element xpath=//*[@id="button-notification-save"]
- Wait until Element is visible xpath=//*[@id="button-openAddNewApp"] timeout=10
- click element xpath=//*[@id="megamenu-notification-button"]
- click element xpath=//*[@id="notification-history-link"]
+ Click Element xpath=//*[contains(text(),'xDemo App')]/preceding::input[@ng-model='member.isSelected'][1]
+ Input Text xpath=//input[@id='datepicker-start'] ${CurrentDay}
+ Input Text xpath=//input[@id='datepicker-end'] ${NextDay}
+ Input Text xpath=//*[@id="add-notification-input-title"] ONAP VID Category Automation
+ Input Text xpath=//*[@id='user-notif-input-message'] ${AdminCategoryMsg}
+ Click Element xpath=//*[@id="button-notification-save"]
+ Wait until Element is visible xpath=//*[@id="button-openAddNewApp"] timeout=10
+ Click Element xpath=//*[@id="megamenu-notification-button"]
+ Click Element xpath=//*[@id="notification-history-link"]
# Notification bug, Uncomment the code when PORTAL-232 is fixed
- # Wait until Element is visible xpath=//*[@id="notification-history-table"] timeout=10
+ # Wait until Element is visible xpath=//*[@id="notification-history-table"] timeout=10
# Table Column Should Contain xpath=//*[@id="notification-history-table"] 2 ${AdminCategoryMsg}
- Set Selenium Implicit Wait 3000
- log ${AdminCategoryMsg}
- [Return] ${AdminCategoryMsg}
-
+ Set Selenium Implicit Wait 3000
+ Log ${AdminCategoryMsg}
+ [Return] ${AdminCategoryMsg}
+
Portal admin Logout from Portal GUI
[Documentation] Logout from Portal GUI
Click Element xpath=//div[@id='header-user-icon']
Click Button xpath=//button[contains(.,'Log out')]
Title Should Be Login
-
+
Application admin Login To Portal GUI
[Documentation] Logs into Portal GUI
# Setup Browser Now being managed by test case
@@ -898,104 +883,102 @@ Application admin Login To Portal GUI
Input Text xpath=//input[@ng-model='loginId'] ${App_LoginID}
Input Password xpath=//input[@ng-model='password'] ${App_Loginpwd}
Click Link xpath=//a[@id='loginBtn']
- Wait Until Page Contains Element xpath=//img[@alt='Onap Logo'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
- Log Logged in to ${PORTAL_URL}${PORTAL_ENV}
-
-Application Admin Navigation Application Link Tab
+ Wait Until Page Contains Element xpath=//img[@alt='Onap Logo'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ Log Logged in to ${PORTAL_URL}${PORTAL_ENV}
+
+Application Admin Navigation Application Link Tab
[Documentation] Logs into Portal GUI as application admin
Click Link xpath=//a[@id='parent-item-Home']
Click Element xpath=.//h3[contains(text(),'xDemo App')]/following::div[1]
Page Should Contain ONAP Portal
- Scroll Element Into View xpath=//i[@class='ion-close-round']
+ Scroll Element Into View xpath=//i[@class='ion-close-round']
Click Element xpath=//i[@class='ion-close-round']
- Set Selenium Implicit Wait 3000
+ Set Selenium Implicit Wait 3000
#Click Element xpath=(.//span[@id='tab-Home'])[1]
-
-
-Application Admin Navigation Functional Menu
+
+Application Admin Navigation Functional Menu
[Documentation] Logs into Portal GUI as application admin
Click Link xpath=//a[contains(.,'Manage')]
Mouse Over xpath=//*[contains(text(),'Technology Insertion')]
- Click Link xpath= //*[contains(text(),'Infrastructure VNF Provisioning')]
+ Click Link xpath= //*[contains(text(),'Infrastructure VNF Provisioning')]
Page Should Contain ONAP Portal
Click Element xpath=//i[@class='ion-close-round']
Click Element xpath=(.//span[@id='tab-Home'])[1]
-
-
+
Application admin Add Standard User Existing user
- [Documentation] Naviage to Users tab
- Click Link xpath=//a[@title='Users']
- Page Should Contain Users
- Click Button xpath=//button[@ng-click='toggleSidebar()']
- Click Button xpath=//button[@ng-click='users.openAddNewUserModal()']
- Input Text xpath=//input[@id='input-user-search'] ${Existing_User}
- Click Button xpath=//button[@id='button-search-users']
- Click Element xpath=//span[@id='result-uuid-0']
- Click Button xpath=//button[@id='next-button']
- Click Element xpath=//*[@id='div-app-name-dropdown-xDemo-App']
- Click Element xpath=//*[@id='div-app-name-xDemo-App']/following::input[@id='Standard-User-checkbox']
- # Click Element xpath=//*[@id='div-app-name-dropdown-Default']
- # Click Element xpath=//*[@id='div-app-name-Default']/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
- #Set Browser Implicit Wait ${GLOBAL_SELENIUM_BROWSER_IMPLICIT_WAIT}
- #Select From List xpath=//input[@value='Select application'] xDemo App
- #Click Link xpath=//a[@title='Users']
- #Page Should Contain Users
- Go To ${PORTAL_HOME_PAGE}
- Set Selenium Implicit Wait 3000
- 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] Account Administrator
- Element Text Should Be xpath=(.//*[@id='rowheader_t1_0'])[2] Standard User
-
+ [Documentation] Navigate to Users tab
+ Click Link xpath=//a[@title='Users']
+ Page Should Contain Users
+ Click Button xpath=//button[@ng-click='toggleSidebar()']
+ Click Button xpath=//button[@ng-click='users.openAddNewUserModal()']
+ Input Text xpath=//input[@id='input-user-search'] ${Existing_User}
+ Click Button xpath=//button[@id='button-search-users']
+ Click Element xpath=//span[@id='result-uuid-0']
+ Click Button xpath=//button[@id='next-button']
+ Click Element xpath=//*[@id='div-app-name-dropdown-xDemo-App']
+ Click Element xpath=//*[@id='div-app-name-xDemo-App']/following::input[@id='Standard-User-checkbox']
+ # Click Element xpath=//*[@id='div-app-name-dropdown-Default']
+ # Click Element xpath=//*[@id='div-app-name-Default']/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
+ #Set Browser Implicit Wait ${GLOBAL_SELENIUM_BROWSER_IMPLICIT_WAIT}
+ #Select From List xpath=//input[@value='Select application'] xDemo App
+ #Click Link xpath=//a[@title='Users']
+ #Page Should Contain Users
+ Go To ${PORTAL_HOME_PAGE}
+ Set Selenium Implicit Wait 3000
+ 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] Account Administrator
+ Element Text Should Be xpath=(.//*[@id='rowheader_t1_0'])[2] Standard User
+
Application admin Edit Standard User Existing user
- [Documentation] Naviage to Users tab
- Click Element xpath=(.//*[@id='rowheader_t1_0'])[2]
- # 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=//*[@id='div-app-name-Default']/following::input[@id='Portal-Notification-Admin-checkbox']
- Click Element xpath=//*[@id='div-app-name-dropdown-xDemo-App']
- Click Element xpath=//*[@id='div-app-name-xDemo-App']/following::input[@id='Standard-User-checkbox']
- Click Element xpath=//*[@id='div-app-name-xDemo-App']/following::input[@id='System-Administrator-checkbox']
- Set Selenium Implicit Wait 3000
- Click Button xpath=//button[@id='new-user-save-button']
- Set Selenium Implicit Wait 3000
- Page Should Contain Users
- #Click Button xpath=//input[@id='dropdown1']
- #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] Account Administrator
- Element Text Should Be xpath=(.//*[@id='rowheader_t1_0'])[2] System Administrator
-
-Application admin Delete Standard User Existing user
- [Documentation] Naviage to Users tab
- 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]
- 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]
- Click Element xpath=//button[@id='div-confirm-ok-button']
- Click Button xpath=//button[@id='new-user-save-button']
-# Input Text xpath=//input[@id='input-table-search'] ${Existing_User}
-# Is Element Visible xpath=(//*[contains(.,'Portal')] )[2]
- Element Should Not Contain xpath=//*[@table-data='users.accountUsers'] Portal
- #Click Image xpath=//img[@alt='Onap Logo']
- Set Selenium Implicit Wait 3000
-
+ [Documentation] Navigate to Users tab
+ Click Element xpath=(.//*[@id='rowheader_t1_0'])[2]
+ # 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=//*[@id='div-app-name-Default']/following::input[@id='Portal-Notification-Admin-checkbox']
+ Click Element xpath=//*[@id='div-app-name-dropdown-xDemo-App']
+ Click Element xpath=//*[@id='div-app-name-xDemo-App']/following::input[@id='Standard-User-checkbox']
+ Click Element xpath=//*[@id='div-app-name-xDemo-App']/following::input[@id='System-Administrator-checkbox']
+ Set Selenium Implicit Wait 3000
+ Click Button xpath=//button[@id='new-user-save-button']
+ Set Selenium Implicit Wait 3000
+ Page Should Contain Users
+ #Click Button xpath=//input[@id='dropdown1']
+ #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] Account Administrator
+ Element Text Should Be xpath=(.//*[@id='rowheader_t1_0'])[2] System Administrator
+
+Application admin Delete Standard User Existing user
+ [Documentation] Navigate to Users tab
+ 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]
+ 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]
+ Click Element xpath=//button[@id='div-confirm-ok-button']
+ Click Button xpath=//button[@id='new-user-save-button']
+# Input Text xpath=//input[@id='input-table-search'] ${Existing_User}
+# Is Element Visible xpath=(//*[contains(.,'Portal')] )[2]
+ Element Should Not Contain xpath=//*[@table-data='users.accountUsers'] Portal
+ #Click Image xpath=//img[@alt='Onap Logo']
+ Set Selenium Implicit Wait 3000
+
Application admin Logout from Portal GUI
[Documentation] Logout from Portal GUI
Click Element xpath=//div[@id='header-user-icon']
- #Set Selenium Implicit Wait 3000
+ #Set Selenium Implicit Wait 3000
Click Button xpath=//button[contains(text(),'Log out')]
- #Set Selenium Implicit Wait 3000
- Title Should Be Login
-
-Standared user Login To Portal GUI
+ #Set Selenium Implicit Wait 3000
+ Title Should Be Login
+
+Standard user Login To Portal GUI
[Documentation] Logs into Portal GUI
# Setup Browser Now being managed by test case
##Setup Browser
@@ -1009,53 +992,51 @@ Standared user Login To Portal GUI
Input Text xpath=//input[@ng-model='loginId'] ${Sta_LoginID}
Input Password xpath=//input[@ng-model='password'] ${Sta_Loginpwd}
Click Link xpath=//a[@id='loginBtn']
- Wait Until Page Contains Element xpath=//img[@alt='Onap Logo'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
- Log Logged in to ${PORTAL_URL}${PORTAL_ENV}
-
-Standared user Navigation Application Link Tab
+ Wait Until Page Contains Element xpath=//img[@alt='Onap Logo'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ Log Logged in to ${PORTAL_URL}${PORTAL_ENV}
+
+Standard user Navigation Application Link Tab
[Documentation] Logs into Portal GUI as application admin
#Portal admin Go To Portal HOME
Click Element xpath=.//h3[contains(text(),'xDemo App')]/following::div[1]
- Page Should Contain ONAP Portal
+ Page Should Contain ONAP Portal
Click Element xpath=(.//span[@id='tab-Home'])[1]
Set Selenium Implicit Wait 3000
-
-Standared user Navigation Functional Menu
+
+Standard user Navigation Functional Menu
[Documentation] Logs into Portal GUI as application admin
Click Link xpath=//a[contains(.,'Manage')]
Mouse Over xpath=//*[contains(text(),'Technology Insertion')]
- Click Link xpath= //*[contains(text(),'Infrastructure VNF Provisioning')]
+ Click Link xpath= //*[contains(text(),'Infrastructure VNF Provisioning')]
Page Should Contain Welcome to VID
- Click Element xpath=(.//span[@id='tab-Home'])[1]
- Set Selenium Implicit Wait 3000
-
-
-Standared user Broadcast Notifications
- [Documentation] Logs into Portal GUI as application admin
+ Click Element xpath=(.//span[@id='tab-Home'])[1]
+ Set Selenium Implicit Wait 3000
+
+Standard user Broadcast Notifications
+ [Documentation] Logs into Portal GUI as application admin
[Arguments] ${AdminBroadCastMsg}
- Click element xpath=//*[@id='megamenu-notification-button']
- Click element xpath=//*[@id='notification-history-link']
- Wait until Element is visible xpath=//*[@id='app-title'] timeout=10
- Table Column Should Contain xpath=//*[@id='notification-history-table'] 2 ${AdminBroadCastMsg}
- log ${AdminBroadCastMsg}
-
-
-Standared user Category Notifications
- [Documentation] Logs into Portal GUI as application admin
+ Click Element xpath=//*[@id='megamenu-notification-button']
+ Click Element xpath=//*[@id='notification-history-link']
+ Wait until Element is visible xpath=//*[@id='app-title'] timeout=10
+ Table Column Should Contain xpath=//*[@id='notification-history-table'] 2 ${AdminBroadCastMsg}
+ Log ${AdminBroadCastMsg}
+
+Standard user Category Notifications
+ [Documentation] Logs into Portal GUI as application admin
[Arguments] ${AdminCategoryMsg}
- #click element xpath=//*[@id='megamenu-notification-button']
- #click element xpath=//*[@id="notification-history-link"]
- Wait until Element is visible xpath=//*[@id='app-title'] timeout=10
- Table Column Should Contain xpath=//*[@id='notification-history-table'] 2 ${AdminCategoryMsg}
- log ${AdminCategoryMsg}
-
-Standared user Logout from Portal GUI
+ #Click Element xpath=//*[@id='megamenu-notification-button']
+ #Click Element xpath=//*[@id="notification-history-link"]
+ Wait until Element is visible xpath=//*[@id='app-title'] timeout=10
+ Table Column Should Contain xpath=//*[@id='notification-history-table'] 2 ${AdminCategoryMsg}
+ Log ${AdminCategoryMsg}
+
+Standard user Logout from Portal GUI
[Documentation] Logout from Portal GUI
Click Element xpath=//div[@id='header-user-icon']
Click Button xpath=//button[contains(.,'Log out')]
- #Confirm Action
- Title Should Be Login
-
+ #Confirm Action
+ Title Should Be Login
+
Portal admin Add New Account
Click Link //*[@id="parent-item-App-Account-Management"]
Click Button xpath=//button[@ng-click='toggleSidebar()']
@@ -1070,18 +1051,18 @@ Portal admin Add New Account
# #Click Button xpath=//button[@ng-click='admins.openAddNewAdminModal()']
#account-details-next-button
Click Button xpath=//button[@ng-click='accountAddDetails.saveChanges()']
-
+
Portal admin Delete Account
Click Link //*[@id="parent-item-App-Account-Management"]
Click Button xpath=//button[@ng-click='toggleSidebar()']
Set Selenium Implicit Wait 3000
Click Button //*[@id="account-onboarding-button-add"]
Set Selenium Implicit Wait 3000
-
+
Tear Down
[Documentation] Close all browsers
Close All Browsers
-
+
Enhanced Notification on ONAP Portal
[Documentation] Runs portal Post request
[Arguments] ${data_path} ${data}
@@ -1090,8 +1071,8 @@ Enhanced Notification on ONAP Portal
${headers}= Create Dictionary Accept=application/json Content-Type=application/json Authorization=Basic amlyYTpfcGFzcw== username=jira password=_pass
${resp}= Post Request portal ${data_path} data=${data} headers=${headers}
# Log Received response from portal ${resp.text}
- [Return] ${resp}
-
+ [Return] ${resp}
+
Notification on ONAP Portal
[Documentation] Create Config portal
${configportal}= Create Dictionary jira_id=${jira}
@@ -1099,57 +1080,56 @@ Notification on ONAP Portal
${output} = Apply Template portal ${portal_Template} ${configportal}
${post_resp} = Enhanced Notification on ONAP Portal ${RESOURCE_PATH} ${output}
Should Be Equal As Strings ${post_resp.status_code} 200
-
+
Portal Application Account Management
- [Documentation] Naviage to Application Account Management tab
- Click Link xpath=//a[@title='App Account Management']
- Click Button xpath=//button[@id='account-onboarding-button-add']
- Input Text xpath=//input[@name='name'] JIRA
- Input Text xpath=//input[@name='username'] jira
- Input Text xpath=//input[@name='password'] _pass
- Input Text xpath=//input[@name='repassword'] _pass
- Click Element xpath=//div[@ng-click='accountAddDetails.saveChanges()']
- Element Text Should Be xpath=//*[@table-data='serviceList'] JIRA
-
+ [Documentation] Navigate to Application Account Management tab
+ Click Link xpath=//a[@title='App Account Management']
+ Click Button xpath=//button[@id='account-onboarding-button-add']
+ Input Text xpath=//input[@name='name'] JIRA
+ Input Text xpath=//input[@name='username'] jira
+ Input Text xpath=//input[@name='password'] _pass
+ Input Text xpath=//input[@name='repassword'] _pass
+ Click Element xpath=//div[@ng-click='accountAddDetails.saveChanges()']
+ Element Text Should Be xpath=//*[@table-data='serviceList'] JIRA
+
Portal Application Account Management validation
- [Documentation] Naviage to user notification tab
- Click Link xpath=//a[@id='parent-item-User-Notifications']
- click element xpath=//*[@id="megamenu-notification-button"]
- Click element xpath=//*[@id="notification-history-link"]
- Wait until Element is visible xpath=//*[@id="notification-history-table"] timeout=10
- Table Column Should Contain xpath=//*[@id="notification-history-table"] 1 JIRA
-
-
+ [Documentation] Navigate to user notification tab
+ Click Link xpath=//a[@id='parent-item-User-Notifications']
+ Click Element xpath=//*[@id="megamenu-notification-button"]
+ Click Element xpath=//*[@id="notification-history-link"]
+ Wait until Element is visible xpath=//*[@id="notification-history-table"] timeout=10
+ Table Column Should Contain xpath=//*[@id="notification-history-table"] 1 JIRA
+
Portal AAF new fields
- [Documentation] Naviage to user Application details tab
+ [Documentation] Navigate to user Application details tab
Click Link xpath=//a[@title='Application Onboarding']
Click Element xpath=//td[contains(.,'xDemo App')]
Page Should Contain Name Space
Page Should Contain Centralized
- Click Element xpath=//button[@id='button-notification-cancel']
- Set Selenium Implicit Wait 3000
+ Click Element xpath=//button[@id='button-notification-cancel']
+ Set Selenium Implicit Wait 3000
Portal Change REST URL
- [Documentation] Naviage to user Application details tab
+ [Documentation] Navigate 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}
+ 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
+
+Admin widget download
Go To ${PORTAL_HOME_URL}
- Wait until page contains Element xpath=//a[@title='Widget Onboarding'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
- click Link xpath=//a[@title='Widget Onboarding']
- Wait until page contains Element xpath=//table[@class='ng-scope']
+ Wait Until Page Contains Element xpath=//a[@title='Widget Onboarding'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ Click Link xpath=//a[@title='Widget Onboarding']
+ Wait Until Page Contains Element xpath=//table[@class='ng-scope']
${td_id}= get element attribute xpath=//*[contains(text(),'Events')]@id
- log ${td_id}
+ Log ${td_id}
${test}= Get Substring ${td_id} -1
- log ${test}
+ Log ${test}
${download_link_id}= Catenate 'widget-onboarding-div-download-widget-${test}'
- click Element xpath=//*[@id=${download_link_id}]
+ Click Element xpath=//*[@id=${download_link_id}]
Reset widget layout option
Go To ${PORTAL_HOME_URL}
@@ -1157,7 +1137,7 @@ Reset widget layout option
Execute Javascript document.getElementById('widgets').scrollTo(0,1400)
Wait Until Page Contains Element xpath=//*[@id='widget-gridster-Events-icon'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
Execute Javascript document.getElementById('widgets').scrollTo(0,1800)
- Drag And Drop By Offset xpath=//*[@id='widget-gridster-Events-icon'] 500 500
+ Drag And Drop By Offset xpath=//*[@id='widget-gridster-Events-icon'] 500 500
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()
@@ -1172,10 +1152,9 @@ Add Portal Admin
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']
+ 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']
+ Click Button xpath=//*[@id='div-confirm-ok-button']