Test_SNF_KS_29_ksdemo_MoreActionInTopic
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_29
type Description Category 1
click link=Save
waitForTextPresent Cate1_SNF_KS_29
verifyTextPresent Cate1_SNF_KS_29
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_29
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_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 //form[@id='UITopicContainer']//div[@class='ItemIcon PostnewThreadIcon']/a
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-
click link=Top1_SNF_KS_29
waitForElementPresent //form[@id='UITopicDetail']/div[4]/div[1]//div[5]/div[1]/div/div/div/div/div
click //form[@id='UITopicDetail']/div[4]/div[1]//div[5]/div[1]/div/div/div/div/div
waitForElementPresent link=Close
click link=Close
waitForElementPresent //form[@id='UITopicDetail']//div[@class='IconButton LockIcon']
verifyElementPresent //form[@id='UITopicDetail']//div[@class='IconButton LockIcon']
verifyElementNotPresent Message
echo -Open Topic-
click //form[@id='UITopicDetail']/div[4]/div[1]//div[5]/div[1]/div/div/div/div/div
waitForElementPresent link=Open
click link=Open
waitForElementPresent //form[@id='UITopicDetail']//div[@class='IconButton PostReplyIcon']
verifyElementPresent //form[@id='UITopicDetail']//div[@class='IconButton PostReplyIcon']
verifyElementPresent Message
echo -Lock Topic-
waitForElementPresent //form[@id='UITopicDetail']/div[4]/div[1]//div[5]/div[1]/div/div/div/div/div
click //form[@id='UITopicDetail']/div[4]/div[1]//div[5]/div[1]/div/div/div/div/div
waitForElementPresent link=Lock
click link=Lock
waitForElementPresent //form[@id='UITopicDetail']//div[@class='IconButton LockIcon']
verifyElementPresent //form[@id='UITopicDetail']//div[@class='IconButton LockIcon']
verifyElementNotPresent Message
echo -Unlock Topic-
click //form[@id='UITopicDetail']/div[4]/div[1]//div[5]/div[1]/div/div/div/div/div
waitForElementPresent link=Unlock
click link=Unlock
waitForElementPresent //form[@id='UITopicDetail']//div[@class='IconButton PostReplyIcon']
verifyElementPresent //form[@id='UITopicDetail']//div[@class='IconButton PostReplyIcon']
verifyElementPresent Message
echo -Stick Topic-
click //form[@id='UITopicDetail']/div[4]/div[1]//div[5]/div[1]/div/div/div/div/div
waitForElementPresent link=Stick
click link=Stick
waitForElementPresent link=For1_SNF_KS_29
click link=For1_SNF_KS_29
waitForElementPresent //span[@class='Text StickyIcon']
verifyElementPresent //span[@class='Text StickyIcon']
echo -Ustick Topic-
waitForElementPresent //div[@id='UITopicContent']/div/table/tbody/tr/td[3]/div/span/a[@class='ActionLink TitleNorman PopupMenu']
click //div[@id='UITopicContent']/div/table/tbody/tr/td[3]/div/span/a[@class='ActionLink TitleNorman PopupMenu']
waitForElementPresent //form[@id='UITopicDetail']/div[4]/div[1]//div[5]/div[1]/div/div/div/div/div
click //form[@id='UITopicDetail']/div[4]/div[1]//div[5]/div[1]/div/div/div/div/div
waitForElementPresent link=Unstick
click link=Unstick
waitForElementPresent link=For1_SNF_KS_29
click link=For1_SNF_KS_29
waitForElementNotPresent //span[@class='Text StickyIcon']
verifyElementNotPresent //span[@class='Text StickyIcon']
echo - Add post for split topic
waitForElementPresent //div[@id='UITopicContent']/div/table/tbody/tr/td[3]/div/span/a[@class='ActionLink TitleNorman PopupMenu']
click //div[@id='UITopicContent']/div/table/tbody/tr/td[3]/div/span/a[@class='ActionLink TitleNorman PopupMenu']
waitForElementPresent Message
type Message Reply for Split
click link=Quick reply
echo -Split Topic-
waitForElementPresent //form[@id='UITopicDetail']/div[4]/div[1]//div[5]/div[1]/div/div/div/div/div
click //form[@id='UITopicDetail']/div[4]/div[1]//div[5]/div[1]/div/div/div/div/div
waitForElementPresent link=Split
click link=Split
waitForElementPresent //div[@class='UISplitTopicForm']
click //form[@id='UISplitTopicForm']//input[@class='checkbox']
waitForElementPresent SplitThread
type SplitThread Split Topic
waitForElementPresent //form[@id='UISplitTopicForm']/div[3]/table//div[1]/div/div/div
click //form[@id='UISplitTopicForm']/div[3]/table//div[1]/div/div/div
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
waitForElementPresent //div[@id='UIForumPortlet']//div[@class='ExoMessageDecorator']//div[@class='ActionButton LightBlueStyle']
click //div[@id='UIForumPortlet']//div[@class='ExoMessageDecorator']//div[@class='ActionButton LightBlueStyle']
waitForElementPresent link=Unwatch
verifyElementPresent link=Unwatch
echo -Mange Watch Topic
waitForElementPresent //form[@id='UITopicDetail']/div[4]/div[1]//div[5]/div[1]/div/div/div/div/div
click //form[@id='UITopicDetail']/div[4]/div[1]//div[5]/div[1]/div/div/div/div/div
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 //form[@id='UIWatchToolsForm']/div[3]/table//a
click //form[@id='UIWatchToolsForm']/div[3]/table//a
echo -Delete Test Data
waitForElementPresent link=Cate1_SNF_KS_29
click link=Cate1_SNF_KS_29
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_29
verifyTextNotPresent Cate1_SNF_KS_29
waitForElementPresent link=Sign out
clickAndWait link=Sign out