open |
/portal/public/classic/ |
|
echo |
-- Check updating users list after registering new one-- |
|
windowMaximize |
|
|
click |
link=Sign in |
|
waitForElementPresent |
username |
|
type |
username |
root |
type |
password |
gtn |
clickAndWait |
//div[@id='UIPortalLoginFormAction']//a[text()='Sign in'] |
|
echo |
-- Add new user-- |
|
waitForElementPresent |
link=New Staff |
|
clickAndWait |
link=New Staff |
|
waitForElementPresent |
username |
|
type |
username |
Test_PRL_02_01_002 |
type |
password |
Test_PRL_02_01_002 |
type |
Confirmpassword |
Test_PRL_02_01_002 |
type |
firstName |
Test_PRL_02_01_002 |
type |
lastName |
Test_PRL_02_01_002 |
type |
email |
Test_PRL_02_01_002@gmail.com |
echo |
-- Choose User Profile-- |
|
waitForElementPresent |
//div[@id='UIAccountPortlet']/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div |
|
click |
//div[@id='UIAccountPortlet']/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div |
|
waitForElementPresent |
user.language |
|
select |
user.language |
label=Spanish |
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 |
|
click |
//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div |
|
waitForElementPresent |
link=Sign out |
|
clickAndWait |
link=Sign out |
|
echo |
-- Login with new user-- |
|
waitForElementPresent |
link=Sign in |
|
click |
link=Sign in |
|
waitForElementPresent |
username |
|
type |
username |
Test_PRL_02_01_002 |
type |
password |
Test_PRL_02_01_002 |
clickAndWait |
//div[@id='UIPortalLoginFormAction']//a[text()='Sign in'] |
|
waitForElementPresent |
link=Test_PRL_02_01_002 Test_PRL_02_01_002 |
|
verifyText |
link=Test_PRL_02_01_002 Test_PRL_02_01_002 |
Test_PRL_02_01_002 Test_PRL_02_01_002 |
clickAndWait |
link=Desconectar |
|
echo |
-- Check existing registered users list-- |
|
waitForElementPresent |
link=Sign in |
|
click |
link=Sign in |
|
waitForElementPresent |
username |
root |
type |
username |
root |
type |
password |
gtn |
clickAndWait |
//div[@id='UIPortalLoginFormAction']//a[text()='Sign in'] |
|
waitForElementPresent |
link=Users and groups management |
|
clickAndWait |
link=Users and groups management |
|
echo |
-- New user is updated into existing users list -- |
|
echo |
-- Search new user in list -- |
|
waitForElementPresent |
searchTerm |
|
type |
searchTerm |
Test_PRL_02_01_002 |
waitForElementPresent |
//form[@id='UISearchForm']/div[2]/a |
|
click |
//form[@id='UISearchForm']/div[2]/a |
|
echo |
-- Delete new user-- |
|
waitForElementPresent |
//img[@alt='DeleteUser'] |
|
click |
//img[@alt='DeleteUser'] |
|
assertConfirmation |
Are you sure you want to delete Test_PRL_02_01_002 user? |
|
waitForElementPresent |
link=Sign out |
|
clickAndWait |
link=Sign out |
|