Test_PRL_04_02_003_AddNewMembershipWithNameLessThan3OrOver30Chars
open /portal/public/classic/
echo -- Add new membership with name less than 3 or over 30 characters--
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo -- Go to Users and Group management --
clickAndWait link=Users and groups management
echo -- Choose Membership Management --
waitForElementPresent //div[@class='MembershipManagementIcon']
click //div[@class='MembershipManagementIcon']
echo -- Add new membership with name less than 3 chars--
waitForElementPresent name
type name PL
type description Test_PLT_04_02_003
waitForElementPresent link=Save
click link=Save
waitForTextPresent The length of the text in field "Membership name " must be between "3" and "30" characters.
verifyTextPresent The length of the text in field "Membership 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
waitForElementPresent //form[@id='UIMembershipTypeForm']/div[2]/div/div/table/tbody/tr/td/div[2]/div/div/div
click //form[@id='UIMembershipTypeForm']/div[2]/div/div/table/tbody/tr/td/div[2]/div/div/div
echo -- Add new membership with name over 30 chars--
waitForElementPresent name
type name Test_PLT_04_02_003 Test_PLT_04_02_003 Test_PLT_04_02_003 Test_PLT_04_02_003 Test_PLT_04_02_003 Test_PLT_04_02_003
type description Test_PLT_04_02_003
waitForElementPresent link=Save
click link=Save
waitForTextPresent The length of the text in field "Membership name " must be between "3" and "30" characters.
verifyTextPresent The length of the text in field "Membership 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
waitForElementPresent link=Reset
click link=Reset
clickAndWait link=Sign out