Have you tried putting a space character before & after the '-'?  I suspect
that Xpath may be treating 200.2-100.2 as a name.

--
Jonathan Rosenberg
Founder & Executive Director
Tabby's Place
http://www.tabbysplace.org <http://www.tabbysplace.org/> 


-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of David Jehoul
Sent: Monday, June 28, 2010 4:50 AM
To: [email protected]
Subject: [Webtest] verifyXPath bug?



Hi,

 

I have the following statement:

<verifyXPath xpath="200.2-100.2=100" />

 

As a result, I get an error message: 200.2-100.2 could not be formatted to a
number.

When I put the expression in the XPath section of Webtest recorder, the
result is 'true' as I expected, so it seems like a bug. Also, putting
200.2-100.2 results in 100 in Webtest recorder.

 

Next, I tried the following:

<verifyXPath xpath="'200.2'-'100.2'=100" />

 

This results in 'false', because, apparently according to Webtest recorder,
'200.2'-'100.2' results in 99.99999999999999. Very strange if you ask me.

 

Does anyone have a solution for this?

 

Thanks!

 

David

 

Reply via email to