On Tue, 2005-06-28 at 08:40 -0700, Pete Sirois wrote: > Thanks to all for the replies. Maybe I'm missing something, but any > record/re-use approach just recycles old requests and feeds them to a > sampler. For POST commands needing new and unique parameters in the > query string, that won't work.
I think you are missing something. By recording your samples you can get all the basic info into JMeter, and then you can edit them to change the specific info from static to dynamic values that change each time through the test. Usually, the majority of parameters are static, and a small percentage are dynamic, and so this saves you a lot of work. > > One approach would be to enable http samplers to read entire, > pre-configured query strings from a file (one could write a simple tool > in Python to generate the query string files). Peter mentioned the access log sampler, which does exactly this. > > Or slightly less elegant, build individual query strings at JMeter > run-time by reading property/value pairs from a file, then assign the > query string as a value on a jmeter user parameter. You can put the query string into the PATH value for GETS, and you might be able to use the XML-RPC sampler the same way for POSTS -Mike > > Both approaches require the http sampler to take a single argument > containing the entire query string. Has anyone solved that problem? > > > ps: Peter - the new proxy tutorial file appears to be in OpenOffice > format. Got html or text versions? > > > -----Original Message----- > From: Peter Lin [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 28, 2005 6:17 AM > To: JMeter Users List > Subject: Re: Passing parameters to HTTP request sampler > > There two easy ways. > > JMeter proxy to record test plans > AccessLog sampler > > you can find a new step-by-step tutorial on the proxy in CVS > http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-jmeter/xdocs/userma > nual/jmeter_proxy_step_by_step.sxw?rev=1.2 > > the accesslog sampler is designed to take production logs and use it for > the requests. > > peter > > > On 6/28/05, Pete Sirois <[EMAIL PROTECTED]> wrote: > > > JMeter is quite handy, but having to manually enter row upon row of > > parameters for HTTP request samplers is real pain in the butt. > > > > I've searched user manual, jmeter wiki and rest of the web for > > solutions. So far, no luck. Has anyone out there implemented an > > approach for building a multi-parameter query string, then passing it > > to an http sampler as a single argument? > > > > thanks in advance, > > pete > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]