| open |
/web/guest/home/ |
|
| waitForElementPresent |
link=Control Panel |
|
| clickAtAndWait |
link=Control Panel |
|
| clickAtAndWait |
link=Communities |
|
| type |
_134_name |
Web Content Image Association Community |
| clickAtAndWait |
//input[@value='Search'] |
|
| clickAtAndWait |
//tr[@class='portlet-section-body results-row']/td[1]/a |
|
| clickAtAndWait |
link=Control Panel |
|
| clickAtAndWait |
link=Web Content |
|
| clickAtAndWait |
link=Templates |
|
| clickAtAndWait |
//input[@value='Add Template'] |
|
| type |
_15_newTemplateId |
test_image |
| type |
_15_name |
Image Template Test |
| type |
_15_description |
This is an image template test. |
| click |
//input[@value='Select'] |
|
| waitForPopUp |
structure |
30000 |
| selectWindow |
name=structure |
|
| waitForElementPresent |
link=TEST_IMAGE |
|
| click |
link=TEST_IMAGE |
|
| selectWindow |
null |
|
| assertText |
_15_structureName |
Image Structure Test |
| clickAt |
_15_editorButton |
|
| waitForVisible |
_15_xslContent |
|
| type |
_15_xslContent |
$text-test.getData()
Image Test:

Image Gallery Image Test:
 |
| click |
//input[@value='Update'] |
|
| clickAtAndWait |
//input[@value='Save'] |
|
| assertTextPresent |
Your request processed successfully. |
|
| assertText |
//tr[@class='portlet-section-body results-row']/td[2] |
TEST_IMAGE |
| assertText |
//tr[@class='portlet-section-body results-row']/td[3] |
Image Template Test This is an image template test. |