jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "R R" <>
Subject Re: Sending Body data with http sampler
Date Mon, 13 Feb 2006 20:11:33 GMT

No the parameters get sent in a pre-defined format. For my test the server 
expects info in the body of the form:

{x,{y[value,value etc....

Thanx for the hints on the variables will give them a try tommorow.


>From: sebb <>
>Reply-To: "JMeter Users List" <>
>To: JMeter Users List <>
>Subject: Re: Sending Body data with http sampler
>Date: Mon, 13 Feb 2006 14:30:12 +0000
>On 13/02/06, R R <> wrote:
> > Hi,
> >
> > The application that I am testing takes information in the body of a 
> > request and responds back to the client with a data stream which is then
> > processed via Java scripts. I have two questions;
> >
> > 1)      In order to emulate this I have used the "SOAP/XML-RPC Request" 
> > as I could not see an obvious way of sending data within the body of the
> > HTML sampler. Is there a way of doing this with the HTML sampler?
>The HTTP Request POST command
>allows parameters to be sent as part of the request - does this not work?
> > 2)      One of the data streams returns an array of data which I am 
>loading into
> > the Jmeter variable. I would like to carry out string manipulation on 
> > data and load separate pieces of it into other variables. What would be 
> > best way to achieve this? Or if at all possible does anyone have any 
> > code where they have done something similer?
>There is a split() function that may be suitable:
>Or you could perhaps use BeanShell:
>This can create variables if required.
>Or Javascript:
>This can only return one string/variable, but you might be able to
>write a function to extract the parts one at a time.
>To unsubscribe, e-mail:
>For additional commands, e-mail:

The new MSN Search Toolbar now includes Desktop search!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message