You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Ziv Gabel <zi...@mailvision.com> on 2010/01/24 18:04:22 UTC
Making soap request based on responses from previous requests
Hi All,
I'm new to this list and I'll appreciate your help.
I want to make load test for our API servers.
My proble is a s follows:
I first need to make some log in request and based on the response of
that request, I need to create the the following request.
To be more specific, I calling a method that gives me a token, and than
using that token I calculate some response and add it as a parameter to
"real" request.
Is it possible to do that using jmeter.
Again, any help will be appreciated
--
Best regards
Ziv Gabel
Mailvision support
Office: 972-4-8508004
Msn: ziv@mailvision.com
Skype: zivgabel
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Making soap request based on responses from previous requests
Posted by Deepak Shetty <sh...@gmail.com>.
Yes. You would need to code that in java and call it using the BeanShell
pre/post processor /listener/sampler or use the Java Sampler
regards
deepak
On Mon, Jan 25, 2010 at 1:14 AM, Ziv Gabel <zi...@mailvision.com> wrote:
> Thanks fr the response,
>
> I still have a question though,
>
> I actually need to make some calculations (md5,encryption.. etc), not just
> extract a value and put it in the next request.
> Is it possible ?
>
> thanks in advance.
>
>
> Best regards,
> Ziv Gabel
>
> phone: + (972) 4 8508000 X 110
> Email: ziv@mailvision.com
> Mailvision Ltd
>
>
> On Sun, Jan 24, 2010 at 9:54 PM, Deepak Shetty <sh...@gmail.com> wrote:
>
> > Sure. You need a Post processor to extract out the token (
> >
> >
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#postprocessorsusually
> > a Regex or XPath Post processor) and set it into some variable e.g.
> > yourvar
> > In the next request refer to this as ${yourvar}
> >
> > for e.g. see the section named Regular expression extractor
> >
> > http://www.informit.com/guides/content.aspx?g=java&seqNum=520
> >
> > regards
> > deepak
> >
> > On Sun, Jan 24, 2010 at 9:04 AM, Ziv Gabel <zi...@mailvision.com>
> > wrote:
> >
> > > Hi All,
> > > I'm new to this list and I'll appreciate your help.
> > >
> > > I want to make load test for our API servers.
> > > My proble is a s follows:
> > > I first need to make some log in request and based on the response of
> > that
> > > request, I need to create the the following request.
> > >
> > > To be more specific, I calling a method that gives me a token, and than
> > > using that token I calculate some response and add it as a parameter to
> > > "real" request.
> > >
> > > Is it possible to do that using jmeter.
> > >
> > > Again, any help will be appreciated
> > >
> > >
> > > --
> > > Best regards
> > > Ziv Gabel
> > > Mailvision support
> > > Office: 972-4-8508004
> > > Msn: ziv@mailvision.com
> > > Skype: zivgabel
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> > >
> > >
> >
>
Re: Making soap request based on responses from previous requests
Posted by Ziv Gabel <zi...@mailvision.com>.
Thanks fr the response,
I still have a question though,
I actually need to make some calculations (md5,encryption.. etc), not just
extract a value and put it in the next request.
Is it possible ?
thanks in advance.
Best regards,
Ziv Gabel
phone: + (972) 4 8508000 X 110
Email: ziv@mailvision.com
Mailvision Ltd
On Sun, Jan 24, 2010 at 9:54 PM, Deepak Shetty <sh...@gmail.com> wrote:
> Sure. You need a Post processor to extract out the token (
>
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#postprocessorsusually
> a Regex or XPath Post processor) and set it into some variable e.g.
> yourvar
> In the next request refer to this as ${yourvar}
>
> for e.g. see the section named Regular expression extractor
>
> http://www.informit.com/guides/content.aspx?g=java&seqNum=520
>
> regards
> deepak
>
> On Sun, Jan 24, 2010 at 9:04 AM, Ziv Gabel <zi...@mailvision.com>
> wrote:
>
> > Hi All,
> > I'm new to this list and I'll appreciate your help.
> >
> > I want to make load test for our API servers.
> > My proble is a s follows:
> > I first need to make some log in request and based on the response of
> that
> > request, I need to create the the following request.
> >
> > To be more specific, I calling a method that gives me a token, and than
> > using that token I calculate some response and add it as a parameter to
> > "real" request.
> >
> > Is it possible to do that using jmeter.
> >
> > Again, any help will be appreciated
> >
> >
> > --
> > Best regards
> > Ziv Gabel
> > Mailvision support
> > Office: 972-4-8508004
> > Msn: ziv@mailvision.com
> > Skype: zivgabel
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
Re: Making soap request based on responses from previous requests
Posted by Deepak Shetty <sh...@gmail.com>.
Sure. You need a Post processor to extract out the token (
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#postprocessorsusually
a Regex or XPath Post processor) and set it into some variable e.g.
yourvar
In the next request refer to this as ${yourvar}
for e.g. see the section named Regular expression extractor
http://www.informit.com/guides/content.aspx?g=java&seqNum=520
regards
deepak
On Sun, Jan 24, 2010 at 9:04 AM, Ziv Gabel <zi...@mailvision.com> wrote:
> Hi All,
> I'm new to this list and I'll appreciate your help.
>
> I want to make load test for our API servers.
> My proble is a s follows:
> I first need to make some log in request and based on the response of that
> request, I need to create the the following request.
>
> To be more specific, I calling a method that gives me a token, and than
> using that token I calculate some response and add it as a parameter to
> "real" request.
>
> Is it possible to do that using jmeter.
>
> Again, any help will be appreciated
>
>
> --
> Best regards
> Ziv Gabel
> Mailvision support
> Office: 972-4-8508004
> Msn: ziv@mailvision.com
> Skype: zivgabel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>