Test_SNF_KS_36_ksdemo_QuickSearchInForum
open /portal/public/intranet/
windowMaximize
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
echo -Create Cat_SNF_KS_36 Cyan
open /portal/private/intranet/forum
waitForElementPresent //div[@id='AddCategory']/div/div/div/div/a/span
click //div[@id='AddCategory']/div/div/div/div/a/span
waitForElementPresent CategoryTitle
type CategoryTitle Cat_SNF_KS_36 Cyan
type Description Add category for smoke test 01
waitForElementPresent link=Save
click link=Save
waitForElementPresent //div[@id='UIBreadcumbs']/div/div/div/div[1]/a
click //div[@id='UIBreadcumbs']/div/div/div/div[1]/a
waitForElementPresent link=Cat_SNF_KS_36 Cyan
verifyElementPresent link=Cat_SNF_KS_36 Cyan
echo -Create For_SNF_KS_36 Fallow
waitForElementPresent link=Cat_SNF_KS_36 Cyan
click link=Cat_SNF_KS_36 Cyan
waitForElementPresent //div[@id='AddForum']/div/div/div/div/a/span
click //div[@id='AddForum']/div/div/div/div/a/span
waitForElementPresent ForumTitle
type ForumTitle For_SNF_KS_36 Fallow
type Description Forum Description
waitForElementPresent link=Save
click link=Save
waitForElementPresent link=Cat_SNF_KS_36 Cyan
click link=Cat_SNF_KS_36 Cyan
waitForElementPresent link=For_SNF_KS_36 Fallow
verifyElementPresent link=For_SNF_KS_36 Fallow
echo -Create Top_SNF_KS_36 Tan
waitForElementPresent link=For_SNF_KS_36 Fallow
click link=For_SNF_KS_36 Fallow
waitForElementPresent link=Start topic
click link=Start topic
waitForElementPresent ThreadTitle
type ThreadTitle Top_SNF_KS_36 Tan
waitForElementPresent //iframe[@id='messageContent___Frame']
selectFrame //iframe[@id='messageContent___Frame']
selectFrame //html/body/table/tbody/tr[2]/td/iframe
type //html/body Topic content
selectFrame relative=top
waitForElementPresent link=Submit
click link=Submit
waitForElementPresent link=Top_SNF_KS_36 Tan
verifyElementPresent link=Top_SNF_KS_36 Tan
echo -Create Post_SNF_KS_36 Pink
waitForElementPresent link=Top_SNF_KS_36 Tan
click link=Top_SNF_KS_36 Tan
waitForElementPresent //form[@id='UITopicDetail']/div[5]/div[1]/div/div/div/div/div/div/div/span
click //form[@id='UITopicDetail']/div[5]/div[1]/div/div/div/div/div/div/div/span
waitForElementPresent PostTitle
type PostTitle Post_SNF_KS_36 Pink
waitForElementPresent //iframe[@id='MessageContent___Frame']
selectFrame //iframe[@id='MessageContent___Frame']
waitForElementPresent //html/body/table/tbody/tr[2]/td/iframe
selectFrame //html/body/table/tbody/tr[2]/td/iframe
type //html/body Post body
selectFrame relative=top
waitForElementPresent link=Submit
click link=Submit
waitForTextPresent Post_SNF_KS_36 Pink
verifyTextPresent Post_SNF_KS_36 Pink
echo -Simple Search in Forum-
echo -Search In Home-
waitForElementPresent //div[@id='UIBreadcumbs']//div[1]/a[1]
click //div[@id='UIBreadcumbs']//div[1]/a[1]
waitForElementPresent inputValue
type inputValue Cyan
waitForElementPresent //form[@id='QuickSearchForm']/div[2]/a[2]
click //form[@id='QuickSearchForm']/div[2]/a[2]
waitForElementPresent link=Cat_SNF_KS_36 Cyan
click link=Cat_SNF_KS_36 Cyan
waitForTextPresent For_SNF_KS_36 Fallow
verifyTextPresent For_SNF_KS_36 Fallow
echo -Search In Category-
waitForElementPresent //div[text()='Search this category']
click //div[text()='Search this category']
waitForElementPresent SearchForm
type SearchForm Fallow
waitForElementPresent link=Search
click link=Search
waitForElementPresent link=For_SNF_KS_36 Fallow
click link=For_SNF_KS_36 Fallow
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 Tan
waitForElementPresent link=Search
click link=Search
waitForElementPresent link=Top_SNF_KS_36 Tan
click link=Top_SNF_KS_36 Tan
echo --Search in Topic
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
type SearchForm Pink
waitForElementPresent link=Search
click link=Search
waitForElementPresent link=exact:Post_SNF_KS_36 Pink
click link=exact:Post_SNF_KS_36 Pink
echo --Delete test data
waitForElementPresent link=Open topic
clickAt link=Open topic
echo -- Delete
waitForElementPresent link=Cat_SNF_KS_36 Cyan
click link=Cat_SNF_KS_36 Cyan
waitForElementPresent //form[@id='UICategory']/div[3]/div/div/div/div[4]/div[1]/div/div/div/div/div
click //form[@id='UICategory']/div[3]/div/div/div/div[4]/div[1]/div/div/div/div/div
waitForElementPresent link=Delete
click link=Delete
assertConfirmation Are you sure you want to delete this category?
waitForElementNotPresent link=Cat_SNF_KS_36 Cyan
verifyElementNotPresent link=Cat_SNF_KS_36 Cyan
clickAndWait link=Logout
waitForElementPresent //div[contains(text(),'Sign in')]