3 messages in com.canoo.lists.webtestRE: [Webtest] small change to verifyX...
FromSent OnAttachments
Marc Guillemot08 Dec 2005 08:54 
Dierk Koenig08 Dec 2005 09:18 
Marc Guillemot09 Dec 2005 02:18 
Subject:RE: [Webtest] small change to verifyXPath?
From:Dierk Koenig (dier@canoo.com)
Date:12/08/2005 09:18:19 AM
List:com.canoo.lists.webtest

that's all reasonable and well spotted. Go for it ;-)

Mittie

-----Original Message----- From: webt@lists.canoo.com [mailto:webt@lists.canoo.com]On Behalf Of Marc Guillemot Sent: Donnerstag, 8. Dezember 2005 17:55 To: webt@lists.canoo.com Subject: [Webtest] small change to verifyXPath?

Hi,

when no text attribute is provided to verifyXPath, the step just checks that the xpath gives a "result". The consequence in the case of a boolean result is that something like

<verifyXPath xpath="1 &gt; 2"/>

will be successfull although 1 < 2 (at least on my computer ;-)). The reason is that the xpath evaluates to false which is converted to the non empty string "false" and therefore the step is successfull.

What I propose it to change this behaviour when the xpath evaluates to a boolean and no text is provided and make the step fail when the xpath evaluates to the boolean false.

What do you think?

Marc.