Test_PRL_03_03_004_ChangeGoupWithLabelLessThan3OrOver30Chars
open /portal/public/classic/
echo -- Edit group with Label 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
echo -- Go to User and Group Management--
clickAndWait link=Users and groups management
echo -- Choose Group Management--
waitForElementPresent link=Group Management
click link=Group Management
echo -- Add new group--
waitForElementPresent //div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/a[3]
click //div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/a[3]
waitForElementPresent groupName
type groupName Test_PRL_03_03_004
type label Test_PRL_03_03_004
type description Test_PRL_03_03_004
waitForElementPresent link=Save
click link=Save
echo -- Edit group with label less than 3 chars--
waitForElementPresent //div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/a[2]
click //div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/a[2]
waitForElementPresent label
type label PR
waitForElementPresent link=Save
click link=Save
waitForTextPresent The length of the text in field "Label" must be between "3" and "30" characters.
verifyTextPresent The length of the text in field "Label" 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
echo -- Edit label over 30 chars--
waitForElementPresent label
type label Test_PRL_03_03_004 Test_PRL_03_03_004 Test_PRL_03_03_004 Test_PRL_03_03_004 Test_PRL_03_03_004
waitForElementPresent link=Save
click link=Save
waitForTextPresent The length of the text in field "Label" must be between "3" and "30" characters.
verifyTextPresent The length of the text in field "Label" 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=Cancel
click link=Cancel
echo -- Delete this group--
waitForElementPresent //div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/a[1]
click //div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/a[1]
assertConfirmation Are you sure you want to delete this group?
waitForElementPresent link=Sign out
clickAndWait link=Sign out