Makes sense. thanks.
> Date: Mon, 23 Apr 2012 15:05:57 -0700 > Subject: Re: Conditional redirection > From: [email protected] > To: [email protected] > > Marcelo, > > Adding to what Deepak mentioned, you will also have to include a LOOP to > make sure that the tool keeps following the 'Location' as long as the > server returns http codes such as 300, 302 etc. This will ensure that your > scripts follows consecutive redirections which is a common phenomena > in production systems. > > Thanks > Chaitanya M Bhatt > http://www.performancecompetence.com > > On Mon, Apr 23, 2012 at 1:44 PM, Marcelo Jara <[email protected]>wrote: > > > > > 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 > > > > > > > >
