| open |
/ksdemo/public/classic/ |
|
| windowMaximize |
|
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a |
|
| open |
/ksdemo/private/classic/forum |
|
| echo |
-Add Category for Test- |
|
| waitForElementPresent |
//a/span |
|
| click |
//a/span |
|
| waitForElementPresent |
CategoryTitle |
|
| type |
CategoryTitle |
Cate1_SNF_KS_34 |
| type |
Description |
Category 1 |
| click |
link=Save |
|
| waitForTextPresent |
Cate1_SNF_KS_34 |
|
| verifyTextPresent |
Cate1_SNF_KS_34 |
|
| 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 |
For1_SNF_KS_34 |
| type |
Description |
prepare forum data |
| 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=Cate1_SNF_KS_34 |
|
| click |
link=Cate1_SNF_KS_34 |
|
| waitForTextPresent |
For1_SNF_KS_34 |
|
| verifyTextPresent |
For1_SNF_KS_34 |
|
| echo |
-Add Topic- |
|
| waitForElementPresent |
link=For1_SNF_KS_34 |
|
| click |
link=For1_SNF_KS_34 |
|
| waitForElementPresent |
link=Start topic |
|
| click |
link=Start topic |
|
| waitForElementPresent |
ThreadTitle |
|
| type |
ThreadTitle |
Top1_SNF_KS_34 |
| waitForElementPresent |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Topic 1 |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Submit |
|
| click |
link=Submit |
|
| waitForTextPresent |
Top1_SNF_KS_34 |
|
| verifyTextPresent |
Top1_SNF_KS_34 |
|
| waitForElementPresent |
link=Start topic |
|
| click |
link=Start topic |
|
| waitForElementPresent |
ThreadTitle |
|
| type |
ThreadTitle |
Top2_SNF_KS_34 |
| waitForElementPresent |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Topic 2 |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Submit |
|
| click |
link=Submit |
|
| waitForTextPresent |
Top2_SNF_KS_34 |
|
| verifyTextPresent |
Top2_SNF_KS_34 |
|
| echo |
-Add Quick Reply- |
|
| waitForElementPresent |
//a[contains(text(),'Top2_SNF_KS_34')] |
|
| click |
//a[contains(text(),'Top2_SNF_KS_34')] |
|
| waitForElementPresent |
Message |
|
| type |
Message |
Post 1 |
| click |
link=Quick reply |
|
| waitForElementPresent |
Message |
|
| type |
Message |
Post 2 |
| click |
link=Quick reply |
|
| waitForElementPresent |
Message |
|
| type |
Message |
Post 3 |
| click |
link=Quick reply |
|
| waitForTextPresent |
Post 3 |
|
| verifyTextPresent |
Post 1 |
|
| verifyTextPresent |
Post 2 |
|
| verifyTextPresent |
Post 3 |
|
| echo |
-Move post- |
|
| waitForElementPresent |
//form[@id='UITopicDetail']//input[@class='checkbox'] |
|
| click |
//form[@id='UITopicDetail']//input[@class='checkbox'] |
|
| waitForElementPresent |
//form[@id='UITopicDetail']/div[4]/div[1]//div[1]/div[1]/div/div/div/div/div |
|
| click |
//form[@id='UITopicDetail']/div[4]/div[1]//div[1]/div[1]/div/div/div/div/div |
|
| waitForElementPresent |
link=Move |
|
| click |
link=Move |
|
| waitForElementPresent |
//a[contains(text(),'Top1_SNF_KS_34')] |
|
| click |
//a[contains(text(),'Top1_SNF_KS_34')] |
|
| waitForTextPresent |
Post 1 |
|
| verifyTextPresent |
Post 1 |
|
| echo |
-Hide Post- |
|
| waitForElementPresent |
//form[@id='UITopicDetail']//input[@class='checkbox'] |
|
| click |
//form[@id='UITopicDetail']//input[@class='checkbox'] |
|
| click |
//form[@id='UITopicDetail']/div[4]/div[1]//div[1]/div[1]/div/div/div/div/div |
|
| waitForElementPresent |
link=Hide |
|
| click |
link=Hide |
|
| waitForElementPresent |
//div[@class='PostViewIcon IconsView']/span |
|
| verifyElementPresent |
//div[@class='PostViewIcon IconsView']/span |
hidden! |
| echo |
-Add Topic with post moderation test for Approve Test- |
|
| waitForElementPresent |
link=For1_SNF_KS_34 |
|
| click |
link=For1_SNF_KS_34 |
|
| waitForElementPresent |
link=Start topic |
|
| click |
link=Start topic |
|
| waitForElementPresent |
ThreadTitle |
|
| type |
ThreadTitle |
Top3_SNF_KS_34 |
| waitForElementPresent |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Topic 3 |
| selectFrame |
relative=top |
|
| click |
link=Options |
|
| verifyElementPresent |
ModeratePost |
|
| click |
ModeratePost |
|
| waitForElementPresent |
link=Submit |
|
| click |
link=Submit |
|
| waitForTextPresent |
Top3_SNF_KS_34 |
|
| verifyTextPresent |
Top3_SNF_KS_34 |
|
| echo |
-Add post to topic require moderation- |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|
| open |
/ksdemo/public/classic/ |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
demo |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a |
|
| open |
/ksdemo/private/classic/forum |
|
| waitForElementPresent |
link=For1_SNF_KS_34 |
|
| click |
link=For1_SNF_KS_34 |
|
| pause |
1000 |
|
| click |
link=Top3_SNF_KS_34 |
|
| pause |
1000 |
|
| type |
Message |
Post to approve Topic |
| waitForElementPresent |
link=Quick reply |
|
| click |
link=Quick reply |
|
| waitForElementPresent |
//div[@id='UIForumPortlet']//div[@class='ExoMessageDecorator']//div[@class='ActionButton LightBlueStyle'] |
|
| click |
//div[@id='UIForumPortlet']//div[@class='ExoMessageDecorator']//div[@class='ActionButton LightBlueStyle'] |
|
| waitForElementPresent |
link=For1_SNF_KS_34 |
|
| click |
link=For1_SNF_KS_34 |
|
| waitForElementPresent |
//tr[3]/td[3]/div[1]/span[1]/a |
|
| click |
//tr[3]/td[3]/div[1]/span[1]/a |
|
| waitForTextNotPresent |
Post 1 |
|
| verifyTextNotPresent |
Post 1 |
|
| echo |
-Approve post- |
|
| 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 |
//div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a |
|
| open |
/ksdemo/private/classic/forum |
|
| waitForElementPresent |
link=For1_SNF_KS_34 |
|
| click |
link=For1_SNF_KS_34 |
|
| waitForElementPresent |
link=Top3_SNF_KS_34 |
|
| click |
link=Top3_SNF_KS_34 |
|
| waitForElementPresent |
//div[@class='PostViewIcon IconsView']/span |
|
| verifyElementPresent |
//div[@class='PostViewIcon IconsView']/span |
pending for approval! |
| waitForElementPresent |
//form[@id='UITopicDetail']//input[@class='checkbox'] |
|
| click |
//form[@id='UITopicDetail']//input[@class='checkbox'] |
|
| waitForElementPresent |
//form[@id='UITopicDetail']/div[4]/div[1]//div[1]/div[1]/div/div/div/div/div |
|
| click |
//form[@id='UITopicDetail']/div[4]/div[1]//div[1]/div[1]/div/div/div/div/div |
|
| waitForElementPresent |
link=Approve |
|
| click |
link=Approve |
|
| waitForElementNotPresent |
//div[@class='PostViewIcon IconsView']/span |
pending for approval! |
| verifyElementNotPresent |
//div[@class='PostViewIcon IconsView']/span |
pending for approval! |
| echo |
-Show Post- |
|
| waitForElementPresent |
link=For1_SNF_KS_34 |
|
| click |
link=For1_SNF_KS_34 |
|
| waitForElementPresent |
//tr[3]/td[3]/div[1]/span[1]/a |
|
| click |
//tr[3]/td[3]/div[1]/span[1]/a |
|
| waitForElementPresent |
//form[@id='UITopicDetail']//input[@class='checkbox'] |
|
| click |
//form[@id='UITopicDetail']//input[@class='checkbox'] |
|
| waitForElementPresent |
//form[@id='UITopicDetail']/div[4]/div[1]//div[1]/div[1]/div/div/div/div/div |
|
| click |
//form[@id='UITopicDetail']/div[4]/div[1]//div[1]/div[1]/div/div/div/div/div |
|
| waitForElementPresent |
link=Show |
|
| click |
link=Show |
|
| waitForElementNotPresent |
//div[@class='PostViewIcon IconsView']/span |
|
| verifyElementNotPresent |
//div[@class='PostViewIcon IconsView']/span |
hidden! |
| echo |
-Check approved and show 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 |
//div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a |
|
| open |
/ksdemo/private/classic/forum |
|
| waitForElementPresent |
link=For1_SNF_KS_34 |
|
| click |
link=For1_SNF_KS_34 |
|
| waitForElementPresent |
link=Top3_SNF_KS_34 |
|
| click |
link=Top3_SNF_KS_34 |
|
| waitForTextPresent |
Post to approve Topic |
|
| verifyTextPresent |
Post to approve Topic |
|
| waitForElementPresent |
link=For1_SNF_KS_34 |
|
| click |
link=For1_SNF_KS_34 |
|
| waitForElementPresent |
//tr[2]/td[3]/div[1]/span[1]/a |
|
| click |
//tr[2]/td[3]/div[1]/span[1]/a |
|
| waitForTextPresent |
Post 1 |
|
| verifyTextPresent |
Post 1 |
|
| echo |
-Delete Post- |
|
| click |
link=Sign out |
|
| open |
/ksdemo/public/classic/ |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a |
|
| open |
/ksdemo/private/classic/forum |
|
| waitForElementPresent |
link=For1_SNF_KS_34 |
|
| click |
link=For1_SNF_KS_34 |
|
| waitForElementPresent |
link=Top3_SNF_KS_34 |
|
| click |
link=Top3_SNF_KS_34 |
|
| waitForTextPresent |
Post to approve Topic |
|
| verifyTextPresent |
Post to approve Topic |
|
| waitForElementPresent |
link=For1_SNF_KS_34 |
|
| click |
link=For1_SNF_KS_34 |
|
| waitForElementPresent |
//tr[2]/td[3]/div[1]/span[1]/a |
|
| click |
//tr[2]/td[3]/div[1]/span[1]/a |
|
| waitForTextPresent |
Post 1 |
|
| verifyTextPresent |
Post 1 |
|
| waitForElementPresent |
//form[@id='UITopicDetail']//input[@class='checkbox'] |
|
| click |
//form[@id='UITopicDetail']//input[@class='checkbox'] |
|
| click |
//form[@id='UITopicDetail']/div[4]/div[1]//div[1]/div[1]/div/div/div/div/div |
|
| waitForElementPresent |
link=Delete |
|
| click |
link=Delete |
|
| assertConfirmation |
Are you sure you want to delete this post? |
|
| waitForTextNotPresent |
Post 1 |
|
| verifyTextNotPresent |
Post 1 |
|
| echo |
-Delete test data- |
|
| waitForElementPresent |
link=Cate1_SNF_KS_34 |
|
| click |
link=Cate1_SNF_KS_34 |
|
| 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 |
Cate1_SNF_KS_34 |
|
| verifyTextNotPresent |
Cate1_SNF_KS_34 |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|
| waitForTextPresent |
Sign in |
|