[Webtest] Simple reporting tutorial

Tate Austin webtest@lists.canoo.com
Wed, 3 Mar 2004 16:32:36 -0500


I attempt to generate a report and it bombs out on me claiming:

[testspec] Exception caught while writing test summary
[testspec] message: Resultpath / ResultFile not set properly in config

Relevant passages from my xml file are:

<property name="base.dir" value="${basedir}"/>
<property name="webtest.home" value="${base.dir}/../.."/>

<property name="resultfile" value="WebTestResults.xml"/>
        <property name="resultfile.txt" value="WebTestResults.txt"/>
        <property name="resultfile.html" value="WebTestResults.html"/>
        <property name="start.page" value="formTest"/>
        <property name="base.dir" value="${basedir}"/>
        <property name="root.dir" value="${basedir}/../.."/>

        <property file="${root.dir}/server.properties"/>

         <path id="build.class.path">
            <pathelement location="${root.dir}/build/classes"/>
            <fileset dir="${root.dir}" includes="lib/*.jar"/>
        </path>

    .............

    <target name="CreateSummaryReport" depends="main">
            <!-- echo message="results expected in ${resultfile}"/--> <!-- 
dk: would produce ant warnings -->
            <copy file="${base.dir}/report.css" todir="${resultpath}"/>
            <copy file="${base.dir}/../info/manual/Services.css"
todir="${resultpath}"/>
            <copy file="${resultpath}/${resultfile}" todir="${base.dir}"/>
            <tstamp>
                <format property="report.time" pattern="dd.MM.yyyy
hh:mm:ss"/>
            </tstamp>
            <ant antfile="${base.dir}/ApplyXSL.xml" target="applySingle">
                <!-- report.time  already set -->
                <property name="resultpath" value="${base.dir}"/>
                <property name="resultfile" value="WebTestReport.xml"/>
                <property name="resultfile.html"
value="TestResultOverview.html"/>
                <property name="style"
value="${base.dir}/WebTestReport.xsl"/>
            </ant>
            <move file="${base.dir}/TestResultOverview.html"
todir="${resultpath}"/>
            <delete file="${base.dir}/${resultfile}" />
 </target>


What I'm asking is, what does that mean?  There is little to no
documentation to assist with report generation out of canoo?


----- Original Message ----- 
From: "Smith, John C" <John.C.Smith@fnf.com>
To: <webtest@gate2.canoo.com>
Sent: Monday, March 01, 2004 10:54 AM
Subject: RE: [Webtest] Simple reporting tutorial


> Can you fwd me a zip attachment with the changes?
>
> -----Original Message-----
> From: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com] On Behalf Of Stefan Ruff
> Sent: Monday, March 01, 2004 1:04 AM
> To: webtest@lists.canoo.com
> Subject: Re: [Webtest] Simple reporting tutorial
>
>
> Tate Austin wrote:
>
> >Is there a simple example or tutorial out there that explains
> >reporting? The sample files included with webtest confuse me.
> >
> >_______________________________________________
> >WebTest mailing list
> >WebTest@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest
> >
> >
> >
> >
> Hi Tate
>
> I had the same problem as you. So I tried to make it easier.
>
> I posted two messages to the list with customized reporting.
>
> http://lists.canoo.com/pipermail/webtest/2003q2/000785.html
>
> and
>
> http://lists.canoo.com/pipermail/webtest/2003q2/000697.html
>
>
>
> Stefan
>
>
>
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>