open |
/portal/public/classic/ |
|
echo |
-- Create new user -- |
|
windowMaximize |
|
|
click |
link=Sign in |
|
waitForElementPresent |
username |
|
type |
username |
root |
type |
password |
gtn |
clickAndWait |
xpath=//div[@id='UIPortalLoginFormAction']//a |
|
waitForElementPresent |
link=New Staff |
|
clickAndWait |
link=New Staff |
|
waitForElementPresent |
username |
|
type |
username |
Test_POR_20_014 |
type |
password |
Test_POR_20_014 |
type |
Confirmpassword |
Test_POR_20_014 |
type |
firstName |
Test_POR_20_014 |
type |
lastName |
Test_POR_20_014 |
type |
email |
Test_POR_20_014@yahoo.com |
echo |
-- Choose User Profile tab -- |
|
waitForElementPresent |
//div[3]/div/div/div[1]/div/div/div/div/div/div/div/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div |
|
click |
//div[3]/div/div/div[1]/div/div/div/div/div/div/div/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div |
|
waitForElementPresent |
user.language |
|
select |
user.language |
label=English |
waitForElementPresent |
link=Save |
|
click |
link=Save |
|
waitForTextPresent |
You have registered a new account. |
|
verifyTextPresent |
You have registered a new account. |
|
waitForElementPresent |
//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a |
|
click |
//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a |
|
echo |
--Select User and group managent in menu-- |
|
waitForElementPresent |
link=Users and groups management |
|
click |
link=Users and groups management |
|
waitForElementPresent |
xpath=//div[@id='UIOrganizationPortlet']//div[@class='ManagementIconContainer']/a[@class='GroupButton'] |
|
click |
xpath=//div[@id='UIOrganizationPortlet']//div[@class='ManagementIconContainer']/a[@class='GroupButton'] |
|
echo |
-select group from the tree- |
|
waitForElementPresent |
link=Platform |
|
click |
link=Platform |
|
waitForElementPresent |
link=Administrators |
|
click |
link=Administrators |
|
waitForElementPresent |
xpath=//td[2]/a |
|
click |
xpath=//td[2]/a |
|
waitForElementPresent |
Test_POR_20_014 |
|
click |
Test_POR_20_014 |
|
echo |
--Click add button-- |
|
waitForElementPresent |
xpath=//form[@id='UIUserSelector']//div[@class='UIAction']//a[@class='ActionButton LightBlueStyle'] |
|
click |
xpath=//form[@id='UIUserSelector']//div[@class='UIAction']//a[@class='ActionButton LightBlueStyle'] |
|
waitForElementPresent |
membership |
|
select |
membership |
label=manager |
waitForElementPresent |
link=Save |
|
click |
link=Save |
|
clickAndWait |
link=Sign out |
|
open |
/portal/public/classic |
|
echo |
--Create new page for new user-- |
|
click |
link=Sign in |
|
waitForElementPresent |
username |
|
type |
username |
Test_POR_20_014 |
type |
password |
Test_POR_20_014 |
clickAndWait |
xpath=//div[@id='UIPortalLoginFormAction']/div/div/div |
|
echo |
--Select Page Mangement on menu item-- |
|
waitForElementPresent |
link=Page Management |
|
click |
link=Page Management |
|
waitForElementPresent |
xpath=//div[@id='UIPageBrowser']/div[2]/table/tbody/tr/td/div/div/div/div/a |
|
click |
xpath=//div[@id='UIPageBrowser']/div[2]/table/tbody/tr/td/div/div/div/div/a |
|
waitForElementPresent |
name |
|
type |
name |
Test_POR_20_014 |
type |
title |
Test_POR_20_014 |
echo |
-- Page Layout tab -- |
|
waitForElementPresent |
//div[5]/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div |
|
click |
//div[5]/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div |
|
waitForElementPresent |
link=Save |
|
click |
link=Save |
|
waitForElementPresent |
link=Sign out |
|
clickAndWait |
link=Sign out |
|
open |
/portal/public/classic |
|
echo |
--Create new page for root-- |
|
click |
link=Sign in |
|
waitForElementPresent |
username |
|
type |
username |
root |
type |
password |
gtn |
clickAndWait |
xpath=//div[@id='UIPortalLoginFormAction']/div/div/div |
|
echo |
--Select Page Mangement on menu item-- |
|
waitForElementPresent |
link=Page Management |
|
click |
link=Page Management |
|
waitForElementPresent |
xpath=//div[@id='UIPageBrowser']/div[2]/table/tbody/tr/td/div/div/div/div/a |
|
click |
xpath=//div[@id='UIPageBrowser']/div[2]/table/tbody/tr/td/div/div/div/div/a |
|
waitForElementPresent |
name |
|
type |
name |
Test_POR_20_014 |
type |
title |
Test_POR_20_014 |
echo |
-- Page Layout tab -- |
|
waitForElementPresent |
//div[5]/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div |
|
click |
//div[5]/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div |
|
waitForElementPresent |
link=Save |
|
click |
link=Save |
|
echo |
--Search new page created-- |
|
waitForElementPresent |
searchTerm |
|
type |
searchTerm |
Test_POR_20_014 |
waitForElementPresent |
searchOption |
|
select |
searchOption |
label=Title |
waitForElementPresent |
xpath=//form[@id='UIPageSearch']/div[2]/a |
|
click |
xpath=//form[@id='UIPageSearch']/div[2]/a |
|
echo |
--Delete page of new user-- |
|
waitForElementPresent |
xpath=//img[@title='Delete Page'] |
|
click |
xpath=//img[@title='Delete Page'] |
|
waitForConfirmationPresent |
|
|
assertConfirmation |
Do you want to delete this page? |
|
waitForElementPresent |
xpath=//div[@id='UIPortalApplication']/div[@class='UIPopupWindow UIDragObject']//div[@class='MiddleLeftSideDecorator']//div[@class='UIPopupMessages']/div[@class='MessageActionBar']//a |
|
click |
xpath=//div[@id='UIPortalApplication']/div[@class='UIPopupWindow UIDragObject']//div[@class='MiddleLeftSideDecorator']//div[@class='UIPopupMessages']/div[@class='MessageActionBar']//a |
|
echo |
--Delete page of root-- |
|
waitForElementPresent |
xpath=//img[@title='Delete Page'] |
|
click |
xpath=//img[@title='Delete Page'] |
|
waitForConfirmationPresent |
|
|
assertConfirmation |
Do you want to delete this page? |
|
waitForElementPresent |
xpath=//div[@id='UIPortalApplication']/div[@class='UIPopupWindow UIDragObject']//div[@class='MiddleLeftSideDecorator']//div[@class='UIPopupMessages']/div[@class='MessageActionBar']//a |
|
click |
xpath=//div[@id='UIPortalApplication']/div[@class='UIPopupWindow UIDragObject']//div[@class='MiddleLeftSideDecorator']//div[@class='UIPopupMessages']/div[@class='MessageActionBar']//a |
|
echo |
-- Choose User and group management -- |
|
clickAndWait |
link=Users and groups management |
|
waitForElementPresent |
//div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[1]/div[1] |
|
click |
//div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[1]/div[1] |
|
echo |
-- Search user -- |
|
waitForElementPresent |
searchTerm |
|
type |
searchTerm |
Test_POR_20_014 |
waitForElementPresent |
//form[@id='UISearchForm']/div[2]/a |
|
click |
//form[@id='UISearchForm']/div[2]/a |
|
echo |
-- Delete user -- |
|
waitForElementPresent |
//img[@alt='DeleteUser'] |
|
click |
//img[@alt='DeleteUser'] |
|
assertConfirmation |
Are you sure you want to delete Test_POR_20_014 user? |
|
waitForTextPresent |
No result found. |
|
verifyTextPresent |
No result found. |
|
waitForElementPresent |
//div[5]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a |
|
click |
//div[5]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a |
|
waitForElementPresent |
link=Sign out |
|
clickAndWait |
link=Sign out |
|