| 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 |
|
| open |
/portal/private/intranet/forum |
|
| echo |
-Add category- |
|
| waitForElementPresent |
//a/span |
|
| click |
//a/span |
|
| waitForElementPresent |
CategoryTitle |
|
| type |
CategoryTitle |
SNF_KS_35_Cate 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 |
SNF_KS_35_Cate 1 |
|
| verifyTextPresent |
SNF_KS_35_Cate 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 |
SNF_KS_35_For1 |
| type |
Description |
SNF_KS_35_For1_Desc |
| 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=SNF_KS_35_Cate 1 |
|
| click |
link=SNF_KS_35_Cate 1 |
|
| waitForTextPresent |
SNF_KS_35_For1 |
|
| verifyTextPresent |
SNF_KS_35_For1 |
|
| echo |
-Add topic- |
|
| waitForElementPresent |
link=SNF_KS_35_For1 |
|
| click |
link=SNF_KS_35_For1 |
|
| waitForElementPresent |
link=Start topic |
|
| click |
link=Start topic |
|
| waitForElementPresent |
ThreadTitle |
|
| type |
ThreadTitle |
Topic test |
| waitForElementPresent |
//iframe[@id='messageContent___Frame'] |
|
| 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 |
-View Category/Forum- |
|
| waitForElementPresent |
link=SNF_KS_35_Cate 1 |
|
| click |
link=SNF_KS_35_Cate 1 |
|
| waitForElementPresent |
link=SNF_KS_35_For1 |
|
| verifyElementPresent |
link=SNF_KS_35_For1 |
|
| echo |
-View Category/Forum/Topic by normal user- |
|
| clickAndWait |
link=Logout |
|
| 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 |
demo |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a |
|
| open |
/portal/private/intranet/forum |
|
| waitForElementPresent |
link=SNF_KS_35_Cate 1 |
|
| click |
link=SNF_KS_35_Cate 1 |
|
| waitForElementPresent |
link=SNF_KS_35_For1 |
|
| click |
link=SNF_KS_35_For1 |
|
| waitForElementPresent |
link=Topic test |
|
| click |
link=Topic test |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| 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 |
-Delete Test Data- |
|
| open |
/portal/private/intranet/forum |
|
| waitForElementPresent |
link=SNF_KS_35_Cate 1 |
|
| click |
link=SNF_KS_35_Cate 1 |
|
| waitForElementPresent |
//form[@id='UICategory']//div[@class='ManageCategoryButton'] |
|
| click |
//form[@id='UICategory']//div[@class='ManageCategoryButton'] |
|
| waitForElementPresent |
link=Delete |
|
| click |
link=Delete |
|
| assertConfirmation |
Are you sure you want to delete this category? |
|
| waitForTextNotPresent |
SNF_KS_35_Cate 1 |
|
| verifyTextNotPresent |
SNF_KS_35_Cate 1 |
|
| clickAndWait |
link=Logout |
|