[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>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;steps&gt;<br>
....<br>
.....<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;verifytext text="${err_noMapsSelected}"
description="verify error msg for no maps selected" /&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;not&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;verifytext text="${ap_productAddedNote1}"
description="verify no successful prod creation message 1" /&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;verifytext text="${ap_productAddedNote2}"
description="verify no successful prod creation message 2" /&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/not&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/steps&gt;<br>
<br>
I recently updated to build R_1115 and I am getting an error when
running this, it looks like &lt;not&gt; is ignored and then a positive,
not negative, verifyText is made. Am I missing some recent change?<br>
<br>
<br>
&nbsp; [webtest]&nbsp; INFO (com.canoo.webtest.steps.Step) - &gt;&gt;&gt;&gt;
Start Step: verifytext "verify error msg for invalid prefix" (20/22)<br>
<b>&nbsp; [webtest]&nbsp; INFO (com.canoo.webtest.steps.Step) - &gt;&gt;&gt;&gt;
Start Step: not "&lt;unknown&gt;" (21/22)</b><br>
<b>&nbsp; [webtest]&nbsp; INFO (com.canoo.webtest.steps.Step) - &gt;&gt;&gt;&gt;
Start Step: verifytext "verify no successful prod creation message 1"
(21/22)<br>
&nbsp; [webtest]&nbsp; INFO (com.canoo.webtest.steps.Step) - Exception thrown
from this class: com.canoo.webtest.engine.StepFailedException<br>
&nbsp; [webtest]&nbsp; 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 &lt;The product has been
successfully added to the database.&gt;<br>
&nbsp; [webtest]&nbsp; INFO (com.canoo.webtest.steps.Step) - &gt;&gt;&gt;&gt;
Start Step: verifytext "verify no successful prod creation message 2"
(21/22)<br>
&nbsp; [webtest]&nbsp; INFO (com.canoo.webtest.steps.Step) - Exception thrown
from this class: com.canoo.webtest.engine.StepFailedException<br>
&nbsp; [webtest]&nbsp; 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 &lt;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 &lt;b&gt;MP Product
ID&lt;/b&gt;. Otherwise the two product definitions are not connected
to each other.&gt;</b><br>
&nbsp; [webtest]&nbsp; INFO (com.canoo.webtest.steps.Step) - &gt;&gt;&gt;&gt;
Start Step: null "[implicit tear down step]" (22/22)<br>
&nbsp; [webtest]&nbsp; 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>