Test_SNF_PRL_07_UsersManagement
open /portal/classic/
echo -- Users Management--
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']
echo -- Add new user --
clickAndWait link=New Staff
type username Test_SNF_PRL_07
type password Test_SNF_PRL_07
type Confirmpassword Test_SNF_PRL_07
type firstName Test_SNF_PRL_07
type lastName Test_SNF_PRL_07
type email Test_SNF_PRL_07@gmail.com
echo -- Choose User Profile --
waitForElementPresent //div[text()='User Profile']
click //div[text()='User Profile']
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[@id="UIAccountPortlet"]//a[text()="OK"]
click //div[@id="UIAccountPortlet"]//a[text()="OK"]
echo -- Go to Users and group management --
clickAndWait link=Users and groups management
echo -- Users list is shown properly--
waitForTextPresent Test_SNF_PRL_07
verifyTextPresent Test_SNF_PRL_07
waitForTextPresent demo
verifyTextPresent demo
waitForTextPresent john
verifyTextPresent john
waitForTextPresent mary
verifyTextPresent mary
waitForTextPresent root
verifyTextPresent root
waitForElementPresent searchTerm
type searchTerm Test_SNF_PRL_07
waitForElementPresent //form[@id='UISearchForm']//a[@title="Quick Search"]
click //form[@id='UISearchForm']//a[@title="Quick Search"]
echo -- Edit user --
waitForElementPresent //img[@alt='ViewUserInfo']
click //img[@alt='ViewUserInfo']
waitForElementPresent firstName
type firstName Test_SNF_PRL_07_edit
type lastName Test_SNF_PRL_07_edit
waitForElementPresent link=Save
click link=Save
waitForTextPresent The user profile has been updated.
verifyTextPresent The user profile has been updated.
waitForElementPresent //div[@id="UIOrganizationPortlet"]//a[text()="OK"]
click //div[@id="UIOrganizationPortlet"]//a[text()="OK"]
echo -- Delete user --
waitForElementPresent searchTerm
type searchTerm Test_SNF_PRL_07
waitForElementPresent //form[@id='UISearchForm']//a[@title="Quick Search"]
click //form[@id='UISearchForm']//a[@title="Quick Search"]
waitForElementPresent //img[@alt='DeleteUser']
click //img[@alt='DeleteUser']
assertConfirmation Are you sure you want to delete Test_SNF_PRL_07 user?
waitForElementPresent //div[contains(@onclick,"action=Close")]
click //div[contains(@onclick,"action=Close")]
waitForTextNotPresent Test_SNF_PRL_07
verifyTextNotPresent Test_SNF_PRL_07
waitForElementPresent link=Sign out
clickAndWait link=Sign out