Is it ok to edit JMeter script in Notepad

2009-08-26 Thread Andrey Simonov
Hello, Sometimes I do find-and-replace in notepad with my JMeter script and save it. Everything works fine, but still I have doubts. Is it okay to edit and save JMeter script with Notepad? -- View this message in context: http://www.nabble.com/Is-it-ok-to-edit-JMeter-script-in-Notepad-tp25151

Re: Output to Tree View Listener

2009-08-26 Thread Andrey Simonov
So, how can I output some text into the Tree View? I understand that "Listeners only show samples and Assertion failures." So maybe I can create a BeanShell/Java sampler that will output my text? I'm confused on how to do it :( Andrey Simonov wrote: > > Solution fou

Smart way to output average of variable

2009-08-25 Thread Andrey Simonov
Hi, Could you please advice a smart way to do the below. I'm getting a certain number as a result of an SQL query at the end of each test. I need a way to output an average value of this variable after all runs are completed (to tree or to file). Any help will be appreciated! -- View this mess

Re: HTTP Request Defaults - specify default folder

2009-08-19 Thread Andrey Simonov
e application is launched, they > change the folder1 to folderX and I only have to change one variable. > This makes things a lot easier then to edit all samples with a text > editor (or manually). > > Don't know if this is what you were looking for, but I doubt there is > a b

Re: HTTP Request Defaults - specify default folder

2009-08-19 Thread Andrey Simonov
me? sebb-2-2 wrote: > > On 18/08/2009, Andrey Simonov wrote: >> >> > What did you expect to happen? >> > What actually happened? >> >> >> 1. I've created HTTP Req Def element to Test Plan >> 2. Entered Server Name and server port >&

Re: HTTP Request Defaults - specify default folder

2009-08-18 Thread Andrey Simonov
e blank server port folder = /folder2/page The actual HTTP request was: server:port/folder2/page I was expecting the request to be: sever:port/folder1/folder2/page sebb-2-2 wrote: > > On 18/08/2009, Andrey Simonov wrote: >> >> > Yes, try it. >> >> I have tried

Re: HTTP Request Defaults - specify default folder

2009-08-18 Thread Andrey Simonov
> Yes, try it. I have tried it, it did not work. That is exactly the reason why I have created this post. sebb-2-2 wrote: > > On 18/08/2009, Andrey Simonov wrote: >> >> Hello, >> >> I have a question regarding HTTP Request Defaults - is there any way to >

HTTP Request Defaults - specify default folder

2009-08-18 Thread Andrey Simonov
Hello, I have a question regarding HTTP Request Defaults - is there any way to specify a default folder in this element or anywhere else? Currently only server name and port are defaulted. But all my server requests go like server:port/folder1/folder2 So is there any way not to specify folder1

Re: JDBC Response Assertion

2009-08-17 Thread Andrey Simonov
//en.wikipedia.org/wiki/Beanshell > > Regards, > Noel > > - "Andrey Simonov" wrote: >> >> > Google: java convert string to integer >> >> What if I don't know that Beanshell = Javascript = Java? >> >> That is not ob

Re: JDBC Response Assertion

2009-08-17 Thread Andrey Simonov
able to tell me this 3 hours ago??.. I'm happy it works, but it's so simple and I'm not a JMeter specialist, so I regret a DAY wasted on this simple thing - just to evaluate a variable from SQL response. sebb-2-2 wrote: > > On 17/08/2009, Andrey Simonov wrote: >> &g

Re: JDBC Response Assertion

2009-08-17 Thread Andrey Simonov
> Google: java convert string to integer What if I don't know that Beanshell = Javascript = Java? That is not obvious for me. Anyway I hope someday you get punished for such a behaviour. sebb-2-2 wrote: > > On 17/08/2009, Andrey Simonov wrote: >> >> If it returns

Re: JDBC Response Assertion

2009-08-17 Thread Andrey Simonov
able to tell me this 3 hours ago??.. I'm happy it works, but it's so simple and I'm not a JMeter specialist, so I regret a DAY wasted on this simple thing - just to evaluate a variable from SQL response. Andrey Simonov wrote: > > If it returns a string, why is an error me

Re: JDBC Response Assertion

2009-08-17 Thread Andrey Simonov
If it returns a string, why is an error message about objects? Why can't I compare two strings? How do I convert string to int or compare strings? I could not find this in internet in 10 mins. sebb-2-2 wrote: > > On 17/08/2009, Andrey Simonov wrote: >> >> We

Re: JDBC Response Assertion

2009-08-17 Thread Andrey Simonov
either stop answering or give me a working example. sebb-2-2 wrote: > > On 17/08/2009, Andrey Simonov wrote: >> >> > http://jakarta.apache.org/jmeter/demos/BeanShellAssertion.bsh >> >> >> sebb, you are very stubborn and you don't want to understa

Re: JDBC Response Assertion

2009-08-17 Thread Andrey Simonov
t;) < 30 Then { Failure=true } I get the following error: Assertion failure message: org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval Parse error at line 1, column 8. Encountered: . Why? sebb-2-2 wrote: > > On 17/08/2009, Andrey Simonov wrote: >> >

Re: JDBC Response Assertion

2009-08-17 Thread Andrey Simonov
5 Then Failed, Else Passed" sebb-2-2 wrote: > > On 17/08/2009, Andrey Simonov wrote: >> >> sebb >> >> You are not answering my question. You are confusing me with people who >> do >> not read manuals before asking questions. >> >>

Re: JDBC Response Assertion

2009-08-17 Thread Andrey Simonov
No, you didn't. The reference to generic help you gave me does not contain this. I need a sample BSF/BSH Assetion script that evaluates a variable, please. Say, "If variable > 5 Then Failed, Else Passed" sebb-2-2 wrote: > > On 17/08/2009, Andrey Simonov wrote: >&g

Re: JDBC Response Assertion

2009-08-17 Thread Andrey Simonov
works, of course. I need a sample BSF/BSH script that evaluates a variable and send a message to some listener. sebb-2-2 wrote: > > On 17/08/2009, Andrey Simonov wrote: >> >> Yes, but please can you give me an example? >> >> I have spent half a day of Frid

Re: JDBC Response Assertion

2009-08-17 Thread Andrey Simonov
appreciated. sebb-2-2 wrote: > > On 17/08/2009, Andrey Simonov wrote: >> >> That's not what I meant. I meant is there an assertion that can >> conveniently >> parse SQL results? >> >> E.g. my results are: table headers and 4 values. How do I chec

Re: JDBC Response Assertion

2009-08-17 Thread Andrey Simonov
appreciated. sebb-2-2 wrote: > > On 17/08/2009, Andrey Simonov wrote: >> >> That's not what I meant. I meant is there an assertion that can >> conveniently >> parse SQL results? >> >> E.g. my results are: table headers and 4 values. How do I check th

Re: Output to Tree View Listener

2009-08-17 Thread Andrey Simonov
Hi sebb, Thank you for your answer! Could you please give me an example on how to do it: > add an Assertion than fails when variable > 5 (e.g. using > BeanShell or BSF Assertion) or point me to a site where I can find such examples? sebb-2-2 wrote: > > On 17/08/2009, Andrey

Re: JDBC Response Assertion

2009-08-17 Thread Andrey Simonov
That's not what I meant. I meant is there an assertion that can conveniently parse SQL results? E.g. my results are: table headers and 4 values. How do I check that e.g. "Average" is < 30? sebb-2-2 wrote: > > On 17/08/2009, Andrey Simonov wrote: >> >&

Re: How To Use ThreadGroup Name As A Variable In Test

2009-08-17 Thread Andrey Simonov
Hi sjunejo, You are doing this other way round, I think. My suggestion is to create a list of variables either in the Test Plan or User Defined Variables elements and use these variables as names for Thread Groups. So Thread Groups will be called like ${Test1}, ${Test2}, etc. Actually I haven'

Re: Jmeter - HTTPS

2009-08-17 Thread Andrey Simonov
Hi Bharat, According to my experience, to use JMeter with HTTPs you need the Bad Boy tool to record the scripts. Meaning that JMeter proxy is not designed to record such requests (I think it's in Help). In my case I have created scripts that could work with HTTP environment and another branch of

JDBC Response Assertion

2009-08-17 Thread Andrey Simonov
Hi! Is there any sort of response assertion for JDBC requests? Or it's RegExp Extractor only? If there is a way (maybe via BSF request), please provide an example :) -- View this message in context: http://www.nabble.com/JDBC-Response-Assertion-tp25002488p25002488.html Sent from the JMeter -

Output to Tree View Listener

2009-08-17 Thread Andrey Simonov
Hello, Could you please tell me, how can I output certain messages to Tree View Listener? I need to do the the following: If {variable} is > 5 then Output "Timeout expired" Maybe this can be done into another listener, but anyway, how do I output message into JMeter? Thank you. -- View this