open |
/portal/public/classic/ |
|
echo |
-- Check Editing Password in Community Management-- |
|
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-- |
|
waitForElementPresent |
link=New Staff |
|
clickAndWait |
link=New Staff |
|
waitForElementPresent |
username |
|
type |
username |
Test_PRL_02_03_005 |
type |
password |
Test_PRL_02_03_005 |
type |
Confirmpassword |
Test_PRL_02_03_005 |
type |
firstName |
Test_PRL_02_03_005 |
type |
lastName |
Test_PRL_02_03_005 |
type |
email |
Test_PRL_02_03_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=Dutch |
waitForElementPresent |
link=Save |
|
click |
link=Save |
|
waitForTextPresent |
You have registered a new account. |
|
verifyTextPresent |
You have registered a new account. |
|
echo |
-- Close message-- |
|
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 |
|
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 |
|
type |
searchTerm |
Test_PRL_02_03_005 |
waitForElementPresent |
//form[@id='UISearchForm']/div[2]/a |
|
click |
//form[@id='UISearchForm']/div[2]/a |
|
echo |
-- Eidt this user-- |
|
waitForElementPresent |
//img[@alt='ViewUserInfo'] |
|
click |
//img[@alt='ViewUserInfo'] |
|
waitForElementPresent |
changePassword |
|
click |
changePassword |
|
echo |
-- Edit with blank New Password-- |
|
waitForElementPresent |
confirmPassword |
|
type |
confirmPassword |
Test_PRL_02_03_005 |
waitForElementPresent |
link=Save |
|
click |
link=Save |
|
waitForTextPresent |
The field "New Password:" is required. |
|
verifyTextPresent |
The field "New Password:" is required. |
|
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 |
-- Edit with New Password/Confirm Password less than 6 characters-- |
|
type |
newPassword |
Test |
type |
confirmPassword |
Test |
waitForElementPresent |
link=Save |
|
click |
link=Save |
|
waitForElementPresent |
//div[2]/div[2]/div/div/div/div[1]/div[2] |
|
verifyText |
//div[2]/div[2]/div/div/div/div[1]/div[2] |
The length of the text in field "New Password:" must be between "6" and "30" characters. |
waitForElementPresent |
//div[2]/div/div/div/div[2]/div[2] |
|
verifyText |
//div[2]/div/div/div/div[2]/div[2] |
The length of the text in field "Confirm Password: " must be between "6" and "30" characters. |
echo |
-- Close message-- |
|
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 |
-- Edit with New Password/Confirm Password over 30 characters-- |
|
type |
newPassword |
Test_PRL_02_03_005Test_PRL_02_03_005Test_PRL_02_03_005 |
type |
confirmPassword |
Test_PRL_02_03_005Test_PRL_02_03_005Test_PRL_02_03_005 |
waitForElementPresent |
link=Save |
|
click |
link=Save |
|
waitForElementPresent |
//div[2]/div[2]/div/div/div/div[1]/div[2] |
|
verifyText |
//div[2]/div[2]/div/div/div/div[1]/div[2] |
The length of the text in field "New Password:" must be between "6" and "30" characters. |
waitForElementPresent |
//div[2]/div/div/div/div[2]/div[2] |
|
verifyText |
//div[2]/div/div/div/div[2]/div[2] |
The length of the text in field "Confirm Password: " must be between "6" and "30" characters. |
echo |
-- Close message-- |
|
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 |
|
echo |
-- Edit with New Password & Confirm Password are not the same-- |
|
type |
newPassword |
Test_PRL_02_03_005 |
type |
confirmPassword |
Test_PRL_02_03 |
waitForElementPresent |
link=Save |
|
click |
link=Save |
|
waitForElementPresent |
//div[2]/div[2]/div/div/div/div/div[2] |
|
verifyText |
//div[2]/div[2]/div/div/div/div/div[2] |
Password and Confirm Password must be the same. |
echo |
-- Close message-- |
|
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 |
|
echo |
-- Edit when copy from New Password and paste to Confirm Password field-- |
|
type |
newPassword |
Test_PRL_02_03_005 |
type |
confirmPassword |
●●●●●●●●●●●●●●●●●● |
waitForElementPresent |
link=Save |
|
click |
link=Save |
|
waitForElementPresent |
//div[2]/div[2]/div/div/div/div/div[2] |
|
verifyText |
//div[2]/div[2]/div/div/div/div/div[2] |
Password and Confirm Password must be the same. |
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 |
|
echo |
-- Edit with blank Confirm New Password-- |
|
type |
newPassword |
Test_PRL_02_03_005 |
type |
confirmPassword |
|
click |
link=Save |
|
echo |
-- https://jira.jboss.org/browse/GTNPORTAL-1341-- |
|
waitForTextPresent |
Password and Confirm Password must be the same. |
|
verifyTextPresent |
Password and Confirm Password must be the same. |
|
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 |
|
echo |
-- Edit password with valid values-- |
|
type |
newPassword |
Test_PRL_02_03_005 |
type |
confirmPassword |
Test_PRL_02_03_005 |
waitForElementPresent |
link=Save |
|
click |
link=Save |
|
waitForTextPresent |
The user profile has been updated. |
|
verifyTextPresent |
The user profile has been updated. |
|
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 |
-- Search user-- |
|
waitForElementPresent |
//form[@id='UISearchForm']/div[2]/a |
|
click |
//form[@id='UISearchForm']/div[2]/a |
|
echo |
-- Delete user-- |
|
waitForElementPresent |
//img[@alt='DeleteUser'] |
|
click |
//img[@alt='DeleteUser'] |
|
waitForConfirmationPresent |
|
|
assertConfirmation |
Are you sure you want to delete Test_PRL_02_03_005 user? |
|
clickAndWait |
link=Sign out |
|