Wow! Thank you! We will get this and test it! I'll let you know how it goes!
-adam
--
Adam Feuer
afe...@amazon.com 206-266-4726
Amazon.com Enterprise Commerce Services
> -----Original Message-----
> From: testng...@googlegroups.com
> [mailto:testng...@googlegroups.com] On Behalf Of Cédric Beust ?
> Sent: Monday, August 14, 2006 1:12 PM
> To: testng...@googlegroups.com
> Subject: [testng-users] New feature: @Test(sequential = true)
>
> I just implemented the feature we discussed:
>
> @Test(sequential = true)
>
> or
>
> /**
> * @testng.test sequential = "true"
> */
>
> Documentation:
>
> /**
> * If set to true, all the methods on this test class are
> guaranteed to run
> * sequentially, even if the tests are currently being run
> with parallel="true".
> *
> * This attribute can only be used at the class level and
> it will be ignored
> * if used at the method level.
> */
>
> Please download TestNG 5.1 beta
> <http://testng.org/testng-5.1beta.zip> to try it and let me
> know how it works for you!
>
> --
> Cdric
>
> >
>
>
When I have "junit=true" set in my testng.xml, this new feature wouln't have any impact or apply at all right since at suite level parallel="false"..right?.
Thanks,
-BK-
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=40224&messageID=80093#80093
We tried it out- it works as we want it to. We are converting all our tests over to it now, and will report back on the results. Thank you very very much! :-) This helps us a lot- by ensuring consistent test results without brittle "depends-on" ordering annotations.
By the way, regarding the annotation "sequential"... or "atomic"... another name Chris Ahlering, one of our developers suggested was "serial". He thought this implied that you could not set the order, but that it would be non-overlapping.
cheers
Cedric,
We tried it out- it works as we want it to. We are converting all our tests over to it now, and will report back on the results. Thank you very very much! :-) This helps us a lot- by ensuring consistent test results without brittle "depends-on" ordering annotations.
Cédric,
When you say that "all the sequential methods are put in the same thread", do you mean that all the methods from one test class go into one thread, and that all the methods from another test class go into another thread, and so on? Or do you mean that all the sequential methods for all the test classes go into one thread?
If it's the latter, it defeats the parallelization- all our test classes (~300 of them) will use the sequential tag, and we would like to run them in parallel!