| open |
/portal/public/intranet/ |
|
| windowMaximize |
|
|
| waitForElementPresent |
//div[contains(text(),'Sign in')] |
|
| click |
//div[contains(text(),'Sign in')] |
|
| 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 |
//div[@id='AddCategory']/div/div/div/div/a/span |
|
| click |
//div[@id='AddCategory']/div/div/div/div/a/span |
|
| waitForElementPresent |
CategoryTitle |
|
| type |
CategoryTitle |
Cat_SNF_KS_40 |
| type |
Description |
Add category |
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| waitForElementPresent |
//div[@id='UIBreadcumbs']/div/div/div/div[1]/a |
|
| click |
//div[@id='UIBreadcumbs']/div/div/div/div[1]/a |
|
| waitForElementPresent |
link=Cat_SNF_KS_40 |
|
| verifyElementPresent |
link=Cat_SNF_KS_40 |
|
| echo |
- Add Forum |
|
| waitForElementPresent |
link=Cat_SNF_KS_40 |
|
| click |
link=Cat_SNF_KS_40 |
|
| waitForElementPresent |
//div[@id='AddForum']/div/div/div/div/a/span |
|
| click |
//div[@id='AddForum']/div/div/div/div/a/span |
|
| waitForElementPresent |
ForumTitle |
|
| type |
ForumTitle |
For_SNF_KS_40 |
| type |
Description |
Add forum |
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| waitForElementPresent |
link=Cat_SNF_KS_40 |
|
| click |
link=Cat_SNF_KS_40 |
|
| waitForElementPresent |
link=For_SNF_KS_40 |
|
| verifyElementPresent |
link=For_SNF_KS_40 |
|
| echo |
- Add Topic |
|
| waitForElementPresent |
link=For_SNF_KS_40 |
|
| click |
link=For_SNF_KS_40 |
|
| waitForElementPresent |
link=Start topic |
|
| click |
link=Start topic |
|
| waitForElementPresent |
ThreadTitle |
|
| type |
ThreadTitle |
Top_SNF_KS_40 |
| waitForElementPresent |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Topic content |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Submit |
|
| click |
link=Submit |
|
| waitForElementPresent |
link=Top_SNF_KS_40 |
|
| click |
link=Top_SNF_KS_40 |
|
| echo |
-Check BreadCrumbs- |
|
| waitForElementPresent |
//div[@id='UIBreadcumbs']//div[@title='Top_SNF_KS_40'] |
|
| verifyElementPresent |
//div[@id='UIBreadcumbs']//a[@title='Home'] |
|
| verifyElementPresent |
//div[@id='UIBreadcumbs']//a[@title='Cat_SNF_KS_40'] |
|
| verifyElementPresent |
//div[@id='UIBreadcumbs']//a[@title='For_SNF_KS_40'] |
|
| verifyElementPresent |
//div[@id='UIBreadcumbs']//div[@title='Top_SNF_KS_40'] |
|
| click |
//div[@id='UIBreadcumbs']//a[@title='For_SNF_KS_40'] |
|
| waitForElementPresent |
//div[@id='UIBreadcumbs']//div[@title='For_SNF_KS_40'] |
|
| verifyElementPresent |
//div[@id='UIBreadcumbs']//a[@title='Home'] |
|
| verifyElementPresent |
//div[@id='UIBreadcumbs']//a[@title='Cat_SNF_KS_40'] |
|
| waitForElementPresent |
//div[@id='UIBreadcumbs']//div[@title='For_SNF_KS_40'] |
|
| click |
//div[@id='UIBreadcumbs']//a[@title='Cat_SNF_KS_40'] |
|
| waitForElementPresent |
//div[@id='UIBreadcumbs']//div[@title='Cat_SNF_KS_40'] |
|
| verifyElementPresent |
//div[@id='UIBreadcumbs']//a[@title='Home'] |
|
| verifyElementPresent |
//div[@id='UIBreadcumbs']//div[@title='Cat_SNF_KS_40'] |
|
| click |
//div[@id='UIBreadcumbs']//a[@title='Home'] |
|
| waitForElementPresent |
//div[@id='UIBreadcumbs']//div[@title='Home'] |
|
| waitForElementPresent |
//div[@id='UIBreadcumbs']//div[@title='Home'] |
|
| echo |
-Delete test data- |
|
| waitForElementPresent |
link=Cat_SNF_KS_40 |
|
| click |
link=Cat_SNF_KS_40 |
|
| 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? |
|
| waitForElementNotPresent |
link=Cat_SNF_KS_40 |
|
| verifyElementNotPresent |
link=Cat_SNF_KS_40 |
|
| echo |
- Logout |
|
| clickAndWait |
link=Logout |
|
| waitForElementPresent |
//div[contains(text(),'Sign in')] |
|
| verifyElementPresent |
//div[contains(text(),'Sign in')] |
|