| open |
/portal/public/acme/ |
|
| windowMaximize |
|
|
| echo |
-- Login |
|
| waitForElementPresent |
link=Login |
|
| click |
link=Login |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
link=Sign in |
|
| echo |
-- go to sites Administration |
|
| waitForElementPresent |
link=Content Administration |
|
| click |
link=Content Administration |
|
| echo |
--Go to Types Of Content |
|
| waitForElementPresent |
//div[@id='UIECMAdminPortlet']/div[1]/div[1]/div[2]/div/div[3]/div[1]/div/div/div/div[2] |
|
| click |
//div[@id='UIECMAdminPortlet']/div[1]/div[1]/div[2]/div/div[3]/div[1]/div/div/div/div[2] |
|
| echo |
--Add new node type |
|
| waitForElementPresent |
link=Manage Node Type |
|
| click |
link=Manage Node Type |
|
| waitForElementPresent |
link=Add |
|
| click |
link=Add |
|
| waitForElementPresent |
namespace |
label=nt |
| select |
namespace |
label=nt |
| type |
nodeTypeName |
dzung |
| type |
superTypes |
nt:base |
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| echo |
--confirm message |
|
| waitForElementPresent |
//div[@id='UIECMAdminPortlet']/div[3]//div[@class='ActionButton LightBlueStyle'] |
|
| click |
//div[@id='UIECMAdminPortlet']/div[3]//div[@class='ActionButton LightBlueStyle'] |
|
| echo |
--Search note type |
|
| waitForElementPresent |
NodeTypeText |
dzung |
| type |
NodeTypeText |
dzung |
| waitForElementPresent |
//a[@title='Search'] |
|
| click |
//a[@title='Search'] |
|
| waitForTextPresent |
nt:dzung |
|
| verifyTextPresent |
nt:dzung |
|
| echo |
--View node Type |
|
| waitForElementPresent |
//div[@id='ListNodeType']/table/tbody/tr[1]/td[6]/a/div |
|
| click |
//div[@id='ListNodeType']/table/tbody/tr[1]/td[6]/a/div |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| echo |
--reload full list of node types |
|
| waitForElementPresent |
link=Manage Node Type |
|
| click |
link=Manage Node Type |
|
| echo |
--Logout |
|
| clickAndWait |
link=Logout |
|