Test_PRL_01_009_CreateNewAccountWithUserNameLessOverMinMaxLength
open /portal/public/classic/
echo -- Create new account with user name less/over min/max length--
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
echo -- Add new account with user name less than 3 chars--
waitForElementPresent username
type username PR
type password Test_PRL_01_009
type Confirmpassword Test_PRL_01_009
type firstName Test_PRL_01_009
type lastName Test_PRL_01_009
type email Test_PRL_01_009@gmail.com
waitForElementPresent link=Save
click link=Save
waitForTextPresent The length of the text in field "User Name:" must be between "3" and "30" characters.
verifyTextPresent The length of the text in field "User Name:" must be between "3" and "30" characters.
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=Reset
click link=Reset
echo -- User name have length over 30 chars--
waitForElementPresent username
type username Test_PRL_01_009Test_PRL_01_009Test_PRL_01_009Test_PRL_01_009
type password Test_PRL_01_009
type Confirmpassword Test_PRL_01_009
type firstName Test_PRL_01_009
type lastName Test_PRL_01_009
type email Test_PRL_01_009@gmail.com
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 link=Save
click link=Save
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
waitForTextPresent The length of the text in field "User Name:" must be between "3" and "30" characters.
verifyTextPresent The length of the text in field "User Name:" must be between "3" and "30" characters.
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