Maybe I don't understand your intention correctly but the log seems to
suggest that WebTest is finding the first text item and not the second
and third. Is that the behaviour you expect?

Cheers, Paul.

Ivan Rancati wrote:
Apologies for the similar message I sent yesterday in html format.

I have some relatively simple tests that verify that a given message is not present on a page

        <steps>
....
.....
<verifytext text="${err_noMapsSelected}" description="verify error msg for no maps selected" />
            <not>
<verifytext text="${ap_productAddedNote1}" description="verify no successful prod creation message 1" /> <verifytext text="${ap_productAddedNote2}" description="verify no successful prod creation message 2" />
            </not>
        </steps>

I recently updated to build R_1115 first, and R_1118 today; 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?


  [webtest]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: verifytext 
"verify error msg for invalid prefix" (20/22)
*  [webtest]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: not 
"<unknown>" (21/22)*
*  [webtest]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: verifytext 
"verify no successful prod creation message 1" (21/22)
  [webtest]  INFO (com.canoo.webtest.steps.Step) - Exception thrown from this 
class: com.canoo.webtest.engine.StepFailedException
  [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.>
  [webtest]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: verifytext 
"verify no successful prod creation message 2" (21/22)
  [webtest]  INFO (com.canoo.webtest.steps.Step) - Exception thrown from this 
class: com.canoo.webtest.engine.StepFailedException
  [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 <...long 
error message here...>*
  [webtest]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: null "[implicit 
tear down step]" (22/22)
[webtest] INFO (com.canoo.webtest.ant.WebtestTask) - Test report successfully created.


_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to