Re: JDBC response assertions

2008-01-04 Thread Abram Catalano
So, digging into the JDBCSampler.java class, I see: Data data = getDataFromResultSet(rs); res.setResponseData(data.toString().getBytes()); Is there any way to get the "data" object into the "res" (SampleResult) object, so I can at least have beanshell access to the columns of the result set?

Re: IF controller, while controller always evaluates to false

2008-01-04 Thread sebb
The If controller requires valid Javascript. Controllers only process their children if there is at least one sampler as a child. On 04/01/2008, touyang <[EMAIL PROTECTED]> wrote: > > I've found some threads stating the same problem back in 2004, I reckon it > should be fixed by now. > > JMeter 2

Re: Regular Expression Extractor Issue

2008-01-04 Thread sebb
:%# do not need to be escaped. However, . * + must be escaped. ^ and $ must be escaped unless at the start or end. On 04/01/2008, gnr80 <[EMAIL PROTECTED]> wrote: > > This is good to know escape character is '\' . I am trying to find what are > the characters to be escaped. > During testing, cam

Re: question regarding User Defined Variables

2008-01-04 Thread sebb
On 04/01/2008, Wing Tang <[EMAIL PROTECTED]> wrote: > Hi Andre, > > The User Parameters is not the one that I need, since it needs to be > parameters global for all threads. I will try to explain it more specific > what my problem is. > > My test server has the following properties which i set in t

Re: question regarding User Defined Variables

2008-01-04 Thread sebb
On 04/01/2008, André van Hoorn <[EMAIL PROTECTED]> wrote: > Hi, > > not sure whether I understood you correctly, but: > Try using "User Parameters" (underneath the "Pre Processors") instead of > "User Defined Variables" (and check "Update Once Per Iteration"). User > Parameters are local to a threa

JDBC response assertions

2008-01-04 Thread Abram Catalano
Apologies in advance if this is obvious. I crawled google and the archives and didn't see what I needed. I have a JDBC sampler set up, and I want to make some assertions on the rows' data returned. I see that I can dump the JDBC response to a file, and then subsequently iterate over the f

Re: Access Log Sampler

2008-01-04 Thread Peter Lin
in that case, if you get a rough approximation of the traffic pattern, you should be able to run it multiple times and get comparable results. peter On Jan 4, 2008 11:13 AM, Christian Hufgard <[EMAIL PROTECTED]> wrote: > > exactly as possible will never be exactly what happened in production. >

IF controller, while controller always evaluates to false

2008-01-04 Thread touyang
I've found some threads stating the same problem back in 2004, I reckon it should be fixed by now. JMeter 2.3 is what I use, Windows XP, Java version 6 update 3. I can NOT make the IF controller and while controller evaluate to true, even when I just put the bare word true in there. I tried:

Re: Access Log Sampler

2008-01-04 Thread Christian Hufgard
> exactly as possible will never be exactly what happened in production. the > best one can hope for is the same traffic loads and patterns. Yes, I had to add some patterns and I hoped, I could do this easier with this Sampler. >>from your comments so far, it sounds like you want to reproduce a s

Re: Access Log Sampler

2008-01-04 Thread Peter Lin
that's tricky :) exactly as possible will never be exactly what happened in production. the best one can hope for is the same traffic loads and patterns. from your comments so far, it sounds like you want to reproduce a sudden traffic spike to see what happens on the server and possible see how l

Re: Access Log Sampler

2008-01-04 Thread Christian Hufgard
> you can use multiple thread groups and control each one with a timer, though > the timing is probably going to vary depending on how fast the server > responds. > > at best, jmeter will try to simulate peak load and lull load. > > a simple way would be to create 10 thread groups and have some t

Re: Access Log Sampler

2008-01-04 Thread Peter Lin
you can use multiple thread groups and control each one with a timer, though the timing is probably going to vary depending on how fast the server responds. at best, jmeter will try to simulate peak load and lull load. a simple way would be to create 10 thread groups and have some thread groups s

Re: Access Log Sampler

2008-01-04 Thread Christian Hufgard
> when I wrote the sampler, it was to run a large number of requests. In my > case, I took a sample log of 50K and set jmeter to run for 1million > iterations Ah ok. My problem is some more weird. I have to simulate peaks with response-times up to 30 seconds. Then some minutes with one or two requ

Re: Regular Expression Extractor Issue

2008-01-04 Thread gnr80
This is good to know escape character is '\' . I am trying to find what are the characters to be escaped. During testing, came across the following fields to be escaped. ()[]:%# Thanks,gnr80 -- View this message in context: http://www.nabble.com/Regular-Expression-Extractor-Issue-tp14589696p146

Re: Access Log Sampler

2008-01-04 Thread Peter Lin
if you want a delay between requests, add a timer. when I wrote the sampler, it was to run a large number of requests. In my case, I took a sample log of 50K and set jmeter to run for 1million iterations I added a timer to produce the desired concurrent requests per second. peter On Jan 4, 2008

Re: Access Log Sampler

2008-01-04 Thread Christian Hufgard
> change the number of iterations to 1, if you just want it to read the first > line. I want the exact oposite. :) If I increase the number of iterations, does the sampler take respect of the delay between the single requests? And how does it handle concurrent requests? Christian -

Re: question regarding User Defined Variables

2008-01-04 Thread Wing Tang
Hi Andre, The User Parameters is not the one that I need, since it needs to be parameters global for all threads. I will try to explain it more specific what my problem is. My test server has the following properties which i set in the User Defined Variables: server.name --> test server.name.port

Re: Access Log Sampler

2008-01-04 Thread Peter Lin
change the number of iterations to 1, if you just want it to read the first line. the purpose of the accesslog sampler is to take a huge log file with hundreds of thousands of requests and run a simulation of actual production traffic. peter On Jan 4, 2008 6:06 AM, Christian Hufgard <[EMAIL PROT

Re: question regarding User Defined Variables

2008-01-04 Thread André van Hoorn
Hi, not sure whether I understood you correctly, but: Try using "User Parameters" (underneath the "Pre Processors") instead of "User Defined Variables" (and check "Update Once Per Iteration"). User Parameters are local to a thread (which I think is what you need) whereas User Defined Parameters ar

Access Log Sampler

2008-01-04 Thread Christian Hufgard
Hi everyone, I am the new guy on this list. :) I just tried to set up and use the access log sampler and cannot get it working. I followed this tutorial: http://jakarta.apache.org/jmeter/usermanual/jmeter_accesslog_sampler_step_by_step.pdf The behaviour I am expecting is, that the sampler alwa

Running Remote, via ANT

2008-01-04 Thread Dan
Hi, We run our JMeter scripts via ant, and pass in various values which are used to define the number of threads for each threadgroup to use, etc. Due to a problem where we're seeing irregular arrival rates we want to try spreading the load across multiple servers. So I setup and executed jmeter

question regarding User Defined Variables

2008-01-04 Thread Wing Tang
Hello, I have the following scenario which i cant get to work correctly, it always return the last set of the User Defined Variables. I have a generic login script that i want to use for different enviroments, for instance a Development (dev) enviroment and a System Integration (si) enviroment.

Re: jMeter development project inquiry

2008-01-04 Thread Pieter Ennes
Hi sebb, Thanks. sebb wrote: > It's already possible to run multiple JMX files in GUI mode (though > not automatically), and the server in client-server mode can be left > running between test runs, so that Java startup-time is restricted to > the client. > > Batch mode only processes the single