User supplied variables in JMeter test

2011-09-30 Thread Nishant Chandra
Hi, I have created a test plan in Jmeter for "Web Service(SOAP request)". The web API takes product Id as input. In a single test run, I want to invoke the API with 100 product Ids. Is there any way through which I can loop over product Ids and in each loop I can insert new product Id dynamically

Re: counter function bug

2011-09-30 Thread Philippe Mouawad
Hello, I confirm this behaviour also exists in 2.5 and 2.5.1. It may be a documentation issue or a real issue, I opened an issue for clarification: - https://issues.apache.org/bugzilla/show_bug.cgi?id=51923 As it is made I think counter will only change at each iteration. Regards Philippe On

Re: Distributed testing - Memory usage

2011-09-30 Thread poox
Hi Philippe, I can confirm that RC3 fixes my problem and I now have stable memory usage having run the same .jmx overnight for confirmation. Thanks for your assistance with this matter. Case closed! :) -- View this message in context: http://jmeter.512774.n5.nabble.com/Distributed-testing-Memor

Re: CTRL+Z as undo

2011-09-30 Thread Philippe Mouawad
See: https://issues.apache.org/bugzilla/show_bug.cgi?id=42248 for some explanations. On Wed, Sep 28, 2011 at 11:43 AM, apc wrote: > yep, Undo feature would be great breakthrough. > I investigated this topic in JMeter code some time ago and found it a bit > complex for me, I failed to make patch

Re: CTRL+Z as undo

2011-09-30 Thread apc
"a lot of code changes"... I understand it, but not having an undo in JMeter is really bad experience. - -- Andrey Pohilko JP@GC Maintainer -- View this message in context: http://jmeter.512774.n5.nabble.com/CTRL-Z-as-undo-tp4848249p4856915.html Sent from the JMeter - User mailing list archiv

Re: Command Line option to Enable and Disable ?

2011-09-30 Thread sebb
On 29 September 2011 18:11, Deepak Shetty wrote: > if you know it in advance then add an IF controller (wrapping your loop) > that checks a property (where the property is passed by command line) Or you could use a property for the loop count, with default 0, and set the property non-zero when yo

Re: XPath Extractor doesn't work if I check 'Use Tidy'

2011-09-30 Thread sebb
There are two aspects to XML correctness: - well-formed - valid Well-formed just means matching end-tags and no syntax errors, which is probably all you were expecting. Valid means that the XML agrees with its DTD. For XHTML, Tidy knows what the DTD is. Tidy does not know what the DTD for arbit

Re: CTRL+Z as undo

2011-09-30 Thread sebb
Patches welcome. On 30 September 2011 13:34, apc wrote: > "a lot of code changes"... I understand it, but not having an undo in JMeter > is really bad experience. > > - > -- > Andrey Pohilko > JP@GC Maintainer > -- > View this message in context: > http://jmeter.512774.n5.nabble.com/CTRL-Z-a

Re: Command Line option to Enable and Disable ?

2011-09-30 Thread mkt
I added some properties, but cant get it to work... Added Login=1 to user.properties Added Login ${property(Login)} to User Defined Variables Added ${Login} == 1 to the if controller I get an exception in the log, the IfController: missing ; before statement (#1) one. I checked the JMX file and

Re: JMeter and MySQL?

2011-09-30 Thread karl
Hi all, we wrote a small tool with a gui, to import the "log" into a mysql-DB. not really ready, but helps me a lot to mining 90%/10% response times and filter errors. If some intrested to take look/try, please send me a private email. Thanks karl Am 29.09.2011 13:57, schrieb vineeth: Hi a

Re: Command Line option to Enable and Disable ?

2011-09-30 Thread mkt
Well I deleted them all and re-added them and now it works, kinda. The if controllers work, but the Threads do not... -- View this message in context: http://jmeter.512774.n5.nabble.com/Command-Line-option-to-Enable-and-Disable-tp4853330p4857403.html Sent from the JMeter - User mailing list arch

Re: CTRL+Z as undo

2011-09-30 Thread Anthony Johnson
I will go for an implementation. Someone stop me if you are already 80% of the way there. On Fri, Sep 30, 2011 at 9:38 AM, sebb wrote: > Patches welcome. > > On 30 September 2011 13:34, apc wrote: >> "a lot of code changes"... I understand it, but not having an undo in JMeter >> is really bad e

Re: counter function bug

2011-09-30 Thread sebb
On 30 September 2011 08:34, Philippe Mouawad wrote: > Hello, > I confirm this behaviour also exists in 2.5 and 2.5.1. > It may be a documentation issue or a real issue, I opened an issue for > clarification: > >   - https://issues.apache.org/bugzilla/show_bug.cgi?id=51923 > > > As it is made I thi

Re: User supplied variables in JMeter test

2011-09-30 Thread Bruce Ide
Sure! Just put your product IDs in a CSV file or database and use a CSV config data element or JDBC sampler to read them into an array. Then you can use a ForEach logic controller to perform the same action using a different variable from the array each time. In your SOAP request you'd just replace

Re: counter function bug

2011-09-30 Thread Philippe Mouawad
Hello Sebb, I provided a patch to documentation on 51923 . By the way I noticed that behaviour is not the same if I put __counter in patch or inside parameters table. With the first I i pass FALSE as parameter, my counter will start at 3 bec

Re: CTRL+Z as undo

2011-09-30 Thread apc
God bless you! - -- Andrey Pohilko JP@GC Maintainer -- View this message in context: http://jmeter.512774.n5.nabble.com/CTRL-Z-as-undo-tp4848249p4857619.html Sent from the JMeter - User mailing list archive at Nabble.com. -

Re: Command Line option to Enable and Disable ?

2011-09-30 Thread Deepak Shetty
the function is __property The error you are getting is because Login is going to evaluate to literal string "${property(Login)} " (since its not defined) your if condition becomes ${property(Login)} == 1 which is bad javascript. On Fri, Sep 30, 2011 at 7:00 AM, mkt wrote: > I added some prop

Re: Command Line option to Enable and Disable ?

2011-09-30 Thread Deepak Shetty
what do you mean by threads do not? On Fri, Sep 30, 2011 at 7:51 AM, mkt wrote: > Well I deleted them all and re-added them and now it works, kinda. The if > controllers work, but the Threads do not... > > -- > View this message in context: > http://jmeter.512774.n5.nabble.com/Command-Line-opti

Re: counter function bug

2011-09-30 Thread sebb
On 30 September 2011 16:04, sebb wrote: > On 30 September 2011 08:34, Philippe Mouawad > wrote: >> Hello, >> I confirm this behaviour also exists in 2.5 and 2.5.1. >> It may be a documentation issue or a real issue, I opened an issue for >> clarification: >> >>   - https://issues.apache.org/bugz

Re: counter function bug

2011-09-30 Thread Deepak Shetty
>If a variable refers to a function, one would expect the variable to be evaluated once per iteration,so it can be used in multiple samples. Well we already have the counter element. And the function already supports saving into a variable so it can be used in multiple samples irrespective of how t

Re: If i do a manual execution by adding extended status bar to firefox

2011-09-30 Thread Deepak Shetty
how have you calculated it manually (the last row value is not much useful anyway)? If Request1 = 10 samples each 10 secs therefore avg =10 seconds and request2 = 1 sample , 1 second therefore avg = 1 second then overall average = (10*10 + 1*1)seconds/(10+1) samples. regards deepak On Thu, Se

not all thread group ending with nothing in the logs WARN Thread won't exit after stopping

2011-09-30 Thread Basim Baassiri
Hi, I started jmeter with DEBUG logging on (running on window 7) jmeter -Ljmeter.engine=DEBUG i have a test plan that I've seen work and run against a test environment and when i start the testplan against a different environment, jmeter appears to not respond or be active. There is a period of t

Re: Up to date values without CSV config

2011-09-30 Thread E S
Thanks for the help. The __time() function is exactly what I wanted. Unfortunately, for the other value (the calculated one), I need access to cryptographic libraries. It looks like I could use either javascript or beanshell as long as they support importing third party libraries, but frankly I thi

Re: Up to date values without CSV config

2011-09-30 Thread Deepak Shetty
yes CSV is faster - however you can do the same with a startup threadgroup instead of your test Beanshell can do almost anything java can do (and you write most of it within a java class so that you only call out to your java code (or you can write your own custom function in java) regards deepak

Re: If i do a manual execution by adding extended status bar to firefox

2011-09-30 Thread sprasad
I have calculated manually by adding up all the response times in 'Average' column and divided by number of labels, in my case that would 3920/7=560if i divide it by 1000 to show it in seconds it would 0.56, but here the value is 0.66 which i got in aggregate report... actually the table which