| open |
/ksdemo/public/classic/ |
|
| echo |
--Add new question |
|
| windowMaximize |
|
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//a[@id='UIPortalLoginFormAction'] |
|
| open |
/ksdemo/private/classic/answers |
|
| 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 |
/ksdemo/private/classic/faq |
|
| waitForElementPresent |
link=exact:Ques_SNF_KS_55 |
|
| click |
link=exact:Ques_SNF_KS_55 |
|
| echo |
--Delete added question |
|
| open |
/ksdemo/private/classic/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 |
/ksdemo/private/classic/faq |
|
| waitForTextNotPresent |
Ques_SNF_KS_55 |
|
| verifyTextNotPresent |
Ques_SNF_KS_55 |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|
| waitForTextPresent |
Sign in |
|
| verifyTextPresent |
Sign in |
|