I believe this question is similar to a question I posted on 2/10 titled
"load test a rest-style web service".



-----Original Message-----
From: R R [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 13, 2006 1:12 PM
To: [email protected]
Subject: Re: Sending Body data with http sampler

Hi,

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.

Cheers




>From: sebb <[EMAIL PROTECTED]>
>Reply-To: "JMeter Users List" <[email protected]>
>To: JMeter Users List <[email protected]>
>Subject: Re: Sending Body data with http sampler
>Date: Mon, 13 Feb 2006 14:30:12 +0000
>
>On 13/02/06, R R <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > The application that I am testing takes information in the body of a 
>POST
> > 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" 
>sampler
> > 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
>
>http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_R
equest
>
>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 
>this
> > data and load separate pieces of it into other variables. What would be 
>the
> > best way to achieve this? Or if at all possible does anyone have any 
>sample
> > code where they have done something similer?
>
>There is a split() function that may be suitable:
>http://jakarta.apache.org/jmeter/usermanual/functions.html#__split
>
>Or you could perhaps use BeanShell:
>http://jakarta.apache.org/jmeter/usermanual/functions.html#__BeanShell
>This can create variables if required.
>
>Or Javascript:
>http://jakarta.apache.org/jmeter/usermanual/functions.html#__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: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_________________________________________________________________
The new MSN Search Toolbar now includes Desktop search! 
http://toolbar.msn.co.uk/


---------------------------------------------------------------------
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]

Reply via email to