| 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_28 |
| type |
Description |
Category 1 |
| click |
link=Save |
|
| waitForTextPresent |
Cate1_SNF_KS_28 |
|
| verifyTextPresent |
Cate1_SNF_KS_28 |
|
| echo |
-Add Forum- |
|
| waitForElementPresent |
//a[contains(text(),'Add Forum')] |
|
| click |
//a[contains(text(),'Add Forum')] |
|
| waitForElementPresent |
ForumTitle |
|
| type |
ForumTitle |
For1_SNF_KS_28 |
| type |
Description |
prepare forum data |
| waitForElementPresent |
//form[@id='UIForumForm']//a[text()='Save'] |
|
| click |
//form[@id='UIForumForm']//a[text()='Save'] |
|
| waitForElementPresent |
link=Cate1_SNF_KS_28 |
|
| click |
link=Cate1_SNF_KS_28 |
|
| waitForTextPresent |
For1_SNF_KS_28 |
|
| verifyTextPresent |
For1_SNF_KS_28 |
|
| echo |
-Add Topic for topic actions test- |
|
| waitForElementPresent |
link=For1_SNF_KS_28 |
|
| click |
link=For1_SNF_KS_28 |
|
| waitForElementPresent |
UITopicContainer |
|
| click |
//a[contains(text(),'Start Topic')] |
|
| waitForElementPresent |
ThreadTitle |
|
| type |
ThreadTitle |
Top1_SNF_KS_28 |
| waitForElementPresent |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Top1_SNF_KS_28_Content |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Submit |
|
| click |
link=Submit |
|
| waitForTextPresent |
Top1_SNF_KS_28 |
|
| verifyTextPresent |
Top1_SNF_KS_28 |
|
| echo |
-Edit Topic- |
|
| click |
link=Top1_SNF_KS_28 |
|
| click |
//a[contains(text(),'More Actions')] |
|
| waitForElementPresent |
link=Edit |
|
| click |
link=Edit |
|
| waitForElementPresent |
ThreadTitle |
|
| verifyValue |
ThreadTitle |
Top1_SNF_KS_28 |
| type |
ThreadTitle |
Top1_SNF_KS_28_Update |
| waitForElementPresent |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Top1_SNF_KS_28_Content_Update |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Submit |
|
| click |
link=Submit |
|
| waitForTextPresent |
Top1_SNF_KS_28_Update |
|
| verifyTextPresent |
Top1_SNF_KS_28_Update |
|
| echo |
-Create Forum For Move Topic |
|
| waitForElementPresent |
link=Cate1_SNF_KS_28 |
|
| click |
link=Cate1_SNF_KS_28 |
|
| waitForElementPresent |
//a[contains(text(),'Add Forum')] |
|
| click |
//a[contains(text(),'Add Forum')] |
|
| waitForElementPresent |
ForumTitle |
|
| type |
ForumTitle |
For2_SNF_KS_28 |
| type |
Description |
Destination Forum |
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| waitForElementPresent |
link=Cate1_SNF_KS_28 |
|
| click |
link=Cate1_SNF_KS_28 |
|
| waitForTextPresent |
For2_SNF_KS_28 |
|
| verifyTextPresent |
For2_SNF_KS_28 |
|
| echo |
-Move Topic- |
|
| waitForElementPresent |
link=For1_SNF_KS_28 |
|
| click |
link=For1_SNF_KS_28 |
|
| waitForElementPresent |
link=Top1_SNF_KS_28_Update |
|
| click |
link=Top1_SNF_KS_28_Update |
|
| waitForElementPresent |
//a[contains(text(),'More Actions')] |
|
| click |
//a[contains(text(),'More Actions')] |
|
| waitForElementPresent |
//form[@id='UITopicDetail']/div[4]/div/div[3]/div[2]/ul/li[11]/a |
|
| click |
//form[@id='UITopicDetail']/div[4]/div/div[3]/div[2]/ul/li[11]/a |
|
| waitForElementPresent |
link=For2_SNF_KS_28 |
|
| click |
link=For2_SNF_KS_28 |
|
| waitForElementPresent |
link=For2_SNF_KS_28 |
|
| click |
link=For2_SNF_KS_28 |
|
| waitForTextPresent |
Top1_SNF_KS_28_Update |
|
| verifyTextPresent |
Top1_SNF_KS_28_Update |
|
| echo |
-Delete Topic- |
|
| waitForElementPresent |
link=Top1_SNF_KS_28_Update |
|
| click |
link=Top1_SNF_KS_28_Update |
|
| waitForElementPresent |
//a[contains(text(),'More Actions')] |
|
| click |
//a[contains(text(),'More Actions')] |
|
| waitForElementPresent |
//form[@id='UITopicDetail']/div[4]/div/div[3]/div[2]/ul/li[12]/a |
|
| click |
//form[@id='UITopicDetail']/div[4]/div/div[3]/div[2]/ul/li[12]/a |
|
| verifyConfirmation |
Are you sure to delete this topic? |
|
| waitForTextPresent |
This forum is empty. |
|
| verifyTextPresent |
This forum is empty. |
|
| echo |
-Delete Test Data- |
|
| waitForElementPresent |
link=Cate1_SNF_KS_28 |
|
| click |
link=Cate1_SNF_KS_28 |
|
| waitForElementPresent |
link=Manage Category |
|
| click |
link=Manage Category |
|
| waitForElementPresent |
link=Delete |
|
| click |
link=Delete |
|
| verifyConfirmation |
Are you sure to delete this category? |
|
| waitForTextNotPresent |
Cate1_SNF_KS_28 |
|
| verifyTextNotPresent |
Cate1_SNF_KS_28 |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|
| waitForTextPresent |
Sign in |
|