| 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 |
|
| echo |
-Add censor keyword- |
|
| open |
/ksdemo/private/classic/forum |
|
| waitForElementPresent |
//div[@id='Administrations']/div/div[1]/div/div/div/div |
|
| click |
//div[@id='Administrations']/div/div[1]/div/div/div/div |
|
| waitForElementPresent |
//div[@id='Administrations']/div/div[2]/div/div/div/div[2]/div/div/div[2]/a/span |
|
| click |
//div[@id='Administrations']/div/div[2]/div/div/div/div[2]/div/div/div[2]/a/span |
|
| waitForElementPresent |
censorKeyword |
|
| type |
censorKeyword |
censor |
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| echo |
-Add Category for Test- |
|
| waitForElementPresent |
//a/span |
|
| click |
//a/span |
|
| waitForElementPresent |
CategoryTitle |
|
| type |
CategoryTitle |
SNF_KS_47 |
| type |
Description |
test data |
| 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_47 |
|
| verifyTextPresent |
SNF_KS_47 |
|
| echo |
-Add Forum- |
|
| click |
link=SNF_KS_47 |
|
| waitForElementPresent |
//div[3]/div/div/div/div/a/span |
|
| click |
//div[3]/div/div/div/div/a/span |
|
| waitForElementPresent |
ForumTitle |
|
| type |
ForumTitle |
SNF_KS_47_For |
| type |
Description |
Desc forum |
| waitForElementPresent |
//form[@id='UIForumForm']/div[4]/table//div[1]/div/div/div |
|
| click |
//form[@id='UIForumForm']/div[4]/table//div[1]/div/div/div |
|
| waitForTextPresent |
SNF_KS_47_For |
|
| verifyTextPresent |
SNF_KS_47_For |
|
| echo |
-Add topics and check topic and post censor- |
|
| 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=SNF_KS_47_For |
|
| click |
link=SNF_KS_47_For |
|
| waitForElementPresent |
link=Start topic |
|
| click |
link=Start topic |
|
| waitForElementPresent |
ThreadTitle |
|
| type |
ThreadTitle |
Censor Topic |
| waitForElementPresent |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Censor Topic Content |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Submit |
|
| click |
link=Submit |
|
| waitForElementPresent |
//div[@id='UIForumPortlet']/div[6]/div/div[2]//div[@class='UIPopupMessages']/div[2]/div[@class='UITabContent']//div[@class='PopupMessage'] |
|
| verifyElementPresent |
//div[@id='UIForumPortlet']/div[6]/div/div[2]//div[@class='UIPopupMessages']/div[2]/div[@class='UITabContent']//div[@class='PopupMessage'] |
The content of this post may contain offending content. It will be displayed after moderation. |
| waitForElementPresent |
//div[5]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a |
|
| click |
//div[5]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a |
|
| echo |
-Add normal topic for censor post test- |
|
| waitForElementPresent |
link=Start topic |
|
| click |
link=Start topic |
|
| waitForElementPresent |
ThreadTitle |
|
| type |
ThreadTitle |
Topic for CTest |
| waitForElementPresent |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Topic for CTest |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Submit |
|
| click |
link=Submit |
|
| waitForTextPresent |
Topic for CTest |
|
| verifyTextPresent |
Topic for CTest |
|
| click |
link=Topic for CTest |
|
| waitForElementPresent |
Message |
|
| type |
Message |
censor post |
| click |
//form[@id='UITopicDetail']/div[6]/table//div[2]/div[2]/div[2]/div/div/div |
|
| waitForElementPresent |
//div[@id='UIForumPortlet']/div[6]/div/div[2]//div[@class='UIPopupMessages']/div[2]/div[@class='UITabContent']//div[@class='PopupMessage'] |
The content of this post may contain offending content. It will be displayed after moderation. |
| verifyElementPresent |
//div[@id='UIForumPortlet']/div[6]/div/div[2]//div[@class='UIPopupMessages']/div[2]/div[@class='UITabContent']//div[@class='PopupMessage'] |
The content of this post may contain offending content. It will be displayed after moderation. |
| waitForElementPresent |
//div[6]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a |
|
| click |
//div[6]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a |
|
| echo |
-Approve Censor post- |
|
| 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=SNF_KS_47_For |
|
| click |
link=SNF_KS_47_For |
|
| waitForElementPresent |
//tr[2]/td[9]/input |
|
| click |
//tr[2]/td[9]/input |
|
| waitForElementPresent |
//form[@id='UITopicContainer']/div[4]/div/div[1]/div/div/div/div[2]/div[1]/div/div/div/div/div |
|
| click |
//form[@id='UITopicContainer']/div[4]/div/div[1]/div/div/div/div[2]/div[1]/div/div/div/div/div |
|
| waitForElementPresent |
link=Censor |
|
| click |
link=Censor |
|
| waitForElementPresent |
link=Topic for CTest |
|
| click |
link=Topic for CTest |
|
| waitForElementPresent |
//div[3]/input |
|
| click |
//div[3]/input |
|
| waitForElementPresent |
//form[@id='UITopicDetail']/div[4]/div[1]/div/div/div/div/div[1]/div[1]/div/div/div/div/div |
|
| click |
//form[@id='UITopicDetail']/div[4]/div[1]/div/div/div/div/div[1]/div[1]/div/div/div/div/div |
|
| waitForElementPresent |
link=Show |
|
| click |
link=Show |
|
| echo |
-View approved posts by normal user |
|
| 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=SNF_KS_47_For |
|
| click |
link=SNF_KS_47_For |
|
| waitForTextPresent |
Censor Topic |
|
| verifyTextPresent |
Censor Topic |
|
| waitForElementPresent |
link=Topic for CTest |
|
| click |
link=Topic for CTest |
|
| waitForTextPresent |
censor post |
|
| verifyTextPresent |
censor post |
|
| echo |
-Delete Test Data- |
|
| 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=SNF_KS_47 |
|
| click |
link=SNF_KS_47 |
|
| waitForElementPresent |
UICategory |
|
| click |
//form[@id='UICategory']//div[@class='ManageCategoryButton'] |
|
| waitForElementPresent |
link=Delete |
|
| click |
link=Delete |
|
| assertConfirmation |
Are you sure you want to delete this category? |
|
| waitForElementNotPresent |
SNF_KS_47 |
|
| verifyTextNotPresent |
SNF_KS_47 |
|
| echo |
-- Reset censor value |
|
| waitForElementPresent |
//div[@id='Administrations']/div/div[1]/div/div/div/div |
|
| click |
//div[@id='Administrations']/div/div[1]/div/div/div/div |
|
| waitForElementPresent |
//div[@id='Administrations']/div/div[2]/div/div/div/div[2]/div/div/div[2]/a/span |
|
| click |
//div[@id='Administrations']/div/div[2]/div/div/div/div[2]/div/div/div[2]/a/span |
|
| waitForElementPresent |
censorKeyword |
|
| type |
censorKeyword |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| clickAndWait |
link=Sign out |
|
| waitForTextPresent |
Sign in |
|