Sorry I took so long to reply, I've been busy manually testing everything for each build before our deadline. To answer your question, I get all the files needed except for the results.html. If I run my build file "as is" I get the following in my "webtest-results" directory.

images/
report.css
response_1157677078548_invoke.html
response_1157677083760_invoke.html
response_1157677085481_clickButton.html
results.xml
showHide.js

To save you the trouble of searching the list archives for my build file, here it is:
********************************************
***** START OF MY BUILDFILE *****
********************************************
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project SYSTEM "/usr/local/sbin/canoo_webtest/selftests/config/WebTest.dtd">

<project name="All Tests" basedir="." default="testSuite">
<property name="webtest.home" location="/usr/local/sbin/canoo_webtest" />
   <import file="${webtest.home}/lib/taskdef.xml" />

   <property name="resources.dir" value="${webtest.home}/resources"/>
<property name="test.dir" location="/usr/local/www/customer.com/qa/canoo_webtest" /> <property name="webtest.resultpath" value="${test.dir}/webtest-results"/>
   <property name="webtest.resultfile" value="results.xml"/>
<property name="webtest.resultfile.html" value="${webtest.resultpath}/results.html"/> <target name="init" description="Checks that needed properties are defined"> <!-- <fail message="test.file should be set" unless="test.file" /> -->
       <fail message="test.dir should be set" unless="test.dir" />
   </target>
<target name="testSuite" depends="init" description="Runs the Test Suite">
       <mkdir dir="${webtest.resultpath}" />
       <antcall target="test.suite" />
       <antcall target="formatResults" />
       <antcall target="copyResults" />
       <antcall target="makeIndexHTML" />
<!--        <antcall target="" />    -->
   </target>

<target name="formatResults" description="Formats the XML result file using XSL">
       <tstamp>
<format property="report.time" pattern="dd.MM.yyyy HH:mm" locale="us" />
       </tstamp>
       <style
               basedir="${webtest.resultpath}"
               destdir="${webtest.resultpath}"
               includes="${webtest.resultpath}/${webtest.resultfile}"
               force="true"
               extension=".html"
               style="${resources.dir}/WebTestReport.xsl">
           <param name="reporttime" expression="${report.time}"/>
           <param name="title" expression="${ant.project.name}"/>
       </style>
   </target>

<target name="copyResults" description="Copies the resources needed by the html page to the same dir. The report must be ok too when opened from filesystem (without webserver)">
       <copy todir="${webtest.resultpath}">
           <fileset dir="${resources.dir}">
               <include name="report.css"/>
               <include name="showHide.js"/>
               <include name="images/*.*"/>
<!--                <include name="results.html"/> -->
           </fileset>
       </copy>
   </target>
<target name="makeIndexHTML" description="Copies the results.html to index.html" > <copy tofile="${webtest.resultpath}/index.html" file="${webtest.resultpath}/results.html"/> <echo message="Webtest result overview available in ${webtest.resultfile.html}"/>
   </target>

   <target name="test.suite">
       <ant antfile="sa_loginpage_04.xml"/>
       <ant antfile="sa_login_04.xml"/>
   </target>
</project>
*****************************************
***** END OF MY BUILDFILE *****
*****************************************

Also, if you're interested in my config, it's here:

******************************************
***** START OF MY CONFIG ******
******************************************
<config
   host="secure.customer.com"
   port="443"
   protocol="https"
   basepath="admin"
   summary="true"
   resultpath="${webtest.resultpath}"
   resultfile="${webtest.resultfile}"
   saveresponse="true"
  showhtmlparseroutput="true">
<!-- ABOVE TWO LINES ARE DEBUG STUFF-->
   <header name="followRedirects" value="true" />
</config>
**************************************
***** END OF MY CONFIG ******
**************************************

I hope that helps you understand more of what's going on. Let me know if there is any more information that you need to help me with this.

Thank You,

Troy
troy AT spawn or die DOTT comm


Marc Guillemot wrote:
Do you have an xml result file if you don't try to transform the results?

Marc.

Troy McGuire wrote:

sorry but I'm lost. What was the first problem? What goes wrong when you use webtest.sh mybuild04.xml?
The "results.html" file is not being generated (or being generated, then deleted before being copied). My original issue was that it wasn't being created when I attempted to put the reports in a directory named after the timestamp. Now I can't get an HTML report at all. Below is the output I get.
.
.    (snip tests 1-6)
.
[verifyText] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: verifyText "Verifies unique text after login" (7/7) INFO (com.canoo.webtest.ant.WebtestTask) - Test report successfully created.
formatResults:
[style] Transforming into /usr/local/www/customer.com/qa/canoo_webtest/webtest-results
copyResults:
[copy] Copying 13 files to /usr/local/www/customer.com/qa/canoo_webtest/webtest-results
makeIndexHTML:

BUILD FAILED
/usr/local/www/customer.com/qa/canoo_webtest/mybuild_04.xml:24: The following error occurred while executing this line: /usr/local/www/customer.com/qa/canoo_webtest/mybuild_04.xml:56: Warning: Could not find file /usr/local/www/customer.com/qa/canoo_webtest/webtest-results/results.html to copy.

Total time: 17 seconds
[EMAIL PROTECTED] canoo_webtest]
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest


_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

.


_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to