Hi,
do you really want to check it that precisely? Your test will fail very
after each minimal change.
If you have a failure, can you provide the failure message, it helps to
understand what happens.
Cheers,
Marc.
--
Blog: http://mguillem.wordpress.com
Vikas Lall wrote:
Hi All
I have the following code snippet in jsp to verify using Webtest.Canoo.
<h2>Struts Examples with Code</h2>
<p>This is a collection of examples which demonstrate some of the more
frequently
used Struts Tags. Familiarity with the Java(tm) Programming Language and
HTML
is assumed. </p>
<p>To navigate your way through the examples, the following icons will
help: </p>
<table border="0" cellspacing="5" width="85%" >
<tr valign="top">
<td width="30"><img alt="" src="images/execute.gif" /></td>
<td>Execute the example</td>
</tr>
I had been trying to test using verifyText but in vain.
<verifyText description ="Struts Examples with Code"
text="<h2>Struts Examples with Code</h2>" />
<verifyText description ="Struts Examples with Code"
text="<p>This is a collection of examples which demonstrate
some of the more frequently" regex="true" />
<!-- verifyText description ="Struts Examples with Code"
text=" used Struts Tags. Familiarity with the Java⟨tm⟩
Programming Language and HTML" regex="true" /-->
<verifyText description ="Struts Examples with Code"
text=" is assumed. </p>" />
<verifyText description ="Struts Examples with Code"
text="Execute the example" />
Please note that the first verifyText tag executes successfully but it
fails in subsequent steps.
Please suggest me a better way to do....
Regards
Vikas Lall
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest