Test_SNF_KS_33_ksdemo_BasicActionsInPostReply
open /portal/public/intranet/
windowMaximize
waitForElementPresent //div[contains(text(),'Sign in')]
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
waitForElementPresent password
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
open /portal/private/intranet/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=Logout
waitForElementPresent //div[contains(text(),'Sign in')]
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username demo
waitForElementPresent password
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
open /portal/private/intranet/forum
echo -Add Topic for topic actions test-
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=Logout
clickAndWait link=Logout
waitForElementPresent //div[contains(text(),'Sign in')]
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
waitForElementPresent password
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
open /portal/private/intranet/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=Logout
clickAndWait link=Logout
waitForTextPresent Sign in