Test_SNF_KS_36_defaultportal_QuickSearchInForum
open /portal/public/intranet/
windowMaximize
waitForElementPresent //div[2]/div[2]/div[1]/div/div/div[1]
click //div[2]/div[2]/div[1]/div/div/div[1]
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
open /portal/private/intranet/forum
echo -Add category-
waitForElementPresent //a/span
click //a/span
waitForElementPresent CategoryTitle
type CategoryTitle SNF_KS_36_Cate1
type Description Every one can see
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_36_Cate1
verifyTextPresent SNF_KS_36_Cate1
echo -Add forum-
waitForElementPresent link=SNF_KS_36_Cate1
click link=SNF_KS_36_Cate1
waitForElementPresent //div[3]/div/div/div/div/a/span
click //div[3]/div/div/div/div/a/span
waitForElementPresent ForumTitle
type ForumTitle SNF_KS_36_For1
type Description SNF_KS_36_For1_Desc
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=SNF_KS_36_Cate1
click link=SNF_KS_36_Cate1
waitForTextPresent SNF_KS_36_For1
verifyTextPresent SNF_KS_36_For1
echo -Add topic-
waitForElementPresent link=SNF_KS_36_For1
click link=SNF_KS_36_For1
waitForElementPresent link=Start topic
click link=Start topic
waitForElementPresent ThreadTitle
type ThreadTitle Topic test
waitForElementPresent //iframe[@id='messageContent___Frame']
selectFrame //iframe[@id='messageContent___Frame']
selectFrame //html/body/table/tbody/tr[2]/td/iframe
type //html/body Topic test
selectFrame relative=top
waitForElementPresent link=Submit
click link=Submit
waitForTextPresent Topic test
verifyTextPresent Topic test
echo -Search In Home-
waitForElementPresent inputValue
type inputValue root
waitForElementPresent //form[@id='QuickSearchForm']/div[2]/a[2]
click //form[@id='QuickSearchForm']/div[2]/a[2]
click link=SNF_KS_36_Cate1
waitForTextPresent SNF_KS_36_For1
verifyTextPresent SNF_KS_36_For1
echo -Search In Category-
waitForElementPresent //form[@id='UICategory']//div[@class='ContentAction']//div[@class='DownArrow1Icon']
click //form[@id='UICategory']//div[@class='ContentAction']//div[@class='DownArrow1Icon']
waitForElementPresent SearchForm
type SearchForm SNF
waitForElementPresent link=Search
click link=Search
waitForElementPresent link=SNF_KS_36_For1
click link=SNF_KS_36_For1
waitForElementPresent SearchForm
click SearchForm
echo -Search In Forum-
waitForElementPresent //form[@id='UITopicContainer']//div[@class='SearchForm']//div[@class='DownArrow1Icon']
click //form[@id='UITopicContainer']//div[@class='SearchForm']//div[@class='DownArrow1Icon']
waitForElementPresent SearchForm
type SearchForm test
waitForElementPresent link=Search
click link=Search
waitForElementPresent link=Topic test
click link=Topic test
echo --Search in Topic
waitForElementPresent Message
type Message post test
waitForElementPresent link=Quick reply
click link=Quick reply
waitForElementPresent //form[@id='UITopicDetail']/div[4]/div[1]/div/div/div/div/div[3]/div/div[1]/div/div/div/div/div
click //form[@id='UITopicDetail']/div[4]/div[1]/div/div/div/div/div[3]/div/div[1]/div/div/div/div/div
waitForElementPresent SearchForm test
type SearchForm test
waitForElementPresent link=Search
click link=Search
waitForTextPresent Re: Topic test
verifyTextPresent Re: Topic test
waitForElementPresent link=exact:Re: Topic test
click link=exact:Re: Topic test
waitForElementPresent link=Open topic
click link=Open topic
echo --Delete test data
waitForElementPresent link=SNF_KS_36_Cate1
click link=SNF_KS_36_Cate1
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 SNF_KS_36_Cate1
verifyTextNotPresent SNF_KS_36_Cate1
clickAndWait link=Logout