Hi Lain, The problem lies in your lainReport.xml. Your actual test files should not import webtest.xml or invoke the wt.full target.
Try replacing your lainReport.xml (and update your lainOtherReport.xml to
match) as follows:
<project name="IainReport" basedir="." default="tests">
<target name="tests">
<webtest name="Iain Report Overall">
<config saveresponse="true"/>
<steps>
<invoke url="webpage"/>
verifyText
verifyCheckbox
etc
</steps>
</webtest>
</target>
</project>
Cheers,
John Spann
Software Engineer
Citrix Online | 6500 Hollister Avenue | Goleta, CA 93117
T: +1 805 690 3489 | M: +1 805 729 0008
[email protected]<x-msg://29/[email protected]>
http://www.citrixonline.com<http://www.citrixonline.com/>
[cid:[email protected]]
Access Your PC From Anywhere: www.gotomypc.com<http://www.gotomypc.com/>
Online Meetings Made Easy: www.gotomeeting.com<http://www.gotomeeting.com/>
Remote Support Made Easy: www.gotoassist.com<http://www.gotoassist.com/>
Webinars Made Easy: www.gotowebinar.com<http://www.gotowebinar.com/>
On Feb 11, 2010, at 1:10 AM, Iain_10 wrote:
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]>
[mailto:[email protected]]
On Behalf Of Iain_10
Sent: Wednesday, February 10, 2010 4:30 PM
To: [email protected]<mailto:[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<http://Nabble.com>.
_______________________________________________
WebTest mailing list
[email protected]<mailto:[email protected]>
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]<mailto:[email protected]>
http://lists.canoo.com/mailman/listinfo/webtest
--
View this message in context:
http://old.nabble.com/how-to-run-multiple-test-suites-tp27532940p27544173.html
Sent from the WebTest mailing list archive at Nabble.com<http://Nabble.com>.
_______________________________________________
WebTest mailing list
[email protected]<mailto:[email protected]>
http://lists.canoo.com/mailman/listinfo/webtest
<<inline: image001.png>>

