Test_REG_DMS_CCP546_AddTagOver30Character
open /ecmdemo/public/acme/
windowMaximize
echo -- Login
click link=Login
waitForElementPresent username
type username root
type password gtn
clickAndWait link=Sign in
echo -- Go to Site Explorer
clickAndWait link=Content Explorer
echo -- Open drive's list
waitForElementPresent //div[@id='UISideBar']/div/div[1]/div[2]/div[1]/div/div/div/a/div
click //div[@id='UISideBar']/div/div[1]/div[2]/div[1]/div/div/div/a/div
echo -- Select Site Management drive
waitForElementPresent link=Sites Management
click link=Sites Management
echo -- Select acme folder
waitForElementPresent //div[@id='iconTreeExplorer']/div[2]/a
click //div[@id='iconTreeExplorer']/div[2]/a
echo -- Select document folder
waitForElementPresent link=documents
click link=documents
echo -- Create document
waitForElementPresent link=Publication
click link=Publication
waitForElementPresent link=Add Document
click link=Add Document
waitForElementPresent title
type title CCP546
type name CCP546
waitForElementPresent //td[@id='cke_contents_summary']/iframe
selectFrame //td[@id='cke_contents_summary']/iframe
type //html/body test ccp546 add tag
selectFrame relative=top
waitForElementPresent //td[@id='cke_contents_content']/iframe
selectFrame //td[@id='cke_contents_content']/iframe
type //html/body test ccp546 add tag
selectFrame relative=top
waitForElementPresent link=Save as Draft
click link=Save as Draft
pause 3000
waitForElementPresent link=Close
click link=Close
pause 3000
echo -- Add tag for document
waitForElementPresent link=Collaboration
click link=Collaboration
waitForElementPresent link=Tagging this document
click link=Tagging this document
waitForElementPresent names
type names this is a test this is a test this is a test this is a test
waitForElementPresent link=Add Tags
click link=Add Tags
waitForTextPresent One of the tags entered was too long. Tags must be less than 30 characters long
verifyTextPresent One of the tags entered was too long. Tags must be less than 30 characters long
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=Close
click link=Close
echo -- Delete document
waitForElementPresent link=CCP546
mouseDownRight link=CCP546
waitForElementPresent link=Delete
click link=Delete
waitForElementPresent //div[@id='UIPopupWindow']/div/div[2]/div/div/div/div/div/div/div/div[2]/table/tbody/tr/td/div[1]/div/div/div
click //div[@id='UIPopupWindow']/div/div[2]/div/div/div/div/div/div/div/div[2]/table/tbody/tr/td/div[1]/div/div/div
waitForElementNotPresent link=CCP546
verifyElementNotPresent link=CCP546
clickAndWait link=Sign out