<groovy description="compare two string product names">
assert step.webtestProperties.previousProduct  &lt= step.webtestProperties.currentProduct 
</groovy>

I didn't try it but that should work.

On Aug 17, 2006, at 7:48 AM, Koorosh Vakhshoori wrote:

Frank,
  Still thanks for the feedback.

Take care,
Koorosh 

-----Original Message-----
[mailto:[EMAIL PROTECTED]] On Behalf Of Langanke, Frank
Sent: Wednesday, August 16, 2006 11:21 PM
Subject: RE: [Webtest] How to compare two strings using XPATH?



-----Original Message-----
[mailto:[EMAIL PROTECTED]] On Behalf Of Koorosh Vakhshoori
Sent: Wednesday, August 16, 2006 6:02 PM
Subject: RE: [Webtest] How to compare two strings using XPATH?

Hi Frank,
  I am confused, how can I use verifyProperty to see if one 
string lexicographically less or equal to another string. All 
I can do with verifyXPath is to use regular _expression_ to do 
some sort of fuzzy match.
Could you elaborate?

Thanks,
Koorosh 

Sorry, I was wrong. :/ I didn't notice what the compare function does
and from your example code it just looked like you could use
verifyProperty instead. Of course for your problem this does not work. 

Cheers,

Frank.
_______________________________________________
WebTest mailing list
_______________________________________________
WebTest mailing list

Reply via email to