AW: [Webtest] Multiple <webtest> tags in one target

Christ, Denis Christ, Denis" <Denis.Christ@santanderconsumer.at
Thu, 7 Jul 2011 08:34:31 +0200


Hi Eric, Michael,

there is a way to do that with property files, so you have less code:

-----------------------------------------------------------------------
<project default=3D"testSuite">

  <property name=3D"suite.xml" value=3D"allUseCases.xml" />

  <target name=3D"testSuite" depends=3D"testSuiteFrench,testSuiteEnglish" /=
>

  <target name=3D"testSuiteFrench">
    <ant antfile=3D"${suite.xml}">
      <property file=3D"properties/french.properties"/>
    </ant>
  </target>
  <target name=3D"testSuiteEnglish">
    <ant antfile=3D"${suite.xml}">
      <property file=3D"properties/english.properties"/>
    </ant>
  </target>

</project>
----------------------------------------------------------------------

Cheers,
Denis

-----Urspr=FCngliche Nachricht-----
Von: webtest-admin@lists.canoo.com [mailto:webtest-admin@lists.canoo.com] I=
m Auftrag von Habbert, Michael (Key-Work)
Gesendet: Donnerstag, 07. Juli 2011 08:16
An: webtest@lists.canoo.com
Betreff: AW: [Webtest] Multiple <webtest> tags in one target

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=3D"test">

                <antcall target=3D"searchWithParams">
                        <param name=3D"callSeason" value=3D"${standard.test=
.season.label}"/>
                        <param name=3D"callTheme" value=3D"${standard.test.=
admdediumtheme.chosen1.label}"/>
                        <param name=3D"callKey" value=3D""/>
                        <param name=3D"callName" value=3D""/>
                        <param name=3D"resultString" value=3D"Es wurde\(n\)=
 \d+ WM-Projekt\(e\) gefunden"/>
                </antcall>

                <antcall target=3D"searchWithParams">
                        <param name=3D"callSeason" value=3D"${standard.test=
.season.pre.parallel.label}"/>
                        <param name=3D"callTheme" value=3D"${werbemittel.su=
chen.werbemittel.thema.name}"/>
                        <param name=3D"callKey" value=3D"${standard.test.ke=
y.someValue.label}"/>
                        <param name=3D"callName" value=3D""/>
                        <param name=3D"resultString" value=3D"Keine Daten v=
orhanden bzw. gefunden"/>
                </antcall>
                                  [....]
        </target>

        <!-- search for one season -->
        <target name=3D"searchWithParams" >

                <webtest name=3D"check PHP: Angebotsplanung/Werbemittel/Suc=
he - ${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: michael.habbert@key-work.de | Fax: +49-721=
-78203-10

Key-Work Consulting GmbH Karlsruhe, HRB 108695, HRG Mannheim
Gesch=E4ftsf=FChrer: Andreas Stappert, Tobin Wotring -----Urspr=FCngliche N=
achricht-----
Von: webtest-admin@lists.canoo.com [mailto:webtest-admin@lists.canoo.com] I=
m Auftrag von Eric Bunton
Gesendet: Dienstag, 5. Juli 2011 19:35
An: webtest@lists.canoo.com
Betreff: [Webtest] Multiple <webtest> tags in one target

I currently have multiple webtest tags within one target/project while it r=
uns all of the webtests I do not get the report for all of the tests. Looki=
ng 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 reaso=
ns. 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
        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>

    <webtest name=3D"xpress WS Processing Test">
      <invoke
        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"/>
    </webtest>

  </target>
</project>_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest


_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest