You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Harrison Curtis <hc...@xaware.com> on 2007/05/16 01:54:25 UTC

Asserting a XPath assertion

I'm trying to assert that there is one address in the returned results.
I believe I might have the wrong syntax for the XPATH Assertion Dialog.
The XPATH expression validates but I still get a false in the run
result.

There is only one address element according to the View Results Tree.  I
entered the following expression in the XPATH Assertion: 

count(/NewCustomer/CustomerReport/Addresses/Address)=1

Could someone explain what I'm doing wrong.

Regards,
Bud Curtis
(719)884-5443


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


Re: Asserting a XPath assertion

Posted by sebb <se...@gmail.com>.
Yes, sorry, I got them the bug ids mixed.

Both have been fixed in SVN.

S.
On 21/05/07, Ali Ranalvi <al...@persistent.co.in> wrote:
> http://issues.apache.org/bugzilla/show_bug.cgi?id=42088
> This issue was logged specifically for the XPath Assertion.
>
> Essentially 42088 and 41253 deal with the same problem, the former for XPath
> Assertion and the latter for XPath Extractor. Right, sebb?
>
> Ali
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Friday, May 18, 2007 6:01 PM
> To: JMeter Users List
> Subject: Re: Asserting a XPath assertion
>
> The boolean expression functionality was added in Bug 41253:
>
> http://issues.apache.org/bugzilla/show_bug.cgi?id=41253
>
> which was applied after Jmeter 2.2, so is only in the nightly builds at
> present.
>
> On 16/05/07, Harrison Curtis <hc...@xaware.com> wrote:
> > I'm trying to assert that there is one address in the returned results.
> > I believe I might have the wrong syntax for the XPATH Assertion Dialog.
> > The XPATH expression validates but I still get a false in the run
> > result.
> >
> > There is only one address element according to the View Results Tree.  I
> > entered the following expression in the XPATH Assertion:
> >
> > count(/NewCustomer/CustomerReport/Addresses/Address)=1
> >
> > Could someone explain what I'm doing wrong.
> >
> > Regards,
> > Bud Curtis
> > (719)884-5443
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>
> DISCLAIMER
> ==========
> This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.
>
> ---------------------------------------------------------------------
> 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


RE: Asserting a XPath assertion

Posted by Ali Ranalvi <al...@persistent.co.in>.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42088
This issue was logged specifically for the XPath Assertion. 

Essentially 42088 and 41253 deal with the same problem, the former for XPath
Assertion and the latter for XPath Extractor. Right, sebb?

Ali
 
-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Friday, May 18, 2007 6:01 PM
To: JMeter Users List
Subject: Re: Asserting a XPath assertion

The boolean expression functionality was added in Bug 41253:

http://issues.apache.org/bugzilla/show_bug.cgi?id=41253

which was applied after Jmeter 2.2, so is only in the nightly builds at
present.

On 16/05/07, Harrison Curtis <hc...@xaware.com> wrote:
> I'm trying to assert that there is one address in the returned results.
> I believe I might have the wrong syntax for the XPATH Assertion Dialog.
> The XPATH expression validates but I still get a false in the run
> result.
>
> There is only one address element according to the View Results Tree.  I
> entered the following expression in the XPATH Assertion:
>
> count(/NewCustomer/CustomerReport/Addresses/Address)=1
>
> Could someone explain what I'm doing wrong.
>
> Regards,
> Bud Curtis
> (719)884-5443
>
>
> ---------------------------------------------------------------------
> 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


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.

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


Re: Asserting a XPath assertion

Posted by sebb <se...@gmail.com>.
The boolean expression functionality was added in Bug 41253:

http://issues.apache.org/bugzilla/show_bug.cgi?id=41253

which was applied after Jmeter 2.2, so is only in the nightly builds at present.

On 16/05/07, Harrison Curtis <hc...@xaware.com> wrote:
> I'm trying to assert that there is one address in the returned results.
> I believe I might have the wrong syntax for the XPATH Assertion Dialog.
> The XPATH expression validates but I still get a false in the run
> result.
>
> There is only one address element according to the View Results Tree.  I
> entered the following expression in the XPATH Assertion:
>
> count(/NewCustomer/CustomerReport/Addresses/Address)=1
>
> Could someone explain what I'm doing wrong.
>
> Regards,
> Bud Curtis
> (719)884-5443
>
>
> ---------------------------------------------------------------------
> 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