jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nitin Rastogi <nitin.u...@gmail.com>
Subject Re: Rest Web service Testing : Authorization Error
Date Tue, 11 Aug 2015 07:02:09 GMT
Thanks Deepak..

I think you are right..I could see that its redirecting to different domain
url and auth header is not getting added to that.

How can we handle this sort of behaviour..any thoughts?

Regards,
Nitin Rastogi

On Mon, Aug 10, 2015 at 7:46 PM, Deepak Shetty <shettyd@gmail.com> wrote:

> Hi
> try to manually follow the redirects (i.e. dont check the follow redirects
> or redirect automatically - it's possible to write a generic loop that
> checks the status and redirects if the status is any 3xx). Add a View
> Results Tree and check that the Auth headers were added - note that if you
> are going to a different domain /url (The base domain value) the auth
> headers might not get added.
> Incidentally are you using follow redirects or redirect automatically?
>
> regards
> deepak
>
> On Mon, Aug 10, 2015 at 4:41 AM, Nitin Rastogi <nitin.usit@gmail.com>
> wrote:
>
> > Thanks Sebb..
> >
> > I tried this as well now, but same results.
> >
> > Regards,
> > Nitin Rastogi
> >
> > On Mon, Aug 10, 2015 at 4:22 PM, sebb <sebbaz@gmail.com> wrote:
> >
> > > On 10 August 2015 at 11:03, Nitin Rastogi <nitin.usit@gmail.com>
> wrote:
> > > > Hi,
> > > >
> > > > I am trying to test a Rest API with Basic Authentication enabled but
> > > > something weird is happening.
> > > >
> > > > When I try to fire a GET request, I am getting authentication error
> > > whereas
> > > > with POST request its working fine. This GET Request is basic ping
> > check
> > > > for the API and have few url redirections.
> > > >
> > > > I have tried testing with HTTPClient4, HTTPClient3.1 options as well.
> > > >
> > > > Jmeter Test Plan Structure is:
> > > >
> > > > - Thread Group
> > > >  - HTTP Authorization Manager
> > > >  - HTTP Request (GET)
> > > >  - HTTP Request (POST)
> > > >  - View Result Tree
> > > >
> > > > Can anyone please provide some insight?
> > >
> > > If auth uses cookies, then you need to add a Cookie Manager.
> > >
> > > > Thanks..
> > > > Nitin Rastogi
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> > > For additional commands, e-mail: user-help@jmeter.apache.org
> > >
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message