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 just run 1 of the suites above, 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!
Iain_10 wrote:
>
> Hi,
>
> Thanks for the replies!
>
> I have setup my tests so that both .xml files are called from seperate
> directories.
>
> However I have a problem creating the Web Test Result Report. I get the
> following
> error when executing myTest2.xml:
>
> java.util.concurrent.RejectedExecutionException
>
> It looks as if the tests ran ok (i.e. myTest1.xml and myTest2.xml) but
> there seems to be an issue with the report generation.
>
> When viewing the WebTest report in my web browser I just get the
> following:
>
> WebTest
> WebTest Test Report
>
> Any ideas as to what might be wrong?
>
> thanks!
>
> Running tests:
>
>
> Thomas Klein-10 wrote:
>>
>> Hi there,
>>
>> I found it very helpful to use the "dir" attribute along with the
>> "antfile". I'll explain below.
>>
>> E.g., we have one parent folder that has a build.xml and a webtest xml
>> file that holds references to all tests to be executed.
>> These tests (separate files) are located in subdirectories of a sibling
>> folder of the "parent" folder, like:
>>
>> - parent_dir (we run "webtest.sh" from here)
>> -- build.xml
>> -- alltests.xml
>> - testcases_dir
>> -- testtopic_1
>> --- test1.xml
>> --- test2.xml
>> -- testtopic_2
>> --- test3.xml
>> --- test4.xml
>>
>> What we wanted to have is a SINGLE big report in ONE directory to hold
>> all results.
>> The easiest way for us to do this was to use (in the "alltests.xml") the
>> following notation:
>>
>> <ant antfile="test4.xml" dir="../testcases_dir/testtopic_2" />
>>
>> Okay, you might say, "this is the same like"...:
>>
>> <ant antfile="../testcases_dir/testtopic_2/test4.xml" />
>>
>> ...is it? NOPE! I consider this an IMPORTANT fact which is yet little
>> mentioned.
>> ( Not everyone who is testing software knows the nuts and bolts of ANT by
>> heart! ANT is a developer tool. Keep this in mind. )
>>
>> The way we organized our test directories enables us to re-use the same
>> test4.xml file from inside its containing folder and run it there,
>> creating a dedicated "results" folder for the test only in the same
>> directory. If we want / need that.
>>
>> Hope this helps (especially the "noobs" like me... Or like I was some
>> weeks ago)
>>
>> Thomas Klein
>>
>> Senior Associate, QA | Sapient
>>
>> -----Original Message-----
>> From: [email protected]
>> [mailto:[email protected]] On Behalf Of wing-tung Leung
>> Sent: Thursday, February 04, 2010 5:41 PM
>> To: [email protected]; Iain_10
>> Subject: Re: [Webtest] Organising Tests for WebTest
>>
>> On Thu, Feb 4, 2010 at 4:40 PM, Iain_10 <[email protected]> wrote:
>>> I am looking at the best way to organise my Web Tests.
>>
>> I guess there is no "BEST" way to organize your tests. It depends on
>> your amount of tests scripts, and your test scenario's.
>>
>> We have rather a limited set of test files (roughly 20), and we store
>> them all inside a single "tests" directory. Names of the file either
>> refer to the tested functionality, or to the issue ID from the bug
>> tracking system.
>>
>>> But it doesn't seem to execute the tests in myTest2.xml.
>>
>> I guess you miss a reference to "myTest2.xml".
>>
>> In our case, the global "build.xml" contains the property
>> "wt.testInWork" referring to "tests/allests.xml". The latter file
>> contains a list of all test files, each one listed with separate <ant>
>> tag. Not really advanced, I suggest that you get it working first, and
>> grow into a more formal structure when you feel the need.
>>
>> Example content "allTests.xml":
>>
>> <project default="test">
>> <target name="test" description="runs all the tests">
>> <ant antfile="test1.xml"/>
>> <ant antfile="test2.xml"/>
>> <ant antfile="test3.xml"/>
>> </target>
>> </project>
>>
>>
>> BTW, please quote mails inline, and enter your remarks inline is as
>> well. Makes following threads much easier.
>>
>> Regards,
>>
>> Tung
>> _______________________________________________
>> 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/Organising-Tests-for-WebTest-tp27453235p27513620.html
Sent from the WebTest mailing list archive at Nabble.com.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest