Test_SNF_KS_55_ksdemo_ViewQuestionDetail
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/answers
echo --Add new question
waitForElementPresent //div[@id='UIQuestions']//a[text()='Submit Question']
click //div[@id='UIQuestions']//a[text()='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 //div[@id='AddQuestion']//a[text()='Save']
mouseDown //div[@id='AddQuestion']//a[text()='Save']
waitForElementPresent //div[@id='UIAnswersPortlet']//a[text()='OK']
click //div[@id='UIAnswersPortlet']//a[text()='OK']
echo --Add answers in new question
waitForElementPresent link=Ques_SNF_KS_55
click link=Ques_SNF_KS_55
waitForElementPresent //div[@id='AnswersViewContent']//a[text()='Answer']
click //div[@id='AnswersViewContent']//a[text()='Answer']
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 //table[@class='DisablePrint']/tbody/tr/td[4]/a
click //table[@class='DisablePrint']/tbody/tr/td[4]/a
waitForElementPresent //form[@id='UIDeleteQuestion']//a[text()='OK']
click //form[@id='UIDeleteQuestion']//a[text()='OK']
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
waitForTextPresent Sign in