[testng-dev] BUG: @Test.dependsOnMethods clobbers @Test.singleThreaded

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[testng-dev] BUG: @Test.dependsOnMethods clobbers @Test.singleThreaded

Tim Boemker
The documentation for @Test.singleThreaded says this:

        If set to true, all the methods on this test class are guaranteed to run in the same thread,
        even if the tests are currently being run with parallel="true". This attribute can only be
        used at the class level and will be ignored if used at the method level.

If @Test.dependsOnMethods is set on a method in a class with @Test.singleThreaded=true, methods may be run in different threads.

--
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/testng-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

TestNGBug.zip (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

[testng-dev] Re: BUG: @Test.dependsOnMethods clobbers @Test.singleThreaded

Attila Nyilas
I have the same issue as you. When parallel="classes" is set and I not use dependsOnMethods, every method in the same class run in the same thread. But with dependsOnMethods, they run in different threads.

--
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/testng-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.