[Webtest] IfStatement doesn't work ...

Geoffroy Troles webtest@lists.canoo.com
Wed, 1 Sep 2004 11:22:49 +0200


Hi !=20

I work with canoo build 483 and I can't use the custom step
"Ifstatement" (v.480
http://webtest-community.canoo.com/wiki/space/IfStatement).

Here is the test source:=20


<!DOCTYPE project SYSTEM "WebTest.dtd" [
	<!ENTITY config SYSTEM "modules/config.xml">
	<!ENTITY getHomePage SYSTEM "modules/getHomePage.xml">
]>
<project name=3D"if test" basedir=3D"." default=3D"local">
  <target name=3D"local">
    <echo message=3D"verify number of item in the basket"/>
    <testSpec name=3D"Just a test">
      &config;
      <steps>
       &getHomePage;
        <storexpath stepid=3D"Check for debug statements"
xpath=3D"count(//td[1][@class=3D'TinyTableColumnData']) > 6"
property=3D"NumberOfItems"/>
        <if stepid=3D"production tests" test=3D"#{NumberOfItems}">
          <clickbutton stepid=3D"submit select handset button"
name=3D"select">
            <form name=3D"chooseHandset"/>
          </clickbutton>
        </if>
      </steps>
    </testSpec>
  </target>
</project>


ant return the following error:

BUILD FAILED
C:\P4source\depot\apps\swf\eshop\smoketests\testcases\testsuite.xml:135:
Following error occured while executing this line
C:\P4source\depot\apps\swf\eshop\smoketests\testcases\IfTest.xml:8: Task
must be of type "Step": if at
C:\P4source\depot\apps\swf\eshop\smoketests\testcases\IfTest.xml:13:  is
of type com.canoo.webtest.extension.IfStep


Does anyone can help me?