Junit Parallel Execution - Query | Selenium Forum
V
Vinay Krishna Posted on 10/08/2020

Hello,

 

I am trying Paralell execution in my Junit framework. But 1 browser closes immediatley out of the 2 browsers opened. What can be the cause ?

<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.0</version>
<configuration>
<parallel>methods</parallel>
<threadCount>2</threadCount>

@Test Method calls another method which is also in the same class file.

 

Let me know if you need any additional details to figure out the issue.


A
Ashish Thakur Replied on 15/08/2020

Does it throw any error while closing?

We recommend using TestNG

Its better than Junit and is used more in industry