| open |
/portal/public/default/ |
|
| windowMaximize |
|
|
| clickAndWait |
link=Visit the Acme Website |
|
| echo |
-- Log in |
|
| click |
link=Login |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
link=Sign in |
|
| echo |
-- Create new template: Form Builder |
|
| waitForElementPresent |
//a[@href='/portal/private/acme/formgenerator'] |
|
| clickAndWait |
//a[@href='/portal/private/acme/formgenerator'] |
|
| waitForElementPresent |
FormGeneratorName |
|
| type |
FormGeneratorName |
LamYKhue_16 |
| click |
//div[@id='UIFormGeneratorPortlet']//div[text()="Form builder"] |
|
| waitForElementPresent |
//div[@id='UITabContentContainer']//div[text()="Input Text"] |
|
| click |
//div[@id='UITabContentContainer']//div[text()="Input Text"] |
|
| waitForElementPresent |
//div[@id='UITabContentContainer']//div[text()="Text Area"] |
|
| click |
//div[@id='UITabContentContainer']//div[text()="Text Area"] |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| pause |
3000 |
|
| waitForText |
//div[3]/div/div/div/div/div[2] |
Nodetype LamYKhue_16's template is generated successful |
| verifyText |
//div[3]/div/div/div/div/div[2] |
Nodetype LamYKhue_16's template is generated successful |
| 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 |
|
| echo |
-- Cteate new document using new template |
|
| waitForElementPresent |
//a[@href='/portal/private/acme/siteExplorer'] |
|
| clickAndWait |
//a[@href='/portal/private/acme/siteExplorer'] |
|
| echo |
-- Browse all drives |
|
| waitForElementPresent |
//div[@title='Show Drives'] |
|
| click |
//div[@title='Show Drives'] |
|
| waitForElementPresent |
link=Sites Management |
|
| click |
link=Sites Management |
|
| waitForElementPresent |
link=Add Document |
|
| click |
link=Add Document |
|
| pause |
3000 |
|
| waitForElementPresent |
selectTemplate |
|
| select |
selectTemplate |
label=LamYKhue_16 |
| waitForElementPresent |
/node/Textarea field |
|
| type |
/node/Textarea field |
SNF_ECMS_16_FormGenerator_ecmdemo |
| type |
/node/Input field |
Sorry |
| click |
link=Save as Draft |
|
| click |
link=Save as Draft |
|
| pause |
5000 |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| pause |
5000 |
|
| echo |
-- Verify Information |
|
| waitForTextPresent |
Sorry |
|
| verifyTextPresent |
Sorry |
|
| waitForTextPresent |
SNF_ECMS_16_FormGenerator_ecmdemo |
|
| verifyTextPresent |
SNF_ECMS_16_FormGenerator_ecmdemo |
|
| waitForElementPresent |
//div[@id='iconTreeExplorer']/div[2]/a |
|
| mouseDownRight |
//div[@id='iconTreeExplorer']/div[2]/a |
|
| click |
link=Delete |
|
| waitForElementPresent |
//div[@id='UIPopupWindow']//a[text()="OK"] |
|
| click |
//div[@id='UIPopupWindow']//a[text()="OK"] |
|
| echo |
-- Log out |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|