I am having trouble testing a web application using JMeter....the app
gets redirected to a login page where u need to enter ur id and
password.How do I do that?
HTTP Authorisation Manager wont work for this...do I use a text file to
load these values into and then load them using User Parameters...
thx

Anand R Iyer


----- Original Message -----
From: sebb <[EMAIL PROTECTED]>
Date: Monday, February 13, 2006 9:30 am
Subject: Re: Sending Body data with http sampler

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to