Test_SNF_ECMS_16_FormGenerator_ecmdemo
open /ecmdemo/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: Form Builder
waitForElementPresent //a[@href='/ecmdemo/private/acme/formgenerator']
clickAndWait //a[@href='/ecmdemo/private/acme/formgenerator']
waitForElementPresent FormGeneratorName
type FormGeneratorName Test_SNF_ECMS_16
waitForElementPresent //div[text()='Form builder']
click //div[text()='Form builder']
waitForElementPresent //div[text()='Input Text']
click //div[text()='Input Text']
waitForElementPresent //div[text()='Text Area']
click //div[text()='Text Area']
waitForElementPresent link=Save
click link=Save
pause 10000
verifyTextPresent Nodetype Test_SNF_ECMS_16's template is generated successful
waitForTextPresent Nodetype Test_SNF_ECMS_16's template is generated successful
waitForElementPresent //div[@id='UIFormGeneratorPortlet']//a[text()="OK"]
click //div[@id='UIFormGeneratorPortlet']//a[text()="OK"]
echo -- Cteate new document using new template
waitForElementPresent //a[@href='/ecmdemo/private/acme/siteExplorer']
clickAndWait //a[@href='/ecmdemo/private/acme/siteExplorer']
waitForElementPresent //div[@id='UISideBar']//div[@title="Show Drives"]
click //div[@id='UISideBar']//div[@title="Show Drives"]
waitForElementPresent link=Sites Management
click link=Sites Management
pause 10000
echo -Go to Admin View
waitForElementPresent //a[@title='Admin View']
click //a[@title='Admin View']
pause 10000
echo -- Go to Action tab
waitForElementPresent link=Actions
click link=Actions
pause 10000
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 SNF_ECMS_16_FormGenerator_ecmdemo
click link=Save as Draft
click link=Save as Draft
pause 10000
waitForElementPresent link=Close
click link=Close
pause 10000
echo -- Select node --
waitForElementPresent //div[@id='iconTreeExplorer']/div[2]/a
mouseDownRight //div[@id='iconTreeExplorer']/div[2]/a
waitForElementPresent link=Delete
click link=Delete
waitForElementPresent //div[@id='UIPopupWindow']//a[text()='OK']
click //div[@id='UIPopupWindow']//a[text()='OK']
echo -- Log out
pause 5000
waitForElementPresent link=Sign out
clickAndWait link=Sign out