| open |
/ksdemo/public/classic/ |
|
| windowMaximize |
|
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//a[@id='UIPortalLoginFormAction'] |
|
| open |
/ksdemo/private/classic/forum |
|
| echo |
-Add Category for Test- |
|
| waitForElementPresent |
//a[contains(text(),'Add Category')] |
|
| click |
//a[contains(text(),'Add Category')] |
|
| waitForElementPresent |
CategoryTitle |
|
| type |
CategoryTitle |
Cate1_SNF_KS_29 |
| type |
Description |
Category 1 |
| click |
link=Save |
|
| waitForTextPresent |
Cate1_SNF_KS_29 |
|
| verifyTextPresent |
Cate1_SNF_KS_29 |
|
| echo |
-Add Forum- |
|
| waitForElementPresent |
//a[contains(text(),'Add Forum')] |
|
| click |
//a[contains(text(),'Add Forum')] |
|
| waitForElementPresent |
ForumTitle |
|
| type |
ForumTitle |
For1_SNF_KS_29 |
| type |
Description |
prepare forum data |
| waitForElementPresent |
//div[@id='AddNewForumForm']//a[text()='Save'] |
|
| click |
//div[@id='AddNewForumForm']//a[text()='Save'] |
|
| waitForElementPresent |
link=Cate1_SNF_KS_29 |
|
| click |
link=Cate1_SNF_KS_29 |
|
| waitForTextPresent |
For1_SNF_KS_29 |
|
| verifyTextPresent |
For1_SNF_KS_29 |
|
| echo |
-Add Topic for topic actions test- |
|
| waitForElementPresent |
link=For1_SNF_KS_29 |
|
| click |
link=For1_SNF_KS_29 |
|
| waitForElementPresent |
UITopicContainer |
|
| click |
//a[contains(text(),'Start Topic')] |
|
| waitForElementPresent |
ThreadTitle |
|
| type |
ThreadTitle |
Top1_SNF_KS_29 |
| waitForElementPresent |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Topic for Actions Test |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Submit |
|
| click |
link=Submit |
|
| waitForTextPresent |
Top1_SNF_KS_29 |
|
| verifyTextPresent |
Top1_SNF_KS_29 |
|
| echo |
-Close Topic- |
|
| waitForElementPresent |
link=Top1_SNF_KS_29 |
|
| click |
link=Top1_SNF_KS_29 |
|
| waitForElementPresent |
//a[contains(text(),'More Actions')] |
|
| click |
//a[contains(text(),'More Actions')] |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| waitForElementNotPresent |
Message |
|
| verifyElementNotPresent |
Message |
|
| echo |
-Open Topic- |
|
| waitForElementPresent |
//a[contains(text(),'More Actions')] |
|
| click |
//a[contains(text(),'More Actions')] |
|
| waitForElementPresent |
link=Open |
|
| click |
link=Open |
|
| waitForElementPresent |
Message |
|
| verifyElementPresent |
Message |
|
| echo |
-Lock Topic- |
|
| waitForElementPresent |
//a[contains(text(),'More Actions')] |
|
| click |
//a[contains(text(),'More Actions')] |
|
| waitForElementPresent |
link=Lock |
|
| click |
link=Lock |
|
| waitForElementNotPresent |
Message |
|
| verifyElementNotPresent |
Message |
|
| echo |
-Unlock Topic- |
|
| waitForElementPresent |
//a[contains(text(),'More Actions')] |
|
| click |
//a[contains(text(),'More Actions')] |
|
| waitForElementPresent |
link=Unlock |
|
| click |
link=Unlock |
|
| waitForElementPresent |
Message |
|
| verifyElementPresent |
Message |
|
| echo |
-Stick Topic- |
|
| waitForElementPresent |
//a[contains(text(),'More Actions')] |
|
| click |
//a[contains(text(),'More Actions')] |
|
| waitForElementPresent |
link=Stick |
|
| click |
link=Stick |
|
| waitForElementPresent |
link=For1_SNF_KS_29 |
|
| click |
link=For1_SNF_KS_29 |
|
| waitForElementPresent |
//div[@id='UITopicContent']//span[text()='Sticky:'] |
|
| verifyElementPresent |
//div[@id='UITopicContent']//span[text()='Sticky:'] |
|
| echo |
-Ustick Topic- |
|
| waitForElementPresent |
link=Top1_SNF_KS_29 |
|
| click |
link=Top1_SNF_KS_29 |
|
| waitForElementPresent |
//a[contains(text(),'More Actions')] |
|
| click |
//a[contains(text(),'More Actions')] |
|
| waitForElementPresent |
link=Unstick |
|
| click |
link=Unstick |
|
| waitForElementPresent |
link=For1_SNF_KS_29 |
|
| click |
link=For1_SNF_KS_29 |
|
| waitForElementNotPresent |
//div[@id='UITopicContent']//span[text()='Sticky:'] |
|
| verifyElementNotPresent |
//div[@id='UITopicContent']//span[text()='Sticky:'] |
|
| echo |
- Add post for split topic |
|
| waitForElementPresent |
link=Top1_SNF_KS_29 |
|
| click |
link=Top1_SNF_KS_29 |
|
| waitForElementPresent |
Message |
|
| type |
Message |
Reply for Split |
| click |
link=Quick Reply |
|
| echo |
-Split Topic- |
|
| waitForElementPresent |
//a[contains(text(),'More Actions')] |
|
| click |
//a[contains(text(),'More Actions')] |
|
| waitForElementPresent |
link=Split |
|
| click |
link=Split |
|
| verifyTextPresent |
Split from : |
|
| verifyTextPresent |
Top1_SNF_KS_29 |
|
| echo |
- Select checkbox |
|
| check |
//td[text()='Re: Top1_SNF_KS_29']/following-sibling::td/div/input |
|
| waitForElementPresent |
SplitThread |
|
| type |
SplitThread |
Split Topic |
| waitForElementPresent |
//div[@id='SplitTopicForm']//a[text()='Save'] |
|
| click |
//div[@id='SplitTopicForm']//a[text()='Save'] |
|
| waitForElementPresent |
link=For1_SNF_KS_29 |
|
| click |
link=For1_SNF_KS_29 |
|
| waitForElementPresent |
link=Split Topic |
|
| click |
link=Split Topic |
|
| waitForTextPresent |
Reply for Split |
|
| verifyTextPresent |
Reply for Split |
|
| echo |
-Watch Topic- |
|
| waitForElementPresent |
link=Watch |
|
| click |
link=Watch |
|
| waitForTextPresent |
You are now watching this item. |
|
| verifyTextPresent |
You are now watching this item. |
|
| waitForElementPresent |
//div[@id='UIForumPortlet']//a[text()='OK'] |
|
| click |
//div[@id='UIForumPortlet']//a[text()='OK'] |
|
| waitForElementPresent |
link=Unwatch |
|
| verifyElementPresent |
link=Unwatch |
|
| echo |
-Mange Watch Topic |
|
| waitForElementPresent |
//a[contains(text(),'More Actions')] |
|
| click |
//a[contains(text(),'More Actions')] |
|
| waitForElementPresent |
link=Watches |
|
| click |
link=Watches |
|
| waitForElementPresent |
//form[@id='UIWatchToolsForm']//table[@class='UIGrid']//td[2]/div |
|
| click |
//form[@id='UIWatchToolsForm']//table[@class='UIGrid']//td[2]/div |
|
| waitForTextPresent |
No Emails |
|
| verifyTextPresent |
No Emails |
|
| waitForElementPresent |
//div[@id='WatchToolsForm']//a[text()='Close'] |
|
| click |
//div[@id='WatchToolsForm']//a[text()='Close'] |
|
| echo |
-Delete Test Data |
|
| waitForElementPresent |
link=Cate1_SNF_KS_29 |
|
| click |
link=Cate1_SNF_KS_29 |
|
| waitForElementPresent |
link=Manage Category |
|
| click |
link=Manage Category |
|
| waitForElementPresent |
link=Delete |
|
| click |
link=Delete |
|
| assertConfirmation |
Are you sure to delete this category? |
|
| waitForTextNotPresent |
Cate1_SNF_KS_29 |
|
| verifyTextNotPresent |
Cate1_SNF_KS_29 |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|
| waitForTextPresent |
Sign in |
|
| verifyTextPresent |
Sign in |
|