open |
/portal/public/classic/ |
|
echo |
-- Check membership information of user after role of him in a group was deleted-- |
|
windowMaximize |
|
|
click |
link=Sign in |
|
waitForElementPresent |
username |
|
type |
username |
root |
type |
password |
gtn |
clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div/a |
|
clickAndWait |
link=New Staff |
|
waitForElementPresent |
username |
|
type |
username |
Test_PRL_04_04_006 |
type |
password |
Test_PRL_04_04_006 |
type |
Confirmpassword |
Test_PRL_04_04_006 |
type |
firstName |
Test_PRL_04_04_006 |
type |
lastName |
Test_PRL_04_04_006 |
type |
email |
Test_PRL_04_04_006@gmail.com |
echo |
-- Choose User Profile tab-- |
|
click |
//div[@id='UIAccountPortlet']/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div |
|
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 |
-- Go to User and Group Management-- |
|
clickAndWait |
link=Users and groups management |
|
echo |
-- Add new membership-- |
|
waitForElementPresent |
//div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[3]/div[2] |
|
click |
//div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[3]/div[2] |
|
waitForElementPresent |
name |
|
type |
name |
test_plr_04_04_006 |
type |
description |
test_plr_04_04_006 |
click |
link=Save |
|
echo |
-- Add an user into a specific group with new membership-- |
|
click |
//div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[2]/div[1] |
|
waitForElementPresent |
link=Platform |
|
click |
link=Platform |
|
waitForElementPresent |
//form[@id='UIGroupMembershipForm']/div[2]/div/table/tbody/tr[1]/td[2]/a |
|
click |
//form[@id='UIGroupMembershipForm']/div[2]/div/table/tbody/tr[1]/td[2]/a |
|
waitForElementPresent |
Test_PRL_04_04_006 |
|
click |
Test_PRL_04_04_006 |
|
click |
//form[@id='UIUserSelector']/div[2]/div[2]/table/tbody/tr/td/a[1]/div/div/div |
|
waitForElementPresent |
membership |
|
select |
membership |
label=test_plr_04_04_006 |
waitForElementPresent |
link=Save |
|
click |
link=Save |
|
echo |
-- Check membership information of user after assign into group-- |
|
click |
//div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[1]/div[1] |
|
waitForElementPresent |
//div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[1]/div[1] |
|
waitForElementPresent |
searchTerm |
|
type |
searchTerm |
Test_PRL_04_04_006 |
waitForElementPresent |
//form[@id='UISearchForm']/div[2]/a |
|
click |
//form[@id='UISearchForm']/div[2]/a |
|
echo |
-- Click edit user icon -- |
|
waitForElementPresent |
//img[@alt='ViewUserInfo'] |
|
click |
//img[@alt='ViewUserInfo'] |
|
waitForElementPresent |
//div[@id='UIUserManagement']/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div |
|
echo |
-- Choose User Profile tab-- |
|
waitForElementPresent |
//div[@id='UIUserManagement']/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div |
|
click |
//div[@id='UIUserManagement']/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div |
|
echo |
-- User Membership tab-- |
|
waitForElementPresent |
//div[@id='UIUserManagement']/div[1]/div/div/div/div/div/div/div/div/div[3]/div/div/div/div |
|
click |
//div[@id='UIUserManagement']/div[1]/div/div/div/div/div/div/div/div/div[3]/div/div/div/div |
|
waitForElementPresent |
link=Cancel |
|
click |
link=Cancel |
|
echo |
-- Delete membership-- |
|
click |
//div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[3]/div[1] |
|
waitForElementPresent |
//div[@id='UIGrid']/table/tbody/tr[4]/td[5]/div/img[2] |
|
click |
//div[@id='UIGrid']/table/tbody/tr[4]/td[5]/div/img[2] |
|
assertConfirmation |
Are you sure you want to delete this membership? |
|
echo |
-- Check membership information of user after delete membership-- |
|
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] |
|
waitForElementPresent |
//form[@id='UISearchForm']/div[2]/a |
|
click |
//form[@id='UISearchForm']/div[2]/a |
|
waitForElementPresent |
//img[@alt='ViewUserInfo'] |
|
click |
//img[@alt='ViewUserInfo'] |
|
waitForElementPresent |
link=Cancel |
|
click |
link=Cancel |
|
echo |
-- Delete user -- |
|
waitForElementPresent |
//form[@id='UISearchForm']/div[2]/a |
|
click |
//form[@id='UISearchForm']/div[2]/a |
|
waitForElementPresent |
//img[@alt='DeleteUser'] |
|
click |
//img[@alt='DeleteUser'] |
|
assertConfirmation |
Are you sure you want to delete Test_PRL_04_04_006 user? |
|
clickAndWait |
link=Sign out |
|