--
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To post to this group, send email to testn...@googlegroups.com.
To unsubscribe from this group, send email to testng-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/testng-dev?hl=en.
I created a Maven project to recreate the issue and attached the same.
I tested this on the latest Eclipse Helios with TestNG 6.0.1
Steps to recreate the problem:
1) mvn clean install eclipse:eclipse
2) test > java > bug > JavaAgentTest.java
Its a simple test case and the catch is it extends
"AbstractTestNGSpringContextTests".
3) "Run As" > TestNG Test and configure the vm arguments
javaagent:<M2_REPO>\repository\org\springframework\spring-instrument\3.0.5.RELEASE\spring-instrument-3.0.5.RELEASE.jar
The tests should pass without any problem
4) "DeBug As" > TestNG Test and configure the same vm argument
You will get a popup saying unable to connect the RemoteTestNG client.
The whole issue disappears if I don't extend from
"AbstractTestNGSpringContextTests". I attached the stack trace and
seems like a classloader issue in Spring/TestNG and I can't pinpoint
exactly the root cause of the issue.
Thank you very much for offering to investigate the issue.
regards,
Madhu
2011/6/7 Cédric Beust ♔ <ced...@beust.com>: