[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jmeter-user
Subject:    Re: xpath expression extractor?
From:       sebb <sebbaz () gmail ! com>
Date:       2006-03-31 0:23:27
Message-ID: 25aac9fc0603301623u101c22beyae7795be8ef06e86 () mail ! gmail ! com
[Download RAW message or body]

I expect that might be possible, but I don't know what the API provides.

Have you tried to see what happens?

Maybe it would create a list that you could parse with the __split()
function - at least for the time being.

The Java Sampler is useful for displaying the value of variables.

S.
On 30/03/06, Garry L. Thompson <garry.thompson@attensa.com> wrote:
> Cool, I just downloaded the latest nightly build and sure enough there is an
> xpath extractor post processor. Is there any plans to add the multiple
> matching functionality that you get with the regular expression extractor?
>
> For instance, if you use wild cards in an xpath expression which then returns
> multiple values. (e.g /node/node[*]/name[contains(.,"Fred")]) could easily
> return multiple values. In this case what value would you get? I guess I
> could wrapper this inside a loop with a counter to do this myself but I
> really like the multiple matching stuff in the regular expression extractor.
>
> Thanks...
>
> On Wednesday 29 March 2006 14:34, sebb wrote:
> > There is an XPath Extractor in the forthcoming 2.1.2 version - if you
> > want to try it out, download a recent nightly build.
> >
> > You need both the _bin and _lib archives; unpack them into the same
> > directory structure.
> >
> > It's documented in the component_reference page.
> >
> > Please let us know if this fits your needs or not.
> >
> > S.
> >
> > On 29/03/06, Garry L. Thompson <gthompson@attensa.com> wrote:
> > > I am testing a web API that's passing all the information around via xml.
> > >  A post processor xpath expression extractor would be very useful. It
> > > would work basically like the regular expression extractor and setup the
> > > results variable the same so as to work with the foreach controller.  Any
> > > chance of this sometime in the near future? There is already all of the
> > > xpath stuff there from the xpath assertion.  It looks like my only other
> > > alternative is to use the javax. xpath stuff in beanshell.  Just thought
> > > I would ask before diggin into this.
> > >
> > > Also, if anyone has some sample beanshell/xpath examples they would be
> > > willing to post it would be appreciated.
> > >
> > > Thanks...
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic