[Webtest] Multiple <webtest> tags in one target

Eric Bunton Eric Bunton <buntone@bibliolabs.com>
Tue, 5 Jul 2011 13:35:18 -0400


I currently have multiple webtest tags within one target/project while =
it runs all of the webtests I do not get the report for all of the =
tests. Looking at the output on the terminal I get a lot of exceptions =
thrown. Here is an example of my test file. I have cut out the actual =
url for privacy reasons. If anyone could help it would be greatly =
appreciated.

<project name=3D"xpress WS Test" basedir=3D"." default=3D"xpressWSTest">


  <target name=3D"xpressWSTest">
    <webtest name=3D"xpress WS Production Test">
      <invoke=20
        url=3D"http://url.com"
        description=3D"xpress WS Test Production" />

        <verifyXPath description=3D"CID" text=3D"CID-0000002184319" =
XPath=3D"/ref:ONIXMessage/ref:Product//ref:ProductIdentifier/ref:IDValue"/=
>
    </webtest>
   =20
    <webtest name=3D"xpress WS Processing Test">
      <invoke=20
        url=3D"http://url.com"
        description=3D"xpress WS Test Processing" />

        <verifyXPath description=3D"CID" text=3D"CID-0000002184319" =
XPath=3D"/ref:ONIXMessage/ref:Product/ref:ProductIdentifier/ref:IDValue"/>=
=20
    </webtest>
   =20
  </target>
</project>=