Hi Eric,
I'm not shure if this a correct test-structure.
We do do not have any webtest with two <webtest> tags inside one project or
test-file.xml.
Wenn we want to test a detail with different values we do:
-----------------------------------------------
<target name="test">
<antcall target="searchWithParams">
<param name="callSeason"
value="${standard.test.season.label}"/>
<param name="callTheme"
value="${standard.test.admdediumtheme.chosen1.label}"/>
<param name="callKey" value=""/>
<param name="callName" value=""/>
<param name="resultString" value="Es wurde\(n\) \d+
WM-Projekt\(e\) gefunden"/>
</antcall>
<antcall target="searchWithParams">
<param name="callSeason"
value="${standard.test.season.pre.parallel.label}"/>
<param name="callTheme"
value="${werbemittel.suchen.werbemittel.thema.name}"/>
<param name="callKey"
value="${standard.test.key.someValue.label}"/>
<param name="callName" value=""/>
<param name="resultString" value="Keine Daten vorhanden
bzw. gefunden"/>
</antcall>
[....]
</target>
<!-- search for one season -->
<target name="searchWithParams" >
<webtest name="check PHP: Angebotsplanung/Werbemittel/Suche -
${callSeason}/${callTheme} - READING!">
&config;
<steps>
&login;
[...]
</webtest>
</target>
---------------------------------------------
Yours
Michael Habbert
Michael Habbert
Key-Work Consulting GmbH | Kriegsstr. 100 | 76133 Karlsruhe | Germany |
www.key-work.de
Fon: +49-721-78203-269 | E-Mail: [email protected] | Fax:
+49-721-78203-10
Key-Work Consulting GmbH Karlsruhe, HRB 108695, HRG Mannheim
Geschäftsführer: Andreas Stappert, Tobin Wotring
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im
Auftrag von Eric Bunton
Gesendet: Dienstag, 5. Juli 2011 19:35
An: [email protected]
Betreff: [Webtest] Multiple <webtest> tags in one target
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="xpress WS Test" basedir="." default="xpressWSTest">
<target name="xpressWSTest">
<webtest name="xpress WS Production Test">
<invoke
url="http://url.com"
description="xpress WS Test Production" />
<verifyXPath description="CID" text="CID-0000002184319"
XPath="/ref:ONIXMessage/ref:Product//ref:ProductIdentifier/ref:IDValue"/>
</webtest>
<webtest name="xpress WS Processing Test">
<invoke
url="http://url.com"
description="xpress WS Test Processing" />
<verifyXPath description="CID" text="CID-0000002184319"
XPath="/ref:ONIXMessage/ref:Product/ref:ProductIdentifier/ref:IDValue"/>
</webtest>
</target>
</project>_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest