| 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 |
link=Add Category |
|
| click |
link=Add Category |
|
| waitForElementPresent |
CategoryTitle |
|
| type |
CategoryTitle |
Cate1_SNF_KS_33 |
| type |
Description |
Category 1 |
| click |
link=Save |
|
| waitForTextPresent |
Cate1_SNF_KS_33 |
|
| verifyTextPresent |
Cate1_SNF_KS_33 |
|
| echo |
-Add Forum- |
|
| waitForElementPresent |
//a[contains(text(),'Add Forum')] |
|
| click |
//a[contains(text(),'Add Forum')] |
|
| waitForElementPresent |
ForumTitle |
|
| type |
ForumTitle |
For1_SNF_KS_33 |
| type |
Description |
prepare forum data |
| waitForElementPresent |
//form[@id='UIForumForm']//a[text()='Save'] |
|
| click |
//form[@id='UIForumForm']//a[text()='Save'] |
|
| waitForElementPresent |
link=Cate1_SNF_KS_33 |
|
| click |
link=Cate1_SNF_KS_33 |
|
| waitForTextPresent |
For1_SNF_KS_33 |
|
| verifyTextPresent |
For1_SNF_KS_33 |
|
| echo |
-Add Topic for topic actions test- |
|
| waitForElementPresent |
link=For1_SNF_KS_33 |
|
| click |
link=For1_SNF_KS_33 |
|
| waitForElementPresent |
UITopicContainer |
|
| click |
//a[contains(text(),'Start Topic')] |
|
| waitForElementPresent |
ThreadTitle |
|
| type |
ThreadTitle |
Top1_SNF_KS_33 |
| waitForElementPresent |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Topic for Post Test |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Submit |
|
| click |
link=Submit |
|
| waitForTextPresent |
Top1_SNF_KS_33 |
|
| verifyTextPresent |
Top1_SNF_KS_33 |
|
| echo |
-Quick Reply for post action test |
|
| waitForElementPresent |
link=Top1_SNF_KS_33 |
|
| click |
link=Top1_SNF_KS_33 |
|
| waitForElementPresent |
Message |
|
| type |
Message |
Post Test |
| click |
link=Quick Reply |
|
| waitForTextPresent |
Post Test |
|
| verifyTextPresent |
Post Test |
|
| echo |
-Edit Post- |
|
| waitForElementPresent |
//form[@id='UITopicDetail']//a[@title='Edit This Post'] |
|
| click |
//form[@id='UITopicDetail']//a[@title='Edit This Post'] |
|
| waitForElementPresent |
//iframe[@id='MessageContent___Frame'] |
|
| selectFrame |
//iframe[@id='MessageContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Post Test Edit |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Submit |
|
| click |
link=Submit |
|
| waitForTextPresent |
Post Test Edit |
|
| verifyTextPresent |
Post Test Edit |
|
| echo |
-Quote Post- |
|
| waitForElementPresent |
//form[@id='UITopicDetail']//a[text()='Quote'] |
|
| click |
//form[@id='UITopicDetail']//a[text()='Quote'] |
|
| waitForElementPresent |
//iframe[@id='MessageContent___Frame'] |
|
| selectFrame |
//iframe[@id='MessageContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
[QUOTE=root]Post Test Edit[/QUOTE] Quote test |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Submit |
|
| click |
link=Submit |
|
| waitForTextPresent |
Originally Posted by root |
|
| verifyTextPresent |
Originally Posted by root |
|
| echo |
-Private Post- |
|
| waitForElementPresent |
//form[@id='UITopicDetail']//a[text()='Private'] |
|
| click |
//form[@id='UITopicDetail']//a[text()='Private'] |
|
| waitForElementPresent |
//iframe[@id='MessageContent___Frame'] |
|
| selectFrame |
//iframe[@id='MessageContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Private Post |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Submit |
|
| click |
link=Submit |
|
| waitForTextPresent |
Private Post |
|
| verifyTextPresent |
Private Post |
|
| echo |
-Delete Post- |
|
| echo |
- Select checkbox |
|
| waitForElementPresent |
//td[2]/div[1]/input |
|
| click |
//td[2]/div[1]/input |
|
| waitForElementPresent |
//form[@id='UITopicDetail']//a[text()='Delete'] |
|
| click |
//form[@id='UITopicDetail']//a[text()='Delete'] |
|
| assertConfirmation |
Are you sure to delete this post? |
|
| echo |
- Select checkbox |
|
| waitForElementPresent |
//td[2]/div[1]/input |
|
| click |
//td[2]/div[1]/input |
|
| waitForElementPresent |
//form[@id='UITopicDetail']//a[text()='Delete'] |
|
| click |
//form[@id='UITopicDetail']//a[text()='Delete'] |
|
| assertConfirmation |
Are you sure to delete this post? |
|
| waitForTextNotPresent |
Post Test Edit |
|
| verifyTextNotPresent |
Post Test Edit |
|
| echo |
-Check Private Post- |
|
| click |
link=Sign out |
|
| open |
/ksdemo/public/classic/ |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
demo |
| type |
password |
gtn |
| clickAndWait |
//a[@id='UIPortalLoginFormAction'] |
|
| echo |
-Add Topic for topic actions test- |
|
| open |
/ksdemo/private/classic/forum |
|
| waitForElementPresent |
link=For1_SNF_KS_33 |
|
| click |
link=For1_SNF_KS_33 |
|
| waitForTextPresent |
Top1_SNF_KS_33 |
|
| verifyTextPresent |
Top1_SNF_KS_33 |
|
| click |
link=Top1_SNF_KS_33 |
|
| waitForTextNotPresent |
Private Post |
|
| verifyTextNotPresent |
Private Post |
|
| echo |
-Delete Test Data- |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|
| open |
/ksdemo/public/classic/ |
|
| 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 |
|
| waitForElementPresent |
link=Cate1_SNF_KS_33 |
|
| click |
link=Cate1_SNF_KS_33 |
|
| 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_33 |
|
| verifyTextNotPresent |
Cate1_SNF_KS_33 |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|
| waitForTextPresent |
Sign in |
|