Test_SNF_KS_21_ksdemo_AnswersSetting
open /portal/public/intranet/
windowMaximize
waitForElementPresent //div[contains(text(),'Sign in')]
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 -Show/hide Category-
open /portal/private/intranet/answers
waitForElementPresent FAQCustomView
click FAQCustomView
waitForTextNotPresent Categories
verifyTextNotPresent Categories
click FAQCustomView
waitForTextPresent Categories
verifyTextPresent Categories
echo -Add Question for Setting test-
waitForTextPresent Submit question
click link=Submit question
waitForElementPresent QuestionTitle
type QuestionTitle Ques_SNF_KS_21
type EmailAddress root@localhost.vn
waitForElementPresent //div[@id="AddQuestion"]//div[@class="UIAction"]//div[@class="ButtonMiddle"]
clickAt //div[@id="AddQuestion"]//div[@class="UIAction"]//div[@class="ButtonMiddle"]
waitForElementPresent //div[@id='UIAnswersPortlet']//a[text()='OK']
click //div[@id='UIAnswersPortlet']//a[text()='OK']
waitForTextPresent Ques_SNF_KS_21
verifyTextPresent Ques_SNF_KS_21
echo -Disable RSS Comment Avatar-
waitForElementPresent link=Page Layout
click link=Page Layout
waitForElementPresent //div[@id='UIPage']/div/div/div/div/div/div/div
mouseOver //div[@id='UIPage']/div/div/div/div/div/div/div
waitForElementPresent //div[contains(@id,'UIPortlet-')]/div/div[2]/div/div/div[2]/div/div/div/div/div/div/a[1]
click //div[contains(@id,'UIPortlet-')]/div/div[2]/div/div/div[2]/div/div/div/div/div/div/a[1]
waitForElementPresent enableVotComment
uncheck enableVotComment
uncheck enableRSS
uncheck enableViewAvatar
waitForElementPresent //form[@id='FAQPortletSetting']/div[3]/table/tbody/tr/td/div/div/div/div
click //form[@id='FAQPortletSetting']/div[3]/table/tbody/tr/td/div/div/div/div
waitForElementPresent UIAnswersPortlet
click //div[@id='UIAnswersPortlet']//div[@class='ExoMessageDecorator']//table[@class='ActionContainer']//div
waitForElementPresent //div[2]/table/tbody/tr/td/div[2]/div/div/div
click //div[2]/table/tbody/tr/td/div[2]/div/div/div
waitForElementPresent //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
click //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
echo -Check Disable Settings-
waitForElementPresent link=Logout
clickAt link=Logout
waitForElementPresent //div[contains(text(),'Sign in')]
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username demo
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
open /portal/private/intranet/answers
waitForTextPresent Ques_SNF_KS_21
verifyTextPresent Ques_SNF_KS_21
click link=Ques_SNF_KS_21
waitForElementNotPresent RSS
verifyTextNotPresent RSS
verifyElementNotPresent //table//div[@class='Comment']
verifyElementNotPresent //table//img[@class='FAQAvatar']
verifyElementNotPresent //table//div[@class='RatedVote']
waitForElementPresent link=Logout
clickAt link=Logout
waitForTextPresent Sign in
open /portal/public/intranet/
waitForElementPresent //div[contains(text(),'Sign in')]
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
open /portal/private/intranet/answers
echo -Disable RSS Comment Avatar-
waitForElementPresent link=Page Layout
clickAt link=Page Layout
waitForElementPresent //div[@id='UIPage']/div/div/div/div/div/div/div
mouseOver //div[@id='UIPage']/div/div/div/div/div/div/div
waitForElementPresent //div[contains(@id,'UIPortlet-')]/div/div[2]/div/div/div[2]/div/div/div/div/div/div/a[1]
click //div[contains(@id,'UIPortlet-')]/div/div[2]/div/div/div[2]/div/div/div/div/div/div/a[1]
waitForElementPresent enableVotComment
check enableVotComment
check enableRSS
check enableViewAvatar
waitForElementPresent //form[@id='FAQPortletSetting']/div[3]/table/tbody/tr/td/div/div/div/div
click //form[@id='FAQPortletSetting']/div[3]/table/tbody/tr/td/div/div/div/div
waitForElementPresent UIAnswersPortlet
click //div[@id='UIAnswersPortlet']//div[@class='ExoMessageDecorator']//table[@class='ActionContainer']//div
waitForElementPresent //div[2]/table/tbody/tr/td/div[2]/div/div/div
click //div[2]/table/tbody/tr/td/div[2]/div/div/div
waitForElementPresent //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
click //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
waitForElementPresent link=Logout
clickAt link=Logout
echo -Check Enable Settings-
waitForElementPresent //div[contains(text(),'Sign in')]
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username demo
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
open /portal/private/intranet/answers
waitForTextPresent Ques_SNF_KS_21
verifyTextPresent Ques_SNF_KS_21
waitForElementPresent link=Ques_SNF_KS_21
clickAt link=Ques_SNF_KS_21
waitForElementPresent //table//div[@class='Comment']
verifyElementPresent //table//div[@class='Comment']
verifyElementPresent //table//img[@class='FAQAvatar']
verifyElementPresent //table//div[@class='RatedVote']
verifyTextPresent RSS
waitForElementPresent link=Logout
clickAt link=Logout
echo -Detele Test Data-
waitForElementPresent //div[contains(text(),'Sign in')]
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
open /portal/private/intranet/answers
waitForElementPresent link=Ques_SNF_KS_21
click link=Ques_SNF_KS_21
waitForElementPresent //div[@class='DecoratorMC']//table[@class='DisablePrint']//td[4]/a
click //div[@class='DecoratorMC']//table[@class='DisablePrint']//td[4]/a
waitForElementPresent //form[@id='UIDeleteQuestion']//table[@class='ActionContainer']//div
click //form[@id='UIDeleteQuestion']//table[@class='ActionContainer']//div
waitForElementPresent link=Logout
clickAt link=Logout
waitForTextPresent Sign in