[Webtest] Running Suite with HTML reporting
Troy McGuire
webtest@lists.canoo.com
Wed, 05 Jul 2006 12:36:58 -0700
Thanks for everyone's help! I was able to get several XML files run
from one "mybuild.xml" and have the report show data for each file ran!
Thank You,
Troy McGuire
Frank Langanke wrote:
> Troy McGuire wrote:
>> I'm still trying to figure out how to have build.xml run several
>> other files (and report in HTML). I can get one file/script to
>> report in HTML, but am not sure what's required for that to happen
>> with a suite.
>>
>> I had asked about this before and was directed to the WebTest
>> samples, but there is so much going on with various files (and
>> virtually no comments) that it's difficult to make sense of what I
>> need, and what's "extra" for my situation. It looks like to make a
>> build.xml run a suite all I need to do is:
>>
>> <target name="suite.batch">
>> <ant antfile="test1.xml"/>
>> <ant antfile="test2.xml"/>
>> <ant antfile="test3.xml"/>
>> .
>> .
>> . etc
>> Is this assumption correct? Does each test/file need the elements
>> required for reporting results, or can that be in the build.xml and
>> log the results of each test/file that it calls?
>>
>> Thank You (with great sincerity),
>>
>> Troy
>> troy at spawnordie dot com
>> _______________________________________________
>> WebTest mailing list
>> WebTest@lists.canoo.com
>> http://lists.canoo.com/mailman/listinfo/webtest
>
> It's difficult to answer, because you're questions are not specific
> enough. You can run a suite like you suggested with one build.xml
> using the <ant> task. The results will end up depending on how you
> defined the webtest.resultpath in the config. If they point all to the
> same file/dir webtest will just put the results in one file; if each
> resultpath is individually for each test you end up with multiple
> result files.
>
> They way I do it, example snip from main build.xml:
> --------------------------------------------
> <!-- default value for webtest.host -->
> <property name="webtest.host" value="google.com" />
>
> <!-- the test main/test.xml will be using webtest.host=google.com -->
> <subant inheritall="true">
> <filelist dir="tests">
> <file name="main/test.xml" />
> </filelist>
> </subant>
>
> <!-- same call this time test is running with a different host.
> <subant inheritall="true">
> <property name="webtest.host" value="yahoo.com" />
> <filelist dir="tests">
> <file name="main/test.xml" />
> </filelist>
> </subant>
> --------------------------------------------
>
> Maybe this helps too:
> http://webtest-community.canoo.com/wiki/space/How+to+convert+results.xml+to+html
>
>
>
> Cheers,
>
> Frank.
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>
>