jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niraj <niraj.khatm...@gmail.com>
Subject Re: HOW Test REST Services in Jmeter?
Date Wed, 04 Dec 2013 08:09:39 GMT
There should be way to pass token. If this is URL

https://xxx.abe.com/xxxxx/ws/rs/auth-11/token

then after editing with Regex variable then it should look like this

https://xxx.abe.com/xxxxx/ws/rs/auth-11/<https://xxx.abe.com/xxxxx/ws/rs/auth-11/token>
${test}





On Wed, Dec 4, 2013 at 12:06 PM, Madhu Sekhar <madhuvchandana@gmail.com>wrote:

> Sure,
>
> 1. Added Two HTTP Samplers
> 2. In First One Copied the Rest URL1, and the path
> 3. added the atuthorization Manager to the same HTTP and given user name &
> password in Authorzation Manger
> 4. Written RegEx to capture the Out of the firts HTTP sampler( Response is
> only Token Value)
> 5. Copied the Rest URL2 in second HTTP sampler and the path.
> 6. Here we need to pass token Value ??? So, initially No parameters are
> there in HTTP smpler2, JUST URL and path
>
> Thanks & Regards,
> Madhu
>
>
> On Wed, Dec 4, 2013 at 11:59 AM, Niraj <niraj.khatmode@gmail.com> wrote:
>
> > could you plz share more details?
> >
> >
> > On Wed, Dec 4, 2013 at 11:55 AM, Madhu Sekhar <madhuvchandana@gmail.com
> > >wrote:
> >
> > > Its just URL it just doesnot have any other parameters, Intially. I am
> > > aware of sneding requests when recored samples, but here we just copied
> > > REST URL.
> > >
> > > Thanks & Regards,
> > > Madhu
> > >
> > >
> > > On Wed, Dec 4, 2013 at 11:50 AM, Niraj <niraj.khatmode@gmail.com>
> wrote:
> > >
> > > > When you have extracted then you must have stored in variable. Use
> that
> > > > variable for example ${test} in next REST URL
> > > >
> > > >
> > > > On Wed, Dec 4, 2013 at 11:43 AM, Madhu Sekhar <
> > madhuvchandana@gmail.com
> > > > >wrote:
> > > >
> > > > > Exrtaction was done but how to parse the same in next URL?
> > > > >
> > > > > Thanks,
> > > > > Madhu
> > > > >
> > > > >
> > > > > On Wed, Dec 4, 2013 at 11:36 AM, Niraj <niraj.khatmode@gmail.com>
> > > wrote:
> > > > >
> > > > > > Extract token using RegEx and use that in next request.
> > > > > >
> > > > > >
> > > > > > On Fri, Nov 22, 2013 at 3:07 PM, Madhu Sekhar <
> > > > madhuvchandana@gmail.com
> > > > > > >wrote:
> > > > > >
> > > > > > > Hi team,
> > > > > > >
> > > > > > > I need to test Rest URL using token based authentication.
> > > > > > >
> > > > > > > Initially I have to generate token from the REST url using
> > username
> > > > and
> > > > > > > password.
> > > > > > >
> > > > > > >
> > > > > > > Sample URL for generating token:
> > > > > > > https://xxx.abe.com/xxxxx/ws/rs/auth-11/token
> > > > > > > input parameters for this url is : username and password.
> > > > > > >
> > > > > > > The token value which is received from the response should
be
> > used
> > > as
> > > > > > > header value for next REST URL for getting data from web
> service.
> > > > > > >
> > > > > > > Could you please help me out as early as possible?
> > > > > > >
> > > > > > > Thanks,
> > > > > > > Madhu .
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > madhu kk
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > madhu kk
> > >
> >
>
>
>
> --
> madhu kk
>

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