Re: Eclipse freezes when running test using TestNG

1,547 views
Skip to first unread message

Nipun @ http://seleniumtesting-nx.blogspot.in/

unread,
Jan 2, 2013, 8:01:30 AM1/2/13
to testng...@googlegroups.com
Hi Amit,

Please give us more details like which version of TestNG are you using and the Eclipse version as well...
Where you able to run using TestNg from Eclipse earlier? OIr is this the first time that you are trying TestNG.... please provide us with more details so that we can help you.


Regards,
Nipun.

On Friday, December 28, 2012 3:54:21 AM UTC-6, amit tatiya wrote:
I am experiencing unusual eclipse freeze when I run test using TestNG. It goes until 57% and freezes. Is this because of any update or version mismatch

amit tatiya

unread,
Jan 4, 2013, 8:26:31 AM1/4/13
to testng...@googlegroups.com

Hi Nipun, Following are the details,
TestNG 6.8.0.20121120_1820 org.testng.eclipse.feature.group
Eclipse : eclipse-jee-helios-SR2-win32-x86_64
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b22)
Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)

I have already used TestNG before. This was working perfectly fine and it suddenly started giving me this issue. Eclipse hangs at 57% when I run TestNG tests. I am able to run JUnit or java application. It only happens when I run tests using TestNG.

Let me know if you need more details.

amit tatiya

unread,
Jan 7, 2013, 9:21:53 AM1/7/13
to testng...@googlegroups.com
Not yet, In case you get any please let me know, So will I.

Thanks,
Amit

On Mon, Jan 7, 2013 at 4:50 PM, Fanindra Bapat <fanindr...@gmail.com> wrote:
I am also facing the same problem.

Any solution for it??

Regards,
Fanindra


On Friday, 28 December 2012 15:24:21 UTC+5:30, amit tatiya wrote:
I am experiencing unusual eclipse freeze when I run test using TestNG. It goes until 57% and freezes. Is this because of any update or version mismatch

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/testng-users/-/HQAb6-3-tnoJ.

To post to this group, send email to testng...@googlegroups.com.
To unsubscribe from this group, send email to testng-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.



--
Regards,
Amit

Fanindra Bapat

unread,
Jan 20, 2013, 11:46:56 PM1/20/13
to testng...@googlegroups.com
Hi,

tried with new configuration but still getting the same issues.console message says "launching abc class (57 % ) and it hangs.

1.Java version - jdk-7u7-windows-x64
2.Eclipse version -64 bit eclipse  - Kepler
3.Testng version - 6.8.0

Let me know if anything else is reqd



Thanks,
Fanindra

Fanindra Bapat

unread,
Jan 21, 2013, 12:00:39 AM1/21/13
to testng...@googlegroups.com
just to add to above list -Selenium webdriver - 2.28.0

Fanindra Bapat

unread,
Apr 19, 2013, 2:47:31 AM4/19/13
to testng...@googlegroups.com

Just to update you all…this problem has been solved.

Following three things were done which resulted in solving this problem:

  •    Remove all existing breakpoints
  •    Removing other versions of testing jars..Keeping only latest one i.e. 6.8 testng jar
  •   Put the debug value as

-Xms1024m

-Xmx2048m

          In eclipse configuration settings file.



On Monday, 4 February 2013 19:34:49 UTC+5:30, DBrad wrote:
This may be due to having a previous running session hanging, and then trying to run another session.
 
Go to your eclipse debug perspective and see what is running. There maybe an un-terminated previous thread/session hanging around which will have some control of testNG's communication port. So the newer session starts up but recieves wierd responses from the still open port, wont timeout per say and appears to hang at 57%.
 
I noticed when running suites with a number of classes, that some classes will hang. Basically had to debug the test classes via eclipse to determine where they are hanging and determine a course of action to ensure continued running. (Sorry, have not found a single pattern as to the hanging). However, rn the test class by itself, there is no hang condition. Its as if a message has gone missing between a suite run and testNG next class to run selection.

Siddharth Pandey

unread,
Jan 3, 2015, 8:13:13 AM1/3/15
to testng...@googlegroups.com
Hi,

I am also facing the same issue, I have tried the changes that you wrote but nothing seems to help, would you mind helping me through this.

It's been two days I have been sitting over this issue, have tried possibly everything available to the internet and now it is frustrating.

Waiting for your response.

Thanks
Sid

Mrunal Gosar

unread,
Jan 8, 2015, 2:27:22 PM1/8/15
to testng...@googlegroups.com
Can you try to run your tests from command line (If its maven or ant) and see.

Ken

unread,
Jan 15, 2015, 12:22:46 PM1/15/15
to testng...@googlegroups.com
Make sure you're running the latest testng version.  I had run into a bug in 6.8.8 (fixed in 6.8.13) that would cause testng to freeze that was related to group dependencies.

Also, could run in debug mode and when it freezes, dump the threads and see if there's anything interesting in there.
Reply all
Reply to author
Forward
0 new messages