Hi Thomas,
Thanks for your reply!
I'd prefer not to zip them up but I can put some lines here to give you an
example.
In my build.xml, I have the following:
<project name="example" default="wt.full">
<property name="webtest.home" value="C:\WebTest"/>
<import file="definitions.xml" description="Import custom definitions
(if
any)"/>
<!-- <import file="${webtest.home}/lib/taskdef.xml"/> -->
<import file="${webtest.home}/webtest.xml" description="Import all
functionalities for a full build"/>
<target name="wt.testInWork">
<ant dir="tests" antfile="allTests.xml"/>
</target>
</project>
In my allTests.xml, I have the following:
<project default="TestProject">
<target name="TestProject" description="runs all the tests">
<ant dir="Reports/Iain Report" antfile="IainReport.xml"/>
<ant dir="Reports/Iain Other Report" antfile="IainOtherReport.xml"/>
</target>
</project>
My IainReport.xml has the following:
<project name="IainReport" basedir="." default="wt.full">
<property name="webtest.home" location="C:/java/webtest" />
<import file="${webtest.home}/webtest.xml"/>
<import file="${webtest.home}/lib/taskdef.xml"/>
<target name="wt.testInWork">
<webtest name="Iain Report Overall">
<config saveresponse="true"/>
<steps>
<invoke url="webpage"/>
verifyText
verifyCheckbox
etc
</steps>
</webtest>
</target>
</project>
All my files are setup similar to above.
Note that I downloaded WebTest from the Canoo web site and have been using
it as downloaded with no changes. i.e. the webtest.xml file being used is
the one downloaded from the web.
One other point, I am using 2 seperate directories:
WebTest -> contains all the WebTest files downloaded from the web
IainTest -> This folder contains all my test suites and I run "webtest" from
here
thanks!
Thomas Klein-10 wrote:
>
> This is strange... I somehow get the feeling there is something fishy
> about your suites... Would you mind (if data privacy allows) to zip the
> entire structure and send it over so I can have a look at it? Thanks,
> Cheers,
>
> Thomas
>
>
> Thomas Klein
>
> Senior Associate, QA | Sapient
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> On Behalf Of Iain_10
> Sent: Wednesday, February 10, 2010 4:30 PM
> To: [email protected]
> Subject: [Webtest] how to run multiple test suites
>
>
> Hi,
>
> I am still having problems running a collection of test suites. All my
> test
> suites run fine
> individually but I am getting errors when trying to run them together.
>
> I have the following setup:
>
> Project Dir
> tests dir
> Feature dir
> testsX dir
> tests_1.xml
> testsY dir
> tests_2.xml
> testsZ dir
> tests_3.xml
>
> I have the following in my allTests.xml file located in the tests dir:
>
> <ant dir="Feature dir/testsX dir" antfile="tests1.xml"/>
> <ant dir="Feature dir/testsY dir" antfile="tests2.xml"/>
> <ant dir="Feature dir/testsZ dir" antfile="tests3.xml"/>
>
> If I try to run these tests together I get the following error:
>
> java.util.concurrent.RejectedExecutionException
>
> However if I run anyone of the suites above on its own, it runs fine.
>
> I'd like to be able to run all 3 suites together and get 1 report file
> generated by
> WebTest.
> Is this possible?
> Any idea's on how I might do this?
>
> thanks!
> --
> View this message in context:
> http://old.nabble.com/how-to-run-multiple-test-suites-tp27532940p27532940.html
> Sent from the WebTest mailing list archive at Nabble.com.
>
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
>
>
--
View this message in context:
http://old.nabble.com/how-to-run-multiple-test-suites-tp27532940p27544172.html
Sent from the WebTest mailing list archive at Nabble.com.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest