I don't know if I'm explaining this more so I'll try to clarify.

To run one test, we have this in the build.xml:
    <target name="run-one-canoo" depends="canoo-taskdef" description="Runs
specified canoo test (requires running application).">
        <delete dir="${resultsPath}"/>
        <mkdir dir="${resultsPath}"/>
        <ant antfile="${test.webtest.scripts.dir}/${canooTestToRun}"/>
    </target>
To format the results, we have this:
  <target name="format-canoo-results" description="Formats the Canoo Results
file into an Html Page">
        <xslt in="${resultsPath}/result.xml"
out="${resultsPath}/formattedCanooResults.html"
              destdir="${resultsPath}"
              style="${webtesthome}/resources/WebTestReport.xsl">
            <param name="indexTests" expression="formattedCanooResults.html
"/>
            <param name="outputDir" expression="${resultsPath}"/>
        </xslt>
    </target>

Then I can run a test with this:
ant -Dwebtesthome=C:/canoo
-DwebTestSrc=/eclipse_projects/fast401k/src/web_test/ -Dhostname=chester
-Dport=80 -DresultsPath=/canoo/logs/chester_results -DcanooTestToRun=$1.xml
run-one-canoo
ant -Dwebtesthome=c:/canoo -DresultsPath=c:/canoo/logs/chester_results
format-canoo-results

So my result files would all be under c:/canoo/logs/chester_results.

Now my result files are in c:/canoo/logs/chester_results/001_TestScriptName,
where TestScriptName is the name of that test I ran. Naturally, the task to
format the results fails because it can't find the result file.

I confess I haven't changed anything about how we run these tests in, oh, 3
or 4 years. I've been coming thru the online manual and changing things
according to what it says, I even did that little command line thing to
create a sample project and tried to copy what it created. That gets rid of
the little messages nagging me that I'm doing something that was deprecated,
but it doesn't change how the results go out.

Thanks,
Lisa


On Dec 13, 2007 12:45 PM, Lisa Crispin <[EMAIL PROTECTED]> wrote:

> I'm sure this is a stupid question, but I don't have much time to upgrade
> to the newest version and I'm not knowledgeable enough to figure this out
> myself. I've searched the archives with no luck. I don't know where to find
> information on things that are changed in the latest releases. Formerly I
> had build 1551 installed.
>
> I just installed the latest build, 1646. When I run a script, it runs
> fine, but where it used to put result files directly into the 'logs'
> directory, now it creates an extra folder with the name of the test and a
> number prefix, and then within that folder, the result files have a prefix
> appended to them with a number. I have no idea how to go about formatting
> the results using WebTestReport.xsl in this case, because right now I'm
> just giving it the results path consisting of my hard coded log directory
> name.
>
> How do I either: 1) make it work the way it used to or 2) format results
> that have variable names like this?
>
> I haven't tried to run a suite, I assume that's going to create a
> directory for each test in the suite?
>
> And - where DO I find information about the latest changes in WebTest?  I
> found the change log for the latest build, but I don't believe this change
> to where the result files are written and how they're named is in this
> build.
>
> Sorry for all the dumb questions. I only get time to upgrade versions
> every few months (and this time we had to upgrade log4j also, so it would
> work).
>
> Thanks,
> Lisa
>



-- 
Lisa Crispin
Co-author with Janet Gregory, Agile Testing
http://www.agiletester.ca
http://lisa.crispin.home.att.net

Reply via email to