[ https://jira.codehaus.org/browse/SUREFIRE-1082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=353490#comment-353490 ]
Bayley Gaillard commented on SUREFIRE-1082: ------------------------------------------- Sorry it took so long to get back to you, work has been crazy! I've created a very simple Remote Webdriver project to demonstrate the issue. I ran it first without the parallel feature enabled, then with it set to Classes. I created two test classes that inherit from a base class, similar to my actual project setup, running with parameterization, but I am seeing no evidence of parallel execution. I have zipped and attached the project. This is the log first without, then with parallel turned on: ------------------------------------------------------- T E S T S ------------------------------------------------------- Running sample.classATest 10:25:57: Launched instance of IE 10:25:57: Test A passed 10:26:01: Launched instance of Chrome 10:26:01: Test A passed 10:26:05: Launched instance of Firefox 10:26:05: Test A passed Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 12.273 sec Running sample.classBTest 10:26:09: Launched instance of IE 10:26:09: Test B passed 10:26:13: Launched instance of Chrome 10:26:13: Test B passed 10:26:17: Launched instance of Firefox 10:26:17: Test B passed Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 12.02 sec Results : Tests run: 6, Failures: 0, Errors: 0, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] --- maven-surefire-plugin:2.17:test (default-test) @ sample --- [INFO] Surefire report directory: C:\Users\bgreen\workspace\sample\target\surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running sample.classATest 10:30:57: Launched instance of IE 10:30:57: Test A passed 10:31:01: Launched instance of Chrome 10:31:01: Test A passed 10:31:05: Launched instance of Firefox 10:31:05: Test A passed Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 12.368 sec - in sample.classATest Running sample.classBTest 10:31:09: Launched instance of IE 10:31:09: Test B passed 10:31:13: Launched instance of Chrome 10:31:13: Test B passed 10:31:17: Launched instance of Firefox 10:31:17: Test B passed Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.903 sec - in sample.classBTest Results : Tests run: 6, Failures: 0, Errors: 0, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ > Parallelization does not work as expected when using jUnit Parameterized > ------------------------------------------------------------------------ > > Key: SUREFIRE-1082 > URL: https://jira.codehaus.org/browse/SUREFIRE-1082 > Project: Maven Surefire > Issue Type: Bug > Components: Maven Surefire Plugin > Reporter: Bayley Gaillard > Assignee: Tibor Digana > Fix For: 2.18 > > Attachments: sample.zip > > > I am using jUnit's Parameterized annotation on some Selenium tests to specify > the browsers they should run with. I am also using SureFire's new parallel > parameter (set to "classes") to try and run them in parallel. However, this > is nerfing the parallelization. > Let's say I have my parameter list set to Firefox and Chrome, and I have 10 > test classes. When I execute the tests with Maven, I'm seeing one Firefox > window and one Chrome window appear on my remote server at a time. I expected > to see 20 windows, 10 Firefox and 10 Chrome: one for each test class with > each parameter. -- This message was sent by Atlassian JIRA (v6.1.6#6162)