Sample Number
Hi All, is there a way to get the sample number produced in the jtl? I've tried property name=jmeter.save.saveservice.sample_count value=true/ but this value is 1 for each sample. I want to be able to look at the jtl and and a particular item to see it line up with the html that is produced. n other words when I look at the html and see for example sample 77 is slow I want to be able to go into the jtl and quickly find sample 77 Bruce
Re: Sample Number
Thanks for the info On Tue, Sep 27, 2011 at 11:51 AM, sebb seb...@gmail.com wrote: On 27 September 2011 19:04, Bruce Wobbe br...@thewobbes.com wrote: Hi All, is there a way to get the sample number produced in the jtl? I've tried property name=jmeter.save.saveservice.sample_count That's the number of samples in the result; could be 1 for parent sampler. value=true/ but this value is 1 for each sample. I want to be able to look at the jtl and and a particular item to see it line up with the html that is produced. n other words when I look at the html and see for example sample 77 is slow I want to be able to go into the jtl and quickly find sample 77 If you use CSV output, it produces 1 line for each sample (plus header, if selected). Makes finding the sample trivial. Otherwise, you might want to try http://jakarta.apache.org/jmeter/usermanual/listeners.html#sample_variables in conjunction with a global counter variable. Or you can include the variable in the sample label. Or you could process the JTL with a scripting language and add numeric tags to each sample. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Variables not being replaced?
I have a jmeter HTTP request where I define the server to be ${TestServer} I then pass the variable via ant with the server I want to use property name=TestServer value=192.168.1.2/ However when I run the test the substitution doesn't seem to happen I get this in the jtl responseData class=java.lang.Stringjava.net.UnknownHostException: ${TestServer} In the jmeter log I do see the variable come about but it seems to not do the substitution 2011/09/22 13:50:07 INFO - jmeter.JMeter: Setting JMeter property: TestServer=192.168.1.2 2011/09/22 13:50:08 DEBUG - jmeter.engine.util.ValueReplacer: About to replace in property of type: class org.apache.jmeter.testelement.property.StringProperty: ${TestServer} 2011/09/22 13:50:08 DEBUG - jmeter.engine.util.ValueReplacer: Replacement result: ${TestServer} Am I doing this wrong? What is the issue here? Thanks Bruce
Re: Variables not being replaced?
Yep, thanks I figured this out right after I sent the email Bruce On Thu, Sep 22, 2011 at 2:16 PM, Bruce Ide flyingrhenqu...@gmail.comwrote: To pull java properties into jmeter variables you have to use the __P function. Try making a user defined variable config element with TestServer defined, and make its value ${__P(TestServer,)} The value after the comma is a default, so if you have a default test server you want to use if the property isn't defined, you can put it in there. -- Bruce Ide flyingrhenqu...@gmail.com
Re: Nested While controller Loops question
Thanks Deepak, I went with the aggregator approach of step 3 ,it adds some overhead to my tests but works pretty simly Bruce On Mon, Sep 19, 2011 at 9:22 PM, Deepak Shetty shet...@gmail.com wrote: The problem is if you have Recycle as true , you never get EOF, if you have recycle as false then the inner CSV doesnt reset itself (which is what you expect for this loop to work) as far as I remember you could a) add a dummy row at the end of the CSV that you set a flag on and used that in the comparison b) Interact with JMeter api's to reset the CVS data set config. c) Pre process your CSV file so that you dont need the nesting regards deepak On Mon, Sep 19, 2011 at 7:45 PM, Bruce Wobbe br...@thewobbes.com wrote: I have a nested while loo controller p in jmeter. It's 3 levels deep. Each level has it's own config csv So it looks something like this While( File1 !- EOF) While (file2 != EOF) While(file3 != EOF) HTPRequest The most inner loop will run with data from the first entry of file 1 and the first entry of file 2 and all entries of file 3 . However the test ends after one loop through the most inner loop or continuously on if I choose Recycle on EOF for the inner loop. The outer loops never loop. If I have 3 entries in each file , instead of there being 27 calls to HTPRequest, I get 3 Are nested while loops not supported in this fashion? Thanks Bruce
Nested While controller Loops question
I have a nested while loo controller p in jmeter. It's 3 levels deep. Each level has it's own config csv So it looks something like this While( File1 !- EOF) While (file2 != EOF) While(file3 != EOF) HTPRequest The most inner loop will run with data from the first entry of file 1 and the first entry of file 2 and all entries of file 3 . However the test ends after one loop through the most inner loop or continuously on if I choose Recycle on EOF for the inner loop. The outer loops never loop. If I have 3 entries in each file , instead of there being 27 calls to HTPRequest, I get 3 Are nested while loops not supported in this fashion? Thanks Bruce