| open |
/portal/public/intranet/ |
|
| windowMaximize |
|
|
| waitForElementPresent |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| click |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a |
|
| echo |
-Add category- |
|
| open |
/portal/private/intranet/forum |
|
| waitForElementPresent |
//a/span |
|
| click |
//a/span |
|
| waitForElementPresent |
CategoryTitle |
|
| type |
CategoryTitle |
Category 1 |
| type |
Description |
Every one can see |
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| waitForElementPresent |
//div[2]/div/div/div/div[1]/a |
|
| click |
//div[2]/div/div/div/div[1]/a |
|
| waitForTextPresent |
Category 1 |
|
| verifyTextPresent |
Category 1 |
|
| echo |
-Add forum- |
|
| waitForElementPresent |
//div[3]/div/div/div/div/a/span |
|
| click |
//div[3]/div/div/div/div/a/span |
|
| waitForElementPresent |
ForumTitle |
|
| type |
ForumTitle |
For 1 |
| type |
Description |
For 1 |
| waitForElementPresent |
//form[@id='UIForumForm']/div[4]/table//div[1]/div/div/div |
|
| click |
//form[@id='UIForumForm']/div[4]/table//div[1]/div/div/div |
|
| waitForElementPresent |
link=Category 1 |
|
| click |
link=Category 1 |
|
| waitForTextPresent |
For 1 |
|
| verifyTextPresent |
For 1 |
|
| echo |
-Add topic- |
|
| pause |
1000 |
|
| click |
link=For 1 |
|
| pause |
1000 |
|
| click |
link=Start topic |
|
| waitForElementPresent |
ThreadTitle |
|
| type |
ThreadTitle |
Topic test |
| pause |
1000 |
|
| selectFrame |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Topic test |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Submit |
|
| click |
link=Submit |
|
| waitForTextPresent |
Topic test |
|
| verifyTextPresent |
Topic test |
|
| echo |
-Check BreadCrumbs- |
|
| click |
link=Category 1 |
|
| waitForTextPresent |
For 1 |
|
| verifyTextPresent |
For 1 |
|
| waitForElementPresent |
//div[2]/div/div/div/div[1]/a |
|
| click |
//div[2]/div/div/div/div[1]/a |
|
| waitForTextPresent |
Category 1 |
|
| verifyTextPresent |
Category 1 |
|
| echo |
-Delete test data- |
|
| waitForElementPresent |
link=Category 1 |
|
| click |
link=Category 1 |
|
| waitForElementPresent |
//form[@id='UICategory']/div[3]/div/div/div/div[4]/div[1]/div/div/div/div/div |
|
| click |
//form[@id='UICategory']/div[3]/div/div/div/div[4]/div[1]/div/div/div/div/div |
|
| waitForElementPresent |
link=Delete |
|
| click |
link=Delete |
|
| assertConfirmation |
Are you sure you want to delete this category? |
|
| waitForTextNotPresent |
Category 1 |
|
| verifyTextNotPresent |
Category 1 |
|
| clickAndWait |
link=Logout |
|