Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sometimes runs dependent methods in a single class on different threads, even given parallel="classes" #416

Open
dhemery opened this issue Aug 1, 2013 · 1 comment

Comments

@dhemery
Copy link

dhemery commented Aug 1, 2013

According to the TestNG documentation section 5.10.2, specifying parallel="classes" should result in all the methods of a given class running in the same thread. TestNG 6.8.5 does not appear to satisfy this feature.

TestNG Parallel Demo is a github project that demonstrates the problem.

This project consists of seven test classes. Each class has two methods, one of which depends on the other. Each method records and prints the name of its thread. After each class runs, an @afterclass method prints the list of threads used to run the class's methods.

The testng.xml file specifies that the tests are to be run in parallel by class, using three threads.

As the printout on the project's README demonstrates (see the link, above), for some classes, the two test methods run on different threads.

@dmitryyu
Copy link

dmitryyu commented Feb 4, 2016

+1. the issue is reproduced for TestNG 6.9.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants