[Webtest] <not> in webtest R_1115
Ivan Rancati
webtest@lists.canoo.com
Mon, 09 Jan 2006 17:56:18 +0100
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Helvetica, Arial, sans-serif">I have some relatively simple
tests that verify that a given message is not present on a page<br>
<br>
<steps><br>
....<br>
.....<br>
<verifytext text="${err_noMapsSelected}"
description="verify error msg for no maps selected" /><br>
<not><br>
<verifytext text="${ap_productAddedNote1}"
description="verify no successful prod creation message 1" /><br>
<verifytext text="${ap_productAddedNote2}"
description="verify no successful prod creation message 2" /><br>
</not><br>
</steps><br>
<br>
I recently updated to build R_1115 and I am getting an error when
running this, it looks like <not> is ignored and then a positive,
not negative, verifyText is made. Am I missing some recent change?<br>
<br>
<br>
[webtest] INFO (com.canoo.webtest.steps.Step) - >>>>
Start Step: verifytext "verify error msg for invalid prefix" (20/22)<br>
<b> [webtest] INFO (com.canoo.webtest.steps.Step) - >>>>
Start Step: not "<unknown>" (21/22)</b><br>
<b> [webtest] INFO (com.canoo.webtest.steps.Step) - >>>>
Start Step: verifytext "verify no successful prod creation message 1"
(21/22)<br>
[webtest] INFO (com.canoo.webtest.steps.Step) - Exception thrown
from this class: com.canoo.webtest.engine.StepFailedException<br>
[webtest] INFO (com.canoo.webtest.steps.Step) - Message was:
Step[verifytext "verify no successful prod creation message 1"
(21/22)]: Text not found in page. Expected <The product has been
successfully added to the database.><br>
[webtest] INFO (com.canoo.webtest.steps.Step) - >>>>
Start Step: verifytext "verify no successful prod creation message 2"
(21/22)<br>
[webtest] INFO (com.canoo.webtest.steps.Step) - Exception thrown
from this class: com.canoo.webtest.engine.StepFailedException<br>
[webtest] INFO (com.canoo.webtest.steps.Step) - Message was:
Step[verifytext "verify no successful prod creation message 2"
(21/22)]: Text not found in page. Expected <If this product will be
sold through the Navigon webshop you have to enter this product id into
the product definition of the webshop under <b>MP Product
ID</b>. Otherwise the two product definitions are not connected
to each other.></b><br>
[webtest] INFO (com.canoo.webtest.steps.Step) - >>>>
Start Step: null "[implicit tear down step]" (22/22)<br>
[webtest] INFO (com.canoo.webtest.ant.WebtestTask) - Test report
successfully created.<br>
<br>
</font>
<pre class="moz-signature" cols="72">--
Ivan Rancati
QA Architect
sharpmind.de
</pre>
</body>
</html>