Tests from all the classes are started with parallel="classes" attribute

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

Tests from all the classes are started with parallel="classes" attribute

Bartek Florczak
Hello! 

I create some WebDriver Tests. My test suite looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="All Test Suite" data-provider-thread-count="1">
    <test verbose="2" name="name" parallel="classes" thread-count="3">
        <classes>
            <class name="class1"/>
            <class name="class2"/>
            <class name="class3"/>
            <class name="class4"/>
            <class name="class5"/>
            <class name="class6"/>
        </classes>
    </test>
</suite>

Each test class is a subclass of some superclass. 
In BeforeClass method of the superclass, I run:
@BeforeClass(alwaysRun = true)
public void setUp() {
   driver = new Browser(getDriver());
}


And AfterClasss:
@AfterClass(alwaysRun = true)
public void tearDown() {
   if (driver != null) {
      logger.debug("Shutting down browser...");
      driver.close();
      driver.quit();
   }
}

Browser object is a WebDriver Wrapper class. 

In the getDriver method, I do:
private static final ThreadLocal<WebDriver> driverThread = new ThreadLocal<>();

public static WebDriver getDriver() {
   synchronized (DriverFactory.class) {
      driverThread.set(getDriver(Collections.emptyMap()));
      return driverThread.get();
   }
}

"getDriver()" is a static method with a synchronized body providing given WebDriver implementation.

Most of the @Test methods are annotated with the DataProvider. 
When I run my tests, after some time I get the number of browsers equal to the number of the classes in the suite's test tag:








I would expect that only 3 classes will be run in the same class - after all the tests from one class are run, next class is started. 
What am I doing wrong? If nothing, how can I achieve my expected behaviour? 

I use TestNG 6.14.2 with Maven 3 as a building tool and Java 8.

Many thanks, 
Bartek

--
You received this message because you are subscribed to the Google Groups "testng-users" 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 https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Tests from all the classes are started with parallel="classes" attribute

Bartek Florczak
A little update from my side - this might be a bug in the testNG itself. 
I have 4 test classes, where the next test depends on the previous ones:

@Test
public void create() {
}

@Test(dependsOnMethods = "create")
public void update() {
}

@Test(dependsOnMethods = {"create", "update"})
public void duplicate() {
}

@Test(dependsOnMethods = {"create", "update", "duplicate"})
public void delete() {
}


It looks like, all the weirdness happens when those 4 classes are being executed - after the first method the browsers are frozen, and the testNG proceeds to the next classes. The other, depending methods are invoked after all the other classes are invoked! 

--
You received this message because you are subscribed to the Google Groups "testng-users" 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 https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Tests from all the classes are started with parallel="classes" attribute

Bartek Florczak
Nope - I removed those classes from the suite and the same thing happens... :/

--
You received this message because you are subscribed to the Google Groups "testng-users" 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 https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Tests from all the classes are started with parallel="classes" attribute

Cédric Beust ♔-2
What makes you think this is a TestNG bug? Are you seeing an incorrect test method ordering?


-- 
Cédric


On Sat, Mar 31, 2018 at 2:52 PM, Bartek Florczak <[hidden email]> wrote:
Nope - I removed those classes from the suite and the same thing happens... :/

--
You received this message because you are subscribed to the Google Groups "testng-users" 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 https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-users" 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 https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Tests from all the classes are started with parallel="classes" attribute

Krishnan Mahadevan

@Bartek,

It actually may not be TestNG that’s freezing but your webdriver instantiation by itself may be freezing because your machine perhaps is not able to take the load (or) due to incompatibilities between your browser and your server binary etc.,

What happens when you exclude Selenium from the equation?

 

Please help create and share a sample that only uses a bunch of System.out.println() statements, and which we can run to reproduce whatever issue you are talking about.

 

 

Thanks & Regards

Krishnan Mahadevan

 

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/

Reply-To: <[hidden email]>
Date: Sunday, April 1, 2018 at 7:51 AM
To: <[hidden email]>
Subject: Re: [testng-users] Re: Tests from all the classes are started with parallel="classes" attribute

 


-- 

Cédric

 

On Sat, Mar 31, 2018 at 2:52 PM, Bartek Florczak <[hidden email]> wrote:

Nope - I removed those classes from the suite and the same thing happens... :/

--
You received this message because you are subscribed to the Google Groups "testng-users" 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
https://groups.google.com/group/testng-users.
For more options, visit
https://groups.google.com/d/optout.

 

--
You received this message because you are subscribed to the Google Groups "testng-users" 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
https://groups.google.com/group/testng-users.
For more options, visit
https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-users" 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 https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Tests from all the classes are started with parallel="classes" attribute

Bartek Florczak
First of all - thanks for replying!

So, what makes me think it's a bug in the testNG? I'm still not sure if my expectations are valid ;) 

I attach "parallel" file, which is the output report generated by the IntelliJ. 
Also, I attach the code I use, without any WebDriver instantiation. Basically, it's the whole test structure - all the tests and providers without any body - just some logging. 

For me what happens ~ "class5" is not expected behaviour - some classes are skipped, and the other classes are started in the meantime. If You were creating some browser instances in the @Test body, it would be even more clear ;) 

Also attaching suite XML:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="All Test Suite">
    <test verbose="2" name="name" parallel="classes" thread-count="3">
        <classes>
            <class name="testngparallel.Class1"/>
            <class name="testngparallel.package1.Class2"/>
            <class name="testngparallel.package1.Class3"/>
            <class name="testngparallel.package1.Class4"/>
            <class name="testngparallel.package1.Class5"/>
            <class name="testngparallel.package2.Class6"/>
            <class name="testngparallel.package2.Class7"/>
            <class name="testngparallel.package2.Class8"/>
            <class name="testngparallel.package2.Class9"/>
            <class name="testngparallel.package3.Class10"/>
            <class name="testngparallel.package4.Class11"/>
            <class name="testngparallel.package4.Class12"/>
        </classes>
    </test>
</suite>

Hope now You will be able at least confirm if I am mistaking, or I provided the proof of bug ;)

W dniu niedziela, 1 kwietnia 2018 06:35:42 UTC+2 użytkownik Krishnan Mahadevan napisał:

@Bartek,

It actually may not be TestNG that’s freezing but your webdriver instantiation by itself may be freezing because your machine perhaps is not able to take the load (or) due to incompatibilities between your browser and your server binary etc.,

What happens when you exclude Selenium from the equation?

 

Please help create and share a sample that only uses a bunch of System.out.println() statements, and which we can run to reproduce whatever issue you are talking about.

 

 

Thanks & Regards

Krishnan Mahadevan

 

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

My Scribblings @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">http://rationaleemotions.wordpress.com/

Reply-To: <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="G9AUySCMAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">testng...@...>
Date: Sunday, April 1, 2018 at 7:51 AM
To: <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="G9AUySCMAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">testng...@...>
Subject: Re: [testng-users] Re: Tests from all the classes are started with parallel="classes" attribute

 


-- 

Cédric

 

On Sat, Mar 31, 2018 at 2:52 PM, Bartek Florczak <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="G9AUySCMAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">zaworro@...> wrote:

Nope - I removed those classes from the suite and the same thing happens... :/

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="G9AUySCMAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">testng-users+unsubscribe@googlegroups.com.
To post to this group, send email to
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="G9AUySCMAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">testng-users@....
Visit this group at
<a href="https://groups.google.com/group/testng-users" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;">https://groups.google.com/group/testng-users.
For more options, visit
<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

 

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="G9AUySCMAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">testng-users+unsubscribe@googlegroups.com.
To post to this group, send email to
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="G9AUySCMAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">testng-users@....
Visit this group at
<a href="https://groups.google.com/group/testng-users" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;">https://groups.google.com/group/testng-users.
For more options, visit
<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-users" 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 https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

parallel (146K) Download Attachment
testngparallel.zip (14K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Tests from all the classes are started with parallel="classes" attribute

Krishnan Mahadevan

Bartek,

I was hoping that you would provide with something like this:

 

  1. A zip version of your standalone project, that I can just download and run, instead of classes, because I still would need to get the classes, import it into a project etc., The zip would contain the following:
    1. A build tool based project [ Maven/Ant/Gradle] that captures all the versions of the various artifacts that you are using.. [Please ensure that you are working with the latest released version of TestNG viz., 6.14.3. If you are using an earlier version, please upgrade and try using the latest version]
    2. All the involved classes [ which you already have shared. You just need to include it]
    3. The testng suite xml file [ which you provided in your mail. You just need to include it]
  2. The expected output (since in your case, you don’t have any errors etc.,)

 

That way, it would be easier for us to basically dig in and find the root cause.

 

Thanks & Regards

Krishnan Mahadevan

 

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/

Reply-To: <[hidden email]>
Date: Monday, April 2, 2018 at 2:31 AM
To: testng-users <[hidden email]>
Subject: Re: [testng-users] Re: Tests from all the classes are started with parallel="classes" attribute

 

First of all - thanks for replying!

 

So, what makes me think it's a bug in the testNG? I'm still not sure if my expectations are valid ;) 


I attach "parallel" file, which is the output report generated by the IntelliJ. 

Also, I attach the code I use, without any WebDriver instantiation. Basically, it's the whole test structure - all the tests and providers without any body - just some logging. 

 

For me what happens ~ "class5" is not expected behaviour - some classes are skipped, and the other classes are started in the meantime. If You were creating some browser instances in the @Test body, it would be even more clear ;) 

 

Also attaching suite XML:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE
suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite
name="All Test Suite">
    <test
verbose="2" name="name" parallel="classes" thread-count="3">
        <classes>
            <class
name="testngparallel.Class1"/>
            <class
name="testngparallel.package1.Class2"/>
            <class
name="testngparallel.package1.Class3"/>
            <class
name="testngparallel.package1.Class4"/>
            <class
name="testngparallel.package1.Class5"/>
            <class
name="testngparallel.package2.Class6"/>
            <class
name="testngparallel.package2.Class7"/>
            <class
name="testngparallel.package2.Class8"/>
            <class
name="testngparallel.package2.Class9"/>
            <class
name="testngparallel.package3.Class10"/>
            <class
name="testngparallel.package4.Class11"/>
            <class
name="testngparallel.package4.Class12"/>
        </classes>
    </test>
</suite>

 

Hope now You will be able at least confirm if I am mistaking, or I provided the proof of bug ;)


W dniu niedziela, 1 kwietnia 2018 06:35:42 UTC+2 użytkownik Krishnan Mahadevan napisał:

@Bartek,

It actually may not be TestNG that’s freezing but your webdriver instantiation by itself may be freezing because your machine perhaps is not able to take the load (or) due to incompatibilities between your browser and your server binary etc.,

What happens when you exclude Selenium from the equation?

 

Please help create and share a sample that only uses a bunch of System.out.println() statements, and which we can run to reproduce whatever issue you are talking about.

 

 

Thanks & Regards

Krishnan Mahadevan

 

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/

Reply-To: <<a href="javascript:" target="_blank">testng...@...>
Date: Sunday, April 1, 2018 at 7:51 AM
To: <
<a href="javascript:" target="_blank">testng...@...>
Subject: Re: [testng-users] Re: Tests from all the classes are started with parallel="classes" attribute

 


-- 

Cédric

 

On Sat, Mar 31, 2018 at 2:52 PM, Bartek Florczak <<a href="javascript:" target="_blank">zaworro@...> wrote:

Nope - I removed those classes from the suite and the same thing happens... :/

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
<a href="javascript:" target="_blank">testng-users+unsubscribe@....
To post to this group, send email to
<a href="javascript:" target="_blank">testng-users@....
Visit this group at
https://groups.google.com/group/testng-users.
For more options, visit
https://groups.google.com/d/optout.

 

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
<a href="javascript:" target="_blank">testng-users+unsubscribe@....
To post to this group, send email to
<a href="javascript:" target="_blank">testng-users@....
Visit this group at
https://groups.google.com/group/testng-users.
For more options, visit
https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-users" 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
https://groups.google.com/group/testng-users.
For more options, visit
https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-users" 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 https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Tests from all the classes are started with parallel="classes" attribute

Bartek Florczak
HI! 
I made some github repo, ready to pull: 
https://github.com/baflQA/testNG_parallel_debug

My expected output is:
Tests of 3 classes are executed in the same time. So - when I run my testng suite file, classes 1, 2, 3 are executed. After one of the classes is finished, class 4 is executed And so on, till till the end of the class 12, which should be started as the last one. If some class contains tests depending on the previous test(s) from the same class, all the tests from this class are executed before the next class is started.

W dniu poniedziałek, 2 kwietnia 2018 04:26:55 UTC+2 użytkownik Krishnan Mahadevan napisał:

Bartek,

I was hoping that you would provide with something like this:

 

  1. A zip version of your standalone project, that I can just download and run, instead of classes, because I still would need to get the classes, import it into a project etc., The zip would contain the following:
    1. A build tool based project [ Maven/Ant/Gradle] that captures all the versions of the various artifacts that you are using.. [Please ensure that you are working with the latest released version of TestNG viz., 6.14.3. If you are using an earlier version, please upgrade and try using the latest version]
    2. All the involved classes [ which you already have shared. You just need to include it]
    3. The testng suite xml file [ which you provided in your mail. You just need to include it]
  2. The expected output (since in your case, you don’t have any errors etc.,)

 

That way, it would be easier for us to basically dig in and find the root cause.

 

Thanks & Regards

Krishnan Mahadevan

 

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

My Scribblings @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">http://rationaleemotions.wordpress.com/

Reply-To: <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="xyBnSa7TAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">testng...@...>
Date: Monday, April 2, 2018 at 2:31 AM
To: testng-users <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="xyBnSa7TAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">testng...@...>
Subject: Re: [testng-users] Re: Tests from all the classes are started with parallel="classes" attribute

 

First of all - thanks for replying!

 

So, what makes me think it's a bug in the testNG? I'm still not sure if my expectations are valid ;) 


I attach "parallel" file, which is the output report generated by the IntelliJ. 

Also, I attach the code I use, without any WebDriver instantiation. Basically, it's the whole test structure - all the tests and providers without any body - just some logging. 

 

For me what happens ~ "class5" is not expected behaviour - some classes are skipped, and the other classes are started in the meantime. If You were creating some browser instances in the @Test body, it would be even more clear ;) 

 

Also attaching suite XML:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE
suite SYSTEM "<a href="http://testng.org/testng-1.0.dtd" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftestng.org%2Ftestng-1.0.dtd\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFHihXzQ1YlwcxcDehnw97TuniFLA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftestng.org%2Ftestng-1.0.dtd\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFHihXzQ1YlwcxcDehnw97TuniFLA&#39;;return true;">http://testng.org/testng-1.0.dtd">
<suite
name="All Test Suite">
    <test
verbose="2" name="name" parallel="classes" thread-count="3">
        <classes>
            <class
name="testngparallel.Class1"/>
            <class
name="testngparallel.package1.Class2"/>
            <class
name="testngparallel.package1.Class3"/>
            <class
name="testngparallel.package1.Class4"/>
            <class
name="testngparallel.package1.Class5"/>
            <class
name="testngparallel.package2.Class6"/>
            <class
name="testngparallel.package2.Class7"/>
            <class
name="testngparallel.package2.Class8"/>
            <class
name="testngparallel.package2.Class9"/>
            <class
name="testngparallel.package3.Class10"/>
            <class
name="testngparallel.package4.Class11"/>
            <class
name="testngparallel.package4.Class12"/>
        </classes>
    </test>
</suite>

 

Hope now You will be able at least confirm if I am mistaking, or I provided the proof of bug ;)


W dniu niedziela, 1 kwietnia 2018 06:35:42 UTC+2 użytkownik Krishnan Mahadevan napisał:

@Bartek,

It actually may not be TestNG that’s freezing but your webdriver instantiation by itself may be freezing because your machine perhaps is not able to take the load (or) due to incompatibilities between your browser and your server binary etc.,

What happens when you exclude Selenium from the equation?

 

Please help create and share a sample that only uses a bunch of System.out.println() statements, and which we can run to reproduce whatever issue you are talking about.

 

 

Thanks & Regards

Krishnan Mahadevan

 

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

My Scribblings @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">http://rationaleemotions.wordpress.com/

Reply-To: <[hidden email]>
Date: Sunday, April 1, 2018 at 7:51 AM
To: <
[hidden email]>
Subject: Re: [testng-users] Re: Tests from all the classes are started with parallel="classes" attribute

 


-- 

Cédric

 

On Sat, Mar 31, 2018 at 2:52 PM, Bartek Florczak <[hidden email]> wrote:

Nope - I removed those classes from the suite and the same thing happens... :/

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
testng-users+unsubscribe@googlegroups.com.
To post to this group, send email to
[hidden email].
Visit this group at
<a href="https://groups.google.com/group/testng-users" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;">https://groups.google.com/group/testng-users.
For more options, visit
<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

 

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
testng-users+unsubscribe@googlegroups.com.
To post to this group, send email to
[hidden email].
Visit this group at
<a href="https://groups.google.com/group/testng-users" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;">https://groups.google.com/group/testng-users.
For more options, visit
<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="xyBnSa7TAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">testng-users+unsubscribe@googlegroups.com.
To post to this group, send email to
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="xyBnSa7TAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">testng-users@....
Visit this group at
<a href="https://groups.google.com/group/testng-users" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;">https://groups.google.com/group/testng-users.
For more options, visit
<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-users" 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 https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Tests from all the classes are started with parallel="classes" attribute

Bartek Florczak
I also pushed the report from the IntelliJ, showing the order of the test. See, that some classes (especially Class5) are run out of order - with WebDriver, as a result, I'm experiencing a lot of browsers opened and waiting for the execution.

W dniu poniedziałek, 2 kwietnia 2018 22:04:51 UTC+2 użytkownik Bartek Florczak napisał:
HI! 
I made some github repo, ready to pull: 
<a href="https://github.com/baflQA/testNG_parallel_debug" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FbaflQA%2FtestNG_parallel_debug\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGK-dz7TB4xyIU-mXelxJfF0CaaoA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FbaflQA%2FtestNG_parallel_debug\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGK-dz7TB4xyIU-mXelxJfF0CaaoA&#39;;return true;">https://github.com/baflQA/testNG_parallel_debug

My expected output is:
Tests of 3 classes are executed in the same time. So - when I run my testng suite file, classes 1, 2, 3 are executed. After one of the classes is finished, class 4 is executed And so on, till till the end of the class 12, which should be started as the last one. If some class contains tests depending on the previous test(s) from the same class, all the tests from this class are executed before the next class is started.

W dniu poniedziałek, 2 kwietnia 2018 04:26:55 UTC+2 użytkownik Krishnan Mahadevan napisał:

Bartek,

I was hoping that you would provide with something like this:

 

  1. A zip version of your standalone project, that I can just download and run, instead of classes, because I still would need to get the classes, import it into a project etc., The zip would contain the following:
    1. A build tool based project [ Maven/Ant/Gradle] that captures all the versions of the various artifacts that you are using.. [Please ensure that you are working with the latest released version of TestNG viz., 6.14.3. If you are using an earlier version, please upgrade and try using the latest version]
    2. All the involved classes [ which you already have shared. You just need to include it]
    3. The testng suite xml file [ which you provided in your mail. You just need to include it]
  2. The expected output (since in your case, you don’t have any errors etc.,)

 

That way, it would be easier for us to basically dig in and find the root cause.

 

Thanks & Regards

Krishnan Mahadevan

 

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

My Scribblings @ <a href="http://wakened-cognition.blogspot.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">http://rationaleemotions.wordpress.com/

Reply-To: <[hidden email]>
Date: Monday, April 2, 2018 at 2:31 AM
To: testng-users <[hidden email]>
Subject: Re: [testng-users] Re: Tests from all the classes are started with parallel="classes" attribute

 

First of all - thanks for replying!

 

So, what makes me think it's a bug in the testNG? I'm still not sure if my expectations are valid ;) 


I attach "parallel" file, which is the output report generated by the IntelliJ. 

Also, I attach the code I use, without any WebDriver instantiation. Basically, it's the whole test structure - all the tests and providers without any body - just some logging. 

 

For me what happens ~ "class5" is not expected behaviour - some classes are skipped, and the other classes are started in the meantime. If You were creating some browser instances in the @Test body, it would be even more clear ;) 

 

Also attaching suite XML:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE
suite SYSTEM "<a href="http://testng.org/testng-1.0.dtd" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftestng.org%2Ftestng-1.0.dtd\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFHihXzQ1YlwcxcDehnw97TuniFLA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftestng.org%2Ftestng-1.0.dtd\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFHihXzQ1YlwcxcDehnw97TuniFLA&#39;;return true;">http://testng.org/testng-1.0.dtd">
<suite
name="All Test Suite">
    <test
verbose="2" name="name" parallel="classes" thread-count="3">
        <classes>
            <class
name="testngparallel.Class1"/>
            <class
name="testngparallel.package1.Class2"/>
            <class
name="testngparallel.package1.Class3"/>
            <class
name="testngparallel.package1.Class4"/>
            <class
name="testngparallel.package1.Class5"/>
            <class
name="testngparallel.package2.Class6"/>
            <class
name="testngparallel.package2.Class7"/>
            <class
name="testngparallel.package2.Class8"/>
            <class
name="testngparallel.package2.Class9"/>
            <class
name="testngparallel.package3.Class10"/>
            <class
name="testngparallel.package4.Class11"/>
            <class
name="testngparallel.package4.Class12"/>
        </classes>
    </test>
</suite>

 

Hope now You will be able at least confirm if I am mistaking, or I provided the proof of bug ;)


W dniu niedziela, 1 kwietnia 2018 06:35:42 UTC+2 użytkownik Krishnan Mahadevan napisał:

@Bartek,

It actually may not be TestNG that’s freezing but your webdriver instantiation by itself may be freezing because your machine perhaps is not able to take the load (or) due to incompatibilities between your browser and your server binary etc.,

What happens when you exclude Selenium from the equation?

 

Please help create and share a sample that only uses a bunch of System.out.println() statements, and which we can run to reproduce whatever issue you are talking about.

 

 

Thanks & Regards

Krishnan Mahadevan

 

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

My Scribblings @ <a href="http://wakened-cognition.blogspot.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">http://rationaleemotions.wordpress.com/

Reply-To: <[hidden email]>
Date: Sunday, April 1, 2018 at 7:51 AM
To: <
[hidden email]>
Subject: Re: [testng-users] Re: Tests from all the classes are started with parallel="classes" attribute

 


-- 

Cédric

 

On Sat, Mar 31, 2018 at 2:52 PM, Bartek Florczak <[hidden email]> wrote:

Nope - I removed those classes from the suite and the same thing happens... :/

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
testng-users+unsubscribe@googlegroups.com.
To post to this group, send email to
[hidden email].
Visit this group at
<a href="https://groups.google.com/group/testng-users" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;">https://groups.google.com/group/testng-users.
For more options, visit
<a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

 

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
testng-users+unsubscribe@googlegroups.com.
To post to this group, send email to
[hidden email].
Visit this group at
<a href="https://groups.google.com/group/testng-users" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;">https://groups.google.com/group/testng-users.
For more options, visit
<a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
testng-users+unsubscribe@googlegroups.com.
To post to this group, send email to
[hidden email].
Visit this group at
<a href="https://groups.google.com/group/testng-users" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;">https://groups.google.com/group/testng-users.
For more options, visit
<a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-users" 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 https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Tests from all the classes are started with parallel="classes" attribute

Krishnan Mahadevan
In reply to this post by Bartek Florczak

Bartek,

It looks like you are mixing “independent” (Methods that can run independently) with “dependent” (methods that depend on some other method to be successfully executed before they can be executed).

 

TestNG by design first executes independent methods and after that only it executes dependent methods. And when it picks up dependent methods, there’s no guarantee that TestNG is going to be running them in the thread wherein its independent methods ran.

 

Its not a bug in TestNG.

 

So a ThreadLocal solution is perhaps not going to work when you are dealing with methods that have dependencies across.

 

You would need to consider another alternative to have your webdriver instance shared across test methods (easiest is to basically avoid test methods sharing webdriver instances via threadlocals). The other option is to separate this sort of classes into a separate <test> tag and then have them run in a sequential mode (without parallelism)

 

Thanks & Regards

Krishnan Mahadevan

 

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/

Reply-To: <[hidden email]>
Date: Tuesday, April 3, 2018 at 1:34 AM
To: testng-users <[hidden email]>
Subject: Re: [testng-users] Re: Tests from all the classes are started with parallel="classes" attribute

 

HI! 

I made some github repo, ready to pull: 

https://github.com/baflQA/testNG_parallel_debug

 

My expected output is:

Tests of 3 classes are executed in the same time. So - when I run my testng suite file, classes 1, 2, 3 are executed. After one of the classes is finished, class 4 is executed And so on, till till the end of the class 12, which should be started as the last one. If some class contains tests depending on the previous test(s) from the same class, all the tests from this class are executed before the next class is started.


W dniu poniedziałek, 2 kwietnia 2018 04:26:55 UTC+2 użytkownik Krishnan Mahadevan napisał:

Bartek,

I was hoping that you would provide with something like this:

 

  1. A zip version of your standalone project, that I can just download and run, instead of classes, because I still would need to get the classes, import it into a project etc., The zip would contain the following:
    1. A build tool based project [ Maven/Ant/Gradle] that captures all the versions of the various artifacts that you are using.. [Please ensure that you are working with the latest released version of TestNG viz., 6.14.3. If you are using an earlier version, please upgrade and try using the latest version]
    2. All the involved classes [ which you already have shared. You just need to include it]
    3. The testng suite xml file [ which you provided in your mail. You just need to include it]
  1. The expected output (since in your case, you don’t have any errors etc.,)

 

That way, it would be easier for us to basically dig in and find the root cause.

 

Thanks & Regards

Krishnan Mahadevan

 

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/

Reply-To: <<a href="javascript:" target="_blank">testng...@...>
Date: Monday, April 2, 2018 at 2:31 AM
To: testng-users <
<a href="javascript:" target="_blank">testng...@...>
Subject: Re: [testng-users] Re: Tests from all the classes are started with parallel="classes" attribute

 

First of all - thanks for replying!

 

So, what makes me think it's a bug in the testNG? I'm still not sure if my expectations are valid ;) 


I attach "parallel" file, which is the output report generated by the IntelliJ. 

Also, I attach the code I use, without any WebDriver instantiation. Basically, it's the whole test structure - all the tests and providers without any body - just some logging. 

 

For me what happens ~ "class5" is not expected behaviour - some classes are skipped, and the other classes are started in the meantime. If You were creating some browser instances in the @Test body, it would be even more clear ;) 

 

Also attaching suite XML:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE
suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite
name="All Test Suite">
    <test
verbose="2" name="name" parallel="classes" thread-count="3">
        <classes>
            <class
name="testngparallel.Class1"/>
            <class
name="testngparallel.package1.Class2"/>
            <class
name="testngparallel.package1.Class3"/>
            <class
name="testngparallel.package1.Class4"/>
            <class
name="testngparallel.package1.Class5"/>
            <class
name="testngparallel.package2.Class6"/>
            <class
name="testngparallel.package2.Class7"/>
            <class
name="testngparallel.package2.Class8"/>
            <class
name="testngparallel.package2.Class9"/>
            <class
name="testngparallel.package3.Class10"/>
            <class
name="testngparallel.package4.Class11"/>
            <class
name="testngparallel.package4.Class12"/>
        </classes>
    </test>
</suite>

 

Hope now You will be able at least confirm if I am mistaking, or I provided the proof of bug ;)


W dniu niedziela, 1 kwietnia 2018 06:35:42 UTC+2 użytkownik Krishnan Mahadevan napisał:

@Bartek,

It actually may not be TestNG that’s freezing but your webdriver instantiation by itself may be freezing because your machine perhaps is not able to take the load (or) due to incompatibilities between your browser and your server binary etc.,

What happens when you exclude Selenium from the equation?

 

Please help create and share a sample that only uses a bunch of System.out.println() statements, and which we can run to reproduce whatever issue you are talking about.

 

 

Thanks & Regards

Krishnan Mahadevan

 

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/

Reply-To: <[hidden email]>
Date: Sunday, April 1, 2018 at 7:51 AM
To: <
[hidden email]>
Subject: Re: [testng-users] Re: Tests from all the classes are started with parallel="classes" attribute

 


-- 

Cédric

 

On Sat, Mar 31, 2018 at 2:52 PM, Bartek Florczak <[hidden email]> wrote:

Nope - I removed those classes from the suite and the same thing happens... :/

--
You received this message because you are subscribed to the Google Groups "testng-users" 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
https://groups.google.com/group/testng-users.
For more options, visit
https://groups.google.com/d/optout.

 

--
You received this message because you are subscribed to the Google Groups "testng-users" 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
https://groups.google.com/group/testng-users.
For more options, visit
https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
<a href="javascript:" target="_blank">testng-users+unsubscribe@....
To post to this group, send email to
<a href="javascript:" target="_blank">testng-users@....
Visit this group at
https://groups.google.com/group/testng-users.
For more options, visit
https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-users" 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
https://groups.google.com/group/testng-users.
For more options, visit
https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-users" 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 https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.