| open |
/portal/public/classic/ |
|
| echo |
-- Search user after it was already deleted -- |
|
| windowMaximize |
|
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div/a |
|
| echo |
-- Go to New Staff-- |
|
| clickAndWait |
link=New Staff |
|
| type |
username |
Test_PRL_02_02_005 |
| waitForElementPresent |
username |
|
| type |
password |
Test_PRL_02_02_005 |
| type |
Confirmpassword |
Test_PRL_02_02_005 |
| type |
firstName |
Test_PRL_02_02_005 |
| type |
lastName |
Test_PRL_02_02_005 |
| type |
email |
Test_PRL_02_02_005@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=Russian |
| 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 |
|
| clickAndWait |
link=Sign out |
|
| echo |
-- Login in with new user-- |
|
| open |
/portal/public/classic/ |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
Test_PRL_02_02_005 |
| type |
password |
Test_PRL_02_02_005 |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div/a |
|
| verifyText |
link=Test_PRL_02_02_005 Test_PRL_02_02_005 |
Test_PRL_02_02_005 Test_PRL_02_02_005 |
| waitForElementPresent |
link=Test_PRL_02_02_005 Test_PRL_02_02_005 |
|
| clickAndWait |
link=Выйти |
|
| echo |
-- Sign in with Administrator to delete and search new user-- |
|
| open |
/portal/public/classic/ |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div/a |
|
| echo |
-- Go to user and group management-- |
|
| waitForElementPresent |
link=Users and groups management |
|
| click |
link=Users and groups management |
|
| echo |
-- Search new user in list-- |
|
| waitForElementPresent |
searchTerm |
Test_PRL_02_02_005 |
| type |
searchTerm |
Test_PRL_02_02_005 |
| waitForElementPresent |
searchOption |
|
| select |
searchOption |
label=User Name |
| 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_02_005 user? |
|
| echo |
-- Return to user list after delete new user-- |
|
| waitForElementPresent |
searchTerm |
|
| type |
searchTerm |
|
| waitForElementPresent |
//form[@id='UISearchForm']/div[2]/a |
|
| click |
//form[@id='UISearchForm']/div[2]/a |
|
| echo |
-- Search new user after delete from user list-- |
|
| waitForElementPresent |
searchTerm |
Test_PRL_02_02_005 |
| type |
searchTerm |
Test_PRL_02_02_005 |
| waitForElementPresent |
//form[@id='UISearchForm']/div[2]/a |
|
| click |
//form[@id='UISearchForm']/div[2]/a |
|
| 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 |
|
| clickAndWait |
link=Sign out |
|