[Webtest] Proposals
Denis N. Antonioli
webtest@lists.canoo.com
Mon, 21 Feb 2005 23:33:41 +0100
Hi
On 21 f=E9vr. 05, at 16:32, Oliver Scheel wrote:
> An Example:
>
> You have a couple of lists with items. Now you want to verify that the=20=
> sum
> of all items is equal to the total sum of items. A WebTest snippet=20
> (how it
> could look like):
>
> <storexpath stepid=3D"num items 1" xpath=3D"//table[1]//td[1]"=20
> property=3D"num1"/>
> <storexpath stepid=3D"num items 2" xpath=3D"//table[2]//td[1]"=20
> property=3D"num2"/>
> <storexpath stepid=3D"total items" xpath=3D"//table[3]//td[1]"=20
> property=3D"tot"/>
> <verifyProperty stepid=3D"Compare Total" name=3D"tot" =
text=3D"#{num1+num2}"/>
>
How about a single step similar to:
<verifyxpath
xpath=3D"//table[1]//td[1] + //table[2]//td[1] =3D=3D =
//table[3]//td[1]"
text=3D"true"
/>
Due to the late hour, the xpath may contain one or two syntax errors ;-)
Best
dna
--=20
And remember: if you don't get source code, it's not open, which
means you'll eventually get screwed.
-- Tom Christiansen in <5geuqs$dv9$1@csnews.cs.colorado.edu>