Test_SNF_ECMS_16_FormGenerator_ecmdemo
open /portal/public/acme/
echo -- Log in
windowMaximize
click link=Login
waitForElementPresent username
type username root
type password gtn
clickAndWait link=Sign in
echo -- Create new template
waitForElementPresent link=Form Generator
clickAndWait link=Form Generator
waitForElementPresent FormGeneratorName
type FormGeneratorName Test_SNF_ECMS_16
click //div[@id='UIFormGeneratorPortlet']/div[1]/div/div/div/div[2]/div/div/div/div
waitForElementPresent //div[@id='UITabContentContainer']/div/div[1]/div/div/div[1]
click //div[@id='UITabContentContainer']/div/div[1]/div/div/div[1]
waitForElementPresent //div[@id='UITabContentContainer']/div/div[3]/div/div/div[1]
click //div[@id='UITabContentContainer']/div/div[3]/div/div/div[1]
waitForElementPresent link=Save
click link=Save
pause 5000
waitForText //div[3]/div/div/div/div/div[2] Nodetype Test_SNF_ECMS_16's template is generated successful
verifyText //div[3]/div/div/div/div/div[2] Nodetype Test_SNF_ECMS_16's template is generated successful
waitForElementPresent //div[@class='ActionButton LightBlueStyle' and contains(@onclick,'javascript:ajaxGet')]
click //div[@class='ActionButton LightBlueStyle' and contains(@onclick,'javascript:ajaxGet')]
echo -- Cteate new document using new template
waitForElementPresent link=Sites Explorer
clickAndWait link=Sites Explorer
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
waitForElementPresent link=Sites Management
click link=Sites Management
pause 3000
waitForElementPresent link=Add Document
click link=Add Document
waitForElementPresent selectTemplate
select selectTemplate label=Test_SNF_ECMS_16
waitForElementPresent /node/Textarea field
type /node/Textarea field Test_SNF_ECMS_16_FormGenerator_ecmdemo
click link=Save as Draft
click link=Save as Draft
pause 5000
waitForElementPresent link=Close
click link=Close
pause 5000
waitForElementPresent //div[@id='iconTreeExplorer']/div[2]/a
mouseDownRight //div[@id='iconTreeExplorer']/div[2]/a
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/a
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/a
echo -- Log out
pause 5000
waitForElementPresent link=Logout
clickAndWait link=Logout