[Webtest] Checking table text?
Phalak, Kashmira Vijay
webtest@lists.canoo.com
Thu, 14 Jul 2005 12:01:03 -0700
This is a multi-part message in MIME format.
------_=_NextPart_001_01C588A6.6220C722
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hi,
=20
How do I check for text in two td tags or in li tags in one verifyText
Statement? here the order of display is important and hence i cannot
just check for text in individual li tags
=20
Ideally, what i need is:
=20
<verifyText stepid=3D"check values "
text=3D"<li class=3D"smtxt">124694</li> =20
<li class=3D"smtxt">262260</li> =20
<li class=3D"smtxt">268289</li> =20
<li class=3D"smtxt">614526</li> =20
<li class=3D"smtxt">763413</li>"=20
/>
=20
But I cannot do this as I get an error : cannot include "<" in text.
I've tried replcing "<" with < as well...but it does nto work. Any
suggestions??
=20
Also, how do I check for a case such as=20
<td class=3D"smtxtBl" align=3D"right">Total:</td>
<td class=3D"smtxtBl" colspan=3D"2">589</td>
Here I want to check that the value corresponding to Total is displayed
properly, so I need to check it in one verifyText stmt.
=20
Thanks in advance...
=20
-Kashmira.
=20
=20
=20
------_=_NextPart_001_01C588A6.6220C722
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2800.1476" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D235075018-14072005><FONT face=3DArial=20
size=3D2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=3D235075018-14072005><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D235075018-14072005><FONT face=3DArial size=3D2>How =
do I check=20
for text in two td tags or in li tags in one verifyText Statement? here =
the=20
order of display is important and hence i cannot just check for text in=20
individual li tags</FONT></SPAN></DIV>
<DIV><SPAN class=3D235075018-14072005><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D235075018-14072005><FONT face=3DArial =
size=3D2>Ideally, what i need=20
is:</FONT></SPAN></DIV>
<DIV><SPAN class=3D235075018-14072005><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D235075018-14072005><FONT face=3DArial =
size=3D2> <verifyText=20
stepid=3D"check values=20
"<BR> &n=
bsp; =20
text=3D"<li=20
class=3D"smtxt">124694</li> &=
nbsp; <BR> &nbs=
p;  =
; =20
<li=20
class=3D"smtxt">262260</li> &=
nbsp; <BR> &nbs=
p;  =
; =20
<li=20
class=3D"smtxt">268289</li> &=
nbsp; <BR> &nbs=
p;  =
; =20
<li=20
class=3D"smtxt">614526</li> &=
nbsp; <BR> &nbs=
p;  =
; =20
<li class=3D"smtxt">763413</li>" </FONT></SPAN></DIV>
<DIV><SPAN class=3D235075018-14072005><FONT face=3DArial=20
size=3D2>/></FONT></SPAN></DIV>
<DIV><SPAN class=3D235075018-14072005><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D235075018-14072005><FONT face=3DArial size=3D2>But I =
cannot do this=20
as I get an error : cannot include "<" in text. I've tried =
replcing=20
"<" with &lt; as well...but it does nto work. Any=20
suggestions??</FONT></SPAN></DIV>
<DIV><SPAN class=3D235075018-14072005><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D235075018-14072005><FONT face=3DArial size=3D2>Also, =
how do I check=20
for a case such as </FONT></SPAN></DIV>
<DIV><SPAN class=3D235075018-14072005><FONT face=3DArial =
size=3D2> <td=20
class=3D"smtxtBl" align=3D"right">Total:</td><BR> <td=20
class=3D"smtxtBl" colspan=3D"2">589</td></FONT></SPAN></DIV>
<DIV><SPAN class=3D235075018-14072005><FONT face=3DArial size=3D2>Here I =
want to check=20
that the value corresponding to Total is displayed properly, so I need =
to check=20
it in one verifyText stmt.</FONT></SPAN></DIV>
<DIV><SPAN class=3D235075018-14072005><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D235075018-14072005><FONT face=3DArial size=3D2>Thanks =
in=20
advance...</FONT></SPAN></DIV>
<DIV><SPAN class=3D235075018-14072005><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D235075018-14072005><FONT face=3DArial=20
size=3D2>-Kashmira.</FONT></SPAN></DIV>
<DIV><SPAN class=3D235075018-14072005><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D235075018-14072005><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D235075018-14072005><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV></BODY></HTML>
------_=_NextPart_001_01C588A6.6220C722--