ok thanks. I'll give it a try. It would have been nice to be able to use a regular expression for the redirection similar to the embedded resources.
> Date: Mon, 23 Apr 2012 13:18:10 -0700 > Subject: Re: Conditional redirection > From: [email protected] > To: [email protected] > > Pseudo > +HTTP sampler (Uncheck follow redirects and redirect automatically on the > sampler) > ++ regex post processor(targetting headers) extract Location header value > ++ regex post processor status code > +if controller - the status code begins with 3xx and the location header > matches your criteria > ++HTTP sampler (${extractedURL}) > > > regards > deepak > > On Mon, Apr 23, 2012 at 1:13 PM, Marcelo Jara <[email protected]>wrote: > > > > > Hello, > > > > The web application I'm testing will sometimes redirect requests to > > another page that live on the same server and sometimes it redirects to > > pages that live on a different server. I want Jmeter to follow redirects to > > local pages only. > > > > Example: > > > > http://test.server.one/home > > redirects to > > http://test.server.one/welcome > > > > This is ok. > > > > http://test.server.on/account > > redirects to > > http://test.server.two/info > > > > I don't want jmeter to redirect in this case. > > > > What can I use to achieve this? > > > > > > Thanks, > > > > MJ > >
