aboutsummaryrefslogtreecommitdiffstats
path: root/robot
diff options
context:
space:
mode:
authorkaihlavi <l.kaihlavirt@partner.samsung.com>2019-08-09 15:41:09 +0300
committerkaihlavi <l.kaihlavirt@partner.samsung.com>2019-08-09 16:05:16 +0300
commit5b620eba5503aecf979f52d219bfae3d8badc783 (patch)
tree778c66d7c1e015dcbee2359c76f021487bdc66f6 /robot
parentfacbc292869bee6cdaa40649e62e347091b63f96 (diff)
Improve descriptions and correct typos
- Improve non-descriptive descriptions - Correct numerous typos in test case and keyword names - Fix indentation and clean up tabs and redundant whitespaces Issue-ID: PORTAL-702 Signed-off-by: kaihlavi <l.kaihlavirt@partner.samsung.com> Change-Id: Idcf03dcd7d0324b734fa6bd14fb5ce0f873b1c6e
Diffstat (limited to 'robot')
-rw-r--r--robot/resources/portal-sdk/portalDef.robot422
-rw-r--r--robot/resources/portal_interface.robot8
-rw-r--r--robot/testsuites/portalApp.robot74
3 files changed, 252 insertions, 252 deletions
diff --git a/robot/resources/portal-sdk/portalDef.robot b/robot/resources/portal-sdk/portalDef.robot
index 1e0ca287..f44590f2 100644
--- a/robot/resources/portal-sdk/portalDef.robot
+++ b/robot/resources/portal-sdk/portalDef.robot
@@ -1,12 +1,12 @@
*** Settings ***
-Documentation This is RobotFrame work script
-Library SeleniumLibrary
-Library OperatingSystem
-Library RequestsLibrary
-Library DateTime
-Library Collections
-Library String
-Library ONAPLibrary.Templating WITH NAME Templating
+Documentation Keywords for ONAP Portal SDK management operations
+Library SeleniumLibrary
+Library OperatingSystem
+Library RequestsLibrary
+Library DateTime
+Library Collections
+Library String
+Library ONAPLibrary.Templating WITH NAME Templating
Resource ../browser_setup.robot
@@ -52,31 +52,32 @@ Portal admin Login To Portal GUI
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
+ 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]
-
-Portal admin Add Application Admin Exiting User
- [Documentation] Naviage to Admins tab
+
+Portal admin Add Application Admin Existing User
+ [Documentation] Navigate to Admins tab and add new application admin rights to existing user
[Arguments] ${login_id}
- Wait Until Element Is Visible xpath=//a[@title='Admins'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ 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'] ${login_id}
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]
Click Button xpath=//button[@id='div-updateAdminAppsRoles']
Click Element xpath=//button[@id='admin-div-ok-button']
@@ -86,32 +87,32 @@ Portal admin Add Application Admin Exiting User
Click Element xpath=//input[@id='dropdown1']
Click Element xpath=//li[contains(.,'xDemo App' )]
Input Text xpath=//input[@id='input-table-search'] ${login_id}
- Table Column Should Contain xpath=//*[@table-data='admins.adminsTableData'] 1 ${login_id}
+ Table Column Should Contain xpath=//*[@table-data='admins.adminsTableData'] 1 ${login_id}
-Portal admin Delete Application Admin Existing User
- [Documentation] Naviage to Admins tab
+Portal admin Delete Application Admin Existing User
+ [Documentation] Navigate to Admins tab
[Arguments] ${login_id}
- Wait Until Element Is Visible xpath=//a[@title='Admins'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ 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()']
Input Text xpath=//input[@id='input-table-search'] ${login_id}
- Click Element xpath=(//span[contains(.,'portal')] )[1]
+ Click Element xpath=(//span[contains(.,'portal')] )[1]
Click Element xpath=//*[@id='select-app-xDemo-App']/following::i[@id='i-delete-application']
Click Element xpath=//button[@id='div-confirm-ok-button']
Click Button xpath=//button[@id='div-updateAdminAppsRoles']
Click Element xpath=//button[@id='admin-div-ok-button']
Element Should Not Contain xpath=//*[@table-data='admins.adminsTableData'] portal
- 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
- [Documentation] Naviage to Users tab
+ [Documentation] Navigate to Users tab
[Arguments] ${login_id} ${email_address}
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'] ${login_id}
@@ -130,7 +131,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
[Arguments] ${login_id}
Click Button xpath=//button[@id='next-button']
Click Element xpath=//*[@id='div-app-name-dropdown-xDemo-App']
@@ -142,16 +143,16 @@ AdminUser does not exist already
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 ${login_id}
- Click Image xpath=//img[@alt='Onap Logo']
+ Table Column Should Contain xpath=//*[@table-data='users.accountUsers'] 1 ${login_id}
+ 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
[Arguments] ${login_id} ${email_address}
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'] ${login_id}
@@ -161,14 +162,14 @@ Portal admin Add Standard User New user
Input Text xpath=//input[@ng-model='searchUsers.newUser.loginPwd'] ${GLOBAL_PORTAL_ADMIN_PWD}
Input Text xpath=//input[@ng-model='searchUsers.newUser.loginPwdCheck'] ${GLOBAL_PORTAL_ADMIN_PWD}
Click Button xpath=//button[@ng-click='searchUsers.addNewUserFun()']
-
+
${Result}= Get Element Count xpath=//*[contains(text(),'User with same loginId already exists')]
Run Keyword if '${Result}'== 0 StaUser does not exist already ${login_id}
... ELSE Goto Home Image
Set Selenium Implicit Wait 3000
-StaUser does not exist already
+StaUser does not exist already
[Arguments] ${login_id}
Click Button xpath=//button[@id='next-button']
Click Element xpath=//*[@id='div-app-name-dropdown-xDemo-App']
@@ -180,17 +181,17 @@ StaUser does not exist already
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 ${login_id}
- Click Image xpath=//img[@alt='Onap Logo']
+ Table Column Should Contain xpath=//*[@table-data='users.accountUsers'] 1 ${login_id}
+ 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
[Arguments] ${login_id} ${email_address}
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'] ${login_id}
Input Text xpath=//input[@ng-model='searchUsers.newUser.lastName'] ${GLOBAL_PORTAL_ADMIN_USER}
@@ -199,19 +200,18 @@ Portal admin Add Application admin User New user -Test
Input Text xpath=//input[@ng-model='searchUsers.newUser.loginPwd'] ${GLOBAL_PORTAL_ADMIN_PWD}
Input Text xpath=//input[@ng-model='searchUsers.newUser.loginPwdCheck'] ${GLOBAL_PORTAL_ADMIN_PWD}
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
-
-Portal admin Add Application Admin Exiting User -APPDEMO
- [Documentation] Naviage to Admins tab
+Portal admin Add Application Admin Existing User -APPDEMO
+ [Documentation] Navigate to Admins tab
[Arguments] ${login_id}
- Wait Until Element Is Visible xpath=//a[@title='Admins'] ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+ 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'] ${login_id}
Click Button xpath=//button[@id='button-search-users']
@@ -226,18 +226,18 @@ 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'] ${login_id}
- Table Column Should Contain xpath=//*[@table-data='admins.adminsTableData'] 1 ${login_id}
- Click Image xpath=//img[@alt='Onap Logo']
- Set Selenium Implicit Wait 3000
-
-Portal admin Add Standard User Existing user
- [Documentation] Naviage to Users tab
+ Table Column Should Contain xpath=//*[@table-data='admins.adminsTableData'] 1 ${login_id}
+ Click Image xpath=//img[@alt='Onap Logo']
+ Set Selenium Implicit Wait 3000
+
+Portal admin Add Standard User Existing user
+ [Documentation] Navigate to Users tab
[Arguments] ${login_id}
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[@ng-click='users.openAddNewUserModal()']
Input Text xpath=//input[@id='input-user-search'] ${login_id}
Click Button xpath=//button[@id='button-search-users']
@@ -251,7 +251,7 @@ Portal admin Add Standard User Existing user
Go To ${PORTAL_HOME_PAGE}
Portal admin Edit Standard User Existing user
- [Documentation] Naviage to Users tab
+ [Documentation] Navigate to Users tab
[Arguments] ${login_id}
Click Link xpath=//a[@title='Users']
Click Element xpath=//input[@id='dropdown1']
@@ -266,7 +266,7 @@ Portal admin Edit Standard User Existing user
Set Selenium Implicit Wait 3000
Page Should Contain Users
- Click Button xpath=//button[@ng-click='toggleSidebar()']
+ Click Button xpath=//button[@ng-click='toggleSidebar()']
Click Button xpath=//button[@ng-click='users.openAddNewUserModal()']
Input Text xpath=//input[@id='input-user-search'] ${login_id}
Click Button xpath=//button[@id='button-search-users']
@@ -282,7 +282,7 @@ Portal admin Edit Standard User Existing user
Input Text xpath=//input[@id='input-table-search'] ${login_id}
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]
@@ -293,18 +293,18 @@ Portal admin Delete Standard User Existing user
Click Button xpath=//button[@id='new-user-save-button']
Element Should Not Contain xpath=//*[@table-data='users.accountUsers'] Portal
Set Selenium Implicit Wait 3000
-
-Functional Top Menu Get Access
- [Documentation] Naviage to Support tab
+
+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
+
+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')]
@@ -313,7 +313,7 @@ Functional Top Menu Contact Us
Set Selenium Implicit Wait 3000
Portal admin Edit Functional menu
- [Documentation] Naviage to Edit Functional menu tab
+ [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
@@ -336,7 +336,7 @@ Portal admin Edit Functional menu
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 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
@@ -354,9 +354,9 @@ Portal admin Edit Functional menu
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
+ [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
@@ -376,7 +376,7 @@ Portal admin Microservice Onboarding
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
@@ -392,77 +392,77 @@ Portal admin Microservice Delete
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']
- Execute Javascript window.scrollTo(0,document.body.scrollHeight);
+ Execute Javascript window.scrollTo(0,document.body.scrollHeight);
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
+Portal Admin Delete Widget for All users
+ [Documentation] Navigate to delete Widget menu tab
Click Link xpath=//a[@title='Widget Onboarding']
Click Element xpath=//input[@id='dropdown1']
Click Element xpath=//li[contains(.,'xDemo App')]
- Click Button xpath=//button[@ng-click='toggleSidebar()']
+ 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
-
-Portal Admin Create Widget for Application Roles
- [Documentation] Naviage to Create Widget menu tab
+
+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 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=//*[@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 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
- Click Link xpath=//a[@title='Widget Onboarding']
+ 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
+
+Portal Admin Delete Widget for Application Roles
Click Link xpath=//a[@title='Widget Onboarding']
Click Element xpath=//input[@id='dropdown1']
Click Element xpath=//li[contains(.,'xDemo App')]
- Click Button xpath=//button[@ng-click='toggleSidebar()']
- Scroll Element Into View xpath=//*[contains(text(),'ONAP-xDemo')]/following::td[3]/div
+ 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
@@ -470,10 +470,10 @@ Portal Admin Delete Widget for Application Roles
Set Selenium Implicit Wait 3000
Portal Admin Edit Widget
- [Documentation] Naviage to Home tab
+ [Documentation] Navigate to Home tab
Click Element xpath=(//h3[contains(text(),'News')]/following::span[1])[1]
Set Browser Implicit Wait 8000
- 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
@@ -485,61 +485,61 @@ 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']
- 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 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
+ 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
+ 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
+
+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
${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"]
Click Element //*[contains(text(),'Broadcast to All Categories')]/following::*[contains(text(),'No')][1]
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=//*[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
+ 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
+ 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']
@@ -556,19 +556,19 @@ Application admin Login To Portal GUI
Click Link xpath=//a[@id='loginBtn']
Sleep 5s
Go To ${PORTAL_HOME_URL}
- 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
-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')]
@@ -576,13 +576,13 @@ Application Admin Navigation Functional Menu
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
+ [Documentation] Navigate to Users tab
[Arguments] ${login_id}
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[@ng-click='users.openAddNewUserModal()']
Input Text xpath=//input[@id='input-user-search'] ${login_id}
Click Button xpath=//button[@id='button-search-users']
@@ -599,9 +599,9 @@ Application admin Add Standard User Existing user
Click Element xpath=//li[contains(.,'xDemo App')]
Input Text xpath=//input[@id='input-table-search'] ${login_id}
Element Text Should Be xpath=(.//*[@id='rowheader_t1_0'])[2] Standard User
-
+
Application admin Edit Standard User Existing user
- [Documentation] Naviage to Users tab
+ [Documentation] Navigate to Users tab
[Arguments] ${login_id}
Click Element xpath=(.//*[@id='rowheader_t1_0'])[2]
Click Element xpath=//*[@id='div-app-name-dropdown-xDemo-App']
@@ -613,8 +613,8 @@ Application admin Edit Standard User Existing user
Page Should Contain Users
Input Text xpath=//input[@id='input-table-search'] ${login_id}
Element Text Should Be xpath=(.//*[@id='rowheader_t1_0'])[2] System Administrator
-
-Application admin Delete Standard User Existing user
+
+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-xDemo-App']/following::*[@id='app-item-delete'][1]
@@ -623,14 +623,14 @@ Application admin Delete Standard User Existing user
Click Button xpath=//button[@id='new-user-save-button']
Element Should Not Contain xpath=//*[@table-data='users.accountUsers'] Portal
Set Selenium Implicit Wait 3000
-
+
Application admin Logout from Portal GUI
[Documentation] Logout from Portal GUI
Click Element xpath=//div[@id='header-user-icon']
Run Keyword And Ignore Error Click Button xpath=//button[contains(text(),'Log out')]
# TODO: Rework Logout tests to deal with intermittent "document unloaded while waiting for result" errors
-
-Standared user Login To Portal GUI
+
+Standard user Login To Portal GUI
[Documentation] Logs into Portal GUI
[Arguments] ${login_id}
Go To ${PORTAL_LOGIN_URL}
@@ -640,47 +640,47 @@ Standared user Login To Portal GUI
Click Link xpath=//a[@id='loginBtn']
Sleep 5s
Go To ${PORTAL_HOME_URL}
- 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
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
+ 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
+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}
- 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
+ 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']
Run Keyword And Ignore Error Click Button xpath=//button[contains(.,'Log out')]
# TODO: Rework Logout tests to deal with intermittent "document unloaded while waiting for result" errors
-
+
Portal admin Add New Account
${rand} Generate Random String 4 [NUMBERS]
${AppUserName}= Set Variable testApp${rand}
@@ -696,22 +696,22 @@ Portal admin Add New Account
Input Text //*[@id="account-details-input-repassword"] ${AppPassword}
#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
-
+
Enhanced Notification on ONAP Portal
[Documentation] Runs portal Post request
[Arguments] ${data_path} ${data}
${session}= Create Session portal ${PORTAL_URL}
${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}
- [Return] ${resp}
-
+ [Return] ${resp}
+
Notification on ONAP Portal
[Documentation] Create Config portal
${configportal}= Create Dictionary jira_id=jira
@@ -719,9 +719,9 @@ Notification on ONAP Portal
${output} = Templating.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
+ [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
@@ -732,35 +732,35 @@ Portal Application Account Management
Element Text Should Be xpath=//*[@table-data='serviceList'] JIRA
Portal Application Account Management validation
- [Documentation] Naviage to user notification tab
+ [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
+ 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}
+ 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
@@ -776,7 +776,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()
@@ -794,7 +794,7 @@ Add Portal Admin
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']
diff --git a/robot/resources/portal_interface.robot b/robot/resources/portal_interface.robot
index 523a9166..402a7506 100644
--- a/robot/resources/portal_interface.robot
+++ b/robot/resources/portal_interface.robot
@@ -1,8 +1,8 @@
*** Settings ***
-Documentation The main interface for interacting with Portal. It handles low level stuff like managing the http request library and Portal required fields
-Library RequestsLibrary
-Library ONAPLibrary.Utilities
-Library SeleniumLibrary
+Documentation The main interface for interacting with Portal. It handles low level stuff like managing the http request library and Portal required fields
+Library RequestsLibrary
+Library ONAPLibrary.Utilities
+Library SeleniumLibrary
Library Collections
Library String
diff --git a/robot/testsuites/portalApp.robot b/robot/testsuites/portalApp.robot
index a4ed5831..cef943c3 100644
--- a/robot/testsuites/portalApp.robot
+++ b/robot/testsuites/portalApp.robot
@@ -1,13 +1,13 @@
*** Settings ***
-Test Timeout 5 minute
-Documentation This is RobotFrame work script
-Resource ../resources/portal-sdk/portalDef.robot
-Resource ../resources/portal_interface.robot
-Library SeleniumLibrary
-Suite Teardown Close All Browsers
+Test Timeout 5 minutes
+Documentation End-to-end test cases for basic ONAP Portal functionalities
+Resource ../resources/portal-sdk/portalDef.robot
+Resource ../resources/portal_interface.robot
+Library SeleniumLibrary
+Suite Teardown Close All Browsers
*** Test Cases ***
-
+
Login into Portal URL
[TAGS] portal
Portal admin Login To Portal GUI
@@ -16,7 +16,7 @@ Portal Change REST URL Of X-DemoApp
[TAGS] portal
[Documentation] Portal Change REST URL Of X-DemoApp
Portal Change REST URL
-
+
Portal R1 Release for AAF
[TAGS] portal
[Documentation] ONAP Portal R1 functionality for AAF test
@@ -24,68 +24,68 @@ Portal R1 Release for AAF
EP Admin widget layout reset
[TAGS] portal
- Reset widget layout option
+ Reset widget layout option
Validate Functional Top Menu Get Access
[TAGS] portal
- Functional Top Menu Get Access
-
+ Functional Top Menu Get Access
+
Validate Functional Top Menu Contact Us
[TAGS] portal
- Functional Top Menu Contact Us
-
+ Functional Top Menu Contact Us
+
Edit Functional Menu
[TAGS] portal
- Portal admin Edit Functional menu
-
+ Portal admin Edit Functional menu
+
Create a Test user for Application Admin -Test
[TAGS] portal
${login_id} ${email_address}= Generate Random User portal
- Portal admin Add Application admin User New user -Test ${login_id} ${email_address}
+ Portal admin Add Application admin User New user -Test ${login_id} ${email_address}
-Create a Test User for Apllication Admin
+Create a Test User for Application Admin
[TAGS] portal
${login_id} ${email_address}= Generate Random User demoapp
- Portal admin Add Application admin User New user ${login_id} ${email_address}
-
+ Portal admin Add Application admin User New user ${login_id} ${email_address}
+
Add Application Admin for Existing User Test user
[TAGS] portal
${login_id} ${email_address}= Generate Random User demoapp
- Portal admin Add Application Admin Exiting User -APPDEMO ${login_id}
+ Portal admin Add Application Admin Existing User -APPDEMO ${login_id}
-Create a Test user for Standared User
+Create a Test user for Standard User
[TAGS] portal
- ${login_id} ${email_address}= Generate Random User demosta
- Portal admin Add Standard User New user ${login_id} ${email_address}
-
-Add Application Admin for Exisitng User
+ ${login_id} ${email_address}= Generate Random User demosta
+ Portal admin Add Standard User New user ${login_id} ${email_address}
+
+Add Application Admin for Existing User
[TAGS] portal
${login_id} ${email_address}= Generate Random User portal
- Portal admin Add Application Admin Exiting User ${login_id}
-
-Delete Application Admin for Exisitng User
+ Portal admin Add Application Admin Existing User ${login_id}
+
+Delete Application Admin for Existing User
[TAGS] portal
${login_id} ${email_address}= Generate Random User portal
- Portal admin Delete Application Admin Existing User ${login_id}
-
+ Portal admin Delete Application Admin Existing User ${login_id}
+
Logout from Portal GUI as Portal Admin
[TAGS] portal
Portal admin Logout from Portal GUI
# Application Admin user Test cases
-
+
Login To Portal GUI as APP Admin
[TAGS] portal
${login_id} ${email_address}= Generate Random User demoapp
- Application admin Login To Portal GUI ${login_id}
+ Application admin Login To Portal GUI ${login_id}
Logout from Portal GUI as APP Admin
[TAGS] portal
- Application admin Logout from Portal GUI
-
+ Application admin Logout from Portal GUI
+
#Standard User Test cases
-
-Logout from Portal GUI as Standared User
+
+Logout from Portal GUI as Standard User
[TAGS] portal
- Standared User Logout from Portal GUI
+ Standard User Logout from Portal GUI
Close All Browsers