open |
/portal/public/classic/ |
|
echo |
-- Add new user-- |
|
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_01_008 |
type |
password |
Test_PRL_01_008 |
type |
Confirmpassword |
Test_PRL_01_008 |
type |
firstName |
Test_PRL_01_008 |
type |
lastName |
Test_PRL_01_008 |
type |
email |
Test_PRL_01_008@gmail.com |
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=Russian |
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 |
-- Add new user is the same with existing-- |
|
waitForElementPresent |
//div[@id='UIAccountPortlet']/div[1]/div/div/div/div/div/div/div/div/div[1]/div/div/div/div |
|
click |
//div[@id='UIAccountPortlet']/div[1]/div/div/div/div/div/div/div/div/div[1]/div/div/div/div |
|
waitForElementPresent |
username |
|
type |
username |
Test_PRL_01_008 |
type |
password |
Test_PRL_01_008 |
type |
Confirmpassword |
Test_PRL_01_008 |
type |
firstName |
Test_PRL_01_008 |
type |
lastName |
Test_PRL_01_008 |
type |
email |
Test_PRL_01_008@yahoo.com |
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=Vietnamese |
click |
link=Save |
|
waitForTextPresent |
This user name already exists, please enter a different name. |
|
verifyTextPresent |
This user name already exists, please enter a different name. |
|
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 |
|
clickAndWait |
link=Sign out |
|
echo |
-- Login with new user -- |
|
open |
/portal/public/classic/ |
|
click |
link=Sign in |
|
waitForElementPresent |
username |
|
type |
username |
Test_PRL_01_008 |
type |
password |
Test_PRL_01_008 |
clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div/a |
|
clickAndWait |
link=Выйти |
|
open |
/portal/public/classic/ |
|
click |
link=Sign in |
|
echo |
--Delete user-- |
|
waitForElementPresent |
username |
|
type |
username |
root |
type |
password |
gtn |
clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div/a |
|
clickAndWait |
link=Users and groups management |
|
waitForElementPresent |
searchTerm |
|
type |
searchTerm |
Test_PRL_01_008 |
click |
//form[@id='UISearchForm']/div[2]/a |
|
click |
//img[@alt='DeleteUser'] |
|
assertConfirmation |
Are you sure you want to delete Test_PRL_01_008 user? |
|
clickAndWait |
link=Sign out |
|