Test_SNF_KS_55_ksdemo_ViewQuestionDetail
echo --Add new question
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]
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
open /portal/private/intranet/answers
waitForElementPresent link=Submit question
click link=Submit question
waitForElementPresent QuestionTitle
type QuestionTitle Ques_SNF_KS_55
waitForElementPresent //iframe[@id='Question___Frame']
selectFrame //iframe[@id='Question___Frame']
waitForElementPresent //html/body/table/tbody/tr[2]/td/iframe
selectFrame //html/body/table/tbody/tr[2]/td/iframe
type //html/body description question
selectFrame relative=top
type EmailAddress root@localhost.com
waitForElementPresent //form[@id='UIQuestionForm']/div[3]/table[@class='ActionContainer']/tbody/tr/td/div[@class='ActionButton LightBlueStyle']/div/div/div
clickAt //form[@id='UIQuestionForm']/div[3]/table[@class='ActionContainer']/tbody/tr/td/div[@class='ActionButton LightBlueStyle']/div/div/div
waitForElementPresent //div[@id='UIAnswersPortlet']//div[@class='ExoMessageDecorator']/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div[@class='ActionButton LightBlueStyle']/div/div/div
click //div[@id='UIAnswersPortlet']//div[@class='ExoMessageDecorator']/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div[@class='ActionButton LightBlueStyle']/div/div/div
waitForTextPresent Ques_SNF_KS_55
verifyTextPresent Ques_SNF_KS_55
echo --Add answers in new question
waitForElementPresent link=Ques_SNF_KS_55
click link=Ques_SNF_KS_55
waitForElementPresent //div[@class='UIAction DisablePrint']/table/tbody/tr/td/div/div/div/div/div
click //div[@class='UIAction DisablePrint']/table[@class='ActionContainer']/tbody/tr/td/div/div/div/div/div/a
waitForElementPresent //iframe[@id='QuestionRespone___Frame']
selectFrame //iframe[@id='QuestionRespone___Frame']
selectFrame //html/body/table/tbody/tr[2]/td/iframe
type //html/body Apache JMeter may be used to test performance both on static and dynamic resources (files, Servlets, Perl scripts, Java Objects, Data Bases and Queries, FTP Servers and more). It can be used to simulate a heavy load on a server, network or object to test its strength or to analyze overall performance under different load types. You can use it to make a graphical analysis of performance or to test your server/script/object behavior under heavy concurrent load.
selectFrame relative=top
waitForElementPresent //iframe[@id='QuestionRespone___Frame']
waitForElementPresent link=Save
click link=Save
echo --View Questions in FAQ
open /portal/private/intranet/faq
waitForElementPresent link=exact:Ques_SNF_KS_55
click link=exact:Ques_SNF_KS_55
echo --Delete added question
open /portal/private/intranet/answers
waitForElementPresent link=Ques_SNF_KS_55
contextMenu link=Ques_SNF_KS_55
waitForElementPresent link=Delete
clickAt link=Delete
waitForElementPresent //form[@id='UIDeleteQuestion']/div[3]/table/tbody/tr/td/div[1]/div/div/div/a
click //form[@id='UIDeleteQuestion']/div[3]/table/tbody/tr/td/div[1]/div/div/div/a
echo --View question in FAQ after deleted
open /portal/private/intranet/faq
waitForTextNotPresent Ques_SNF_KS_55
verifyTextNotPresent Ques_SNF_KS_55
waitForElementPresent link=Logout
clickAndWait link=Logout