| open |
/portal/public/intranet/ |
|
| echo |
-- Login -- |
|
| windowMaximize |
|
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
link=Sign in |
|
| echo |
-- Add new Users -- |
|
| waitForElementPresent |
link=Add new Users |
|
| clickAndWait |
link=Add new Users |
|
| waitForElementPresent |
username |
|
| type |
username |
Test_SNF_PRL_67 |
| type |
password |
Test_SNF_PRL_67 |
| type |
Confirmpassword |
Test_SNF_PRL_67 |
| type |
firstName |
Test_SNF_PRL_67 |
| type |
lastName |
Test_SNF_PRL_67 |
| type |
email |
Test_SNF_PRL_67@gmail.com |
| echo |
-- Choose user Profile tab -- |
|
| waitForElementPresent |
//div[text()='User Profile'] |
|
| click |
//div[text()='User Profile'] |
|
| waitForElementPresent |
user.language |
|
| select |
user.language |
label=English |
| echo |
--Save |
|
| waitForElementPresent |
//form[@id='UIAccountForm']//a[text()='Save'] |
|
| click |
//form[@id='UIAccountForm']//a[text()='Save'] |
|
| waitForTextPresent |
You have registered a new account. |
|
| verifyTextPresent |
You have registered a new account. |
|
| echo |
--Ok |
|
| waitForElementPresent |
//div[@id='UIAccountPortlet']//a[text()='OK'] |
|
| click |
//div[@id='UIAccountPortlet']//a[text()='OK'] |
|
| echo |
--Logout |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| echo |
-- Login by new user -- |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
Test_SNF_PRL_67 |
| type |
password |
Test_SNF_PRL_67 |
| clickAndWait |
link=Sign in |
|
| waitForTextPresent |
Test_SNF_PRL_67 Test_SNF_PRL_67 |
|
| verifyTextPresent |
Test_SNF_PRL_67 Test_SNF_PRL_67 |
|
| echo |
-- My Account |
|
| waitForElementPresent |
link=My Account |
|
| click |
link=My Account |
|
| echo |
-- Change Password-- |
|
| waitForElementPresent |
link=Change Password |
|
| click |
link=Change Password |
|
| waitForElementPresent |
currentpass |
|
| type |
currentpass |
Test_SNF_PRL_67 |
| type |
newpass |
Test_SNF_PRL_67_edit |
| type |
confirmnewpass |
Test_SNF_PRL_67_edit |
| echo |
--Save |
|
| waitForElementPresent |
//form[@id='UIAccountChangePass']//a[text()='Save'] |
|
| click |
//form[@id='UIAccountChangePass']//a[text()='Save'] |
|
| waitForTextPresent |
The password has been changed. |
|
| verifyTextPresent |
The password has been changed. |
|
| echo |
--OK |
|
| waitForElementPresent |
//div[contains(@onclick,'componentId=_')]//a[text()='OK'] |
|
| click |
//div[contains(@onclick,'componentId=_')]//a[text()='OK'] |
|
| echo |
--Close |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| echo |
--Logout |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| echo |
-- Login by new user after change password -- |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
Test_SNF_PRL_67 |
| type |
password |
Test_SNF_PRL_67_edit |
| clickAndWait |
link=Sign in |
|
| waitForTextPresent |
Test_SNF_PRL_67 Test_SNF_PRL_67 |
|
| verifyTextPresent |
Test_SNF_PRL_67 Test_SNF_PRL_67 |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| echo |
-- Login by admin-- |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
link=Sign in |
|
| echo |
--Manage Users and Groups |
|
| waitForElementPresent |
link=Manage Users and Groups |
|
| clickAndWait |
link=Manage Users and Groups |
|
| echo |
-- Delete user -- |
|
| waitForElementPresent |
//img[contains(@onclick,"Test_SNF_PRL_67") and @title="Delete User"] |
|
| click |
//img[contains(@onclick,"Test_SNF_PRL_67") and @title="Delete User"] |
|
| assertConfirmation |
Are you sure you want to delete Test_SNF_PRL_67 user? |
|
| echo |
--Logout |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|