jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcelo Jara <marceloj...@hotmail.com>
Subject RE: Conditional redirection
Date Tue, 24 Apr 2012 06:09:04 GMT

Makes sense. thanks. 

> Date: Mon, 23 Apr 2012 15:05:57 -0700
> Subject: Re: Conditional redirection
> From: bhatt.chaitanya@gmail.com
> To: user@jmeter.apache.org
> 
> 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 <marcelojara@hotmail.com>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: shettyd@gmail.com
> > > To: user@jmeter.apache.org
> >  >
> > > 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 <marcelojara@hotmail.com
> > >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
> > > >
> >
> >
 		 	   		  
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message