open |
/portal/public/classic/ |
|
echo |
-- Create new user with lower case-- |
|
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 |
|
waitForElementPresent |
username |
|
type |
username |
test_prl_01_003 |
type |
password |
test_prl_01_003 |
type |
Confirmpassword |
test_prl_01_003 |
type |
firstName |
test_prl_01_003 |
type |
lastName |
test_prl_01_003 |
type |
email |
test_prl_01_003@gmail.com |
echo |
-- Choose User profile tab-- |
|
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=Vietnamese |
waitForElementPresent |
//form[@id='UIAccountForm']/div[3]/div[2]/table/tbody/tr/td/div[1]/div/div/div |
|
click |
//form[@id='UIAccountForm']/div[3]/div[2]/table/tbody/tr/td/div[1]/div/div/div |
|
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 |
|
echo |
--Create new user with upper case-- |
|
pause |
2000 |
|
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_003 |
type |
password |
TEST_PRL_01_003 |
type |
Confirmpassword |
TEST_PRL_01_003 |
type |
firstName |
TEST_PRL_01_003 |
type |
lastName |
TEST_PRL_01_003 |
type |
email |
TEST_PRL_01_003@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=English |
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 in with user is lower case-- |
|
open |
/portal/public/classic/ |
|
waitForElementPresent |
link=Sign in |
|
click |
link=Sign in |
|
waitForElementPresent |
username |
|
type |
username |
test_prl_01_003 |
type |
password |
test_prl_01_003 |
clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div/a |
|
clickAndWait |
link=Đăng xuất |
|
echo |
--Login in with user is upper case-- |
|
open |
/portal/public/classic/ |
|
waitForElementPresent |
link=Sign in |
|
click |
link=Sign in |
|
waitForElementPresent |
username |
|
type |
username |
TEST_PRL_01_003 |
type |
password |
TEST_PRL_01_003 |
clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div/a |
|
clickAndWait |
link=Sign out |
|
echo |
-- Delete user-- |
|
open |
/portal/public/classic/ |
|
waitForElementPresent |
link=Sign in |
|
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 |
--Delete user is upper case-- |
|
waitForElementPresent |
searchTerm |
|
type |
searchTerm |
TEST_PRL_01_003 |
waitForElementPresent |
//form[@id='UISearchForm']/div[2]/a |
|
click |
//form[@id='UISearchForm']/div[2]/a |
|
waitForElementPresent |
//img[@alt='DeleteUser'] |
|
click |
//img[@alt='DeleteUser'] |
|
assertConfirmation |
Are you sure you want to delete TEST_PRL_01_003 user? |
|
echo |
--Delete user is lower case-- |
|
waitForElementPresent |
searchTerm |
|
type |
searchTerm |
test_prl_01_003 |
waitForElementPresent |
//form[@id='UISearchForm']/div[2]/a |
|
click |
//form[@id='UISearchForm']/div[2]/a |
|
waitForElementPresent |
//img[@alt='DeleteUser'] |
|
click |
//img[@alt='DeleteUser'] |
|
assertConfirmation |
Are you sure you want to delete test_prl_01_003 user? |
|
clickAndWait |
link=Sign out |
|