How to invoke Customised TestRunner through Eclipse Plug in?

33 views
Skip to first unread message

vilas

unread,
Oct 28, 2009, 11:07:23 AM10/28/09
to testng-users
Hi All,

We have written our customised TestNG framework.In this,we have
written our own customised TestRunner and calling it through ant.Test
Cases are running fine through our framework with ant.
But now we need to run test cases through TestNg EclipsePlugin.
When we are going to run it through eclipse plug in,TestNg invokes
its standard TestRunner instead of our customised TestRunner.(We have
added our customised testNg frame work jar in classpath).Due to
this,we have getting unexpected test result.
Is there any way to mention which TestRunner has to use while running
testNG through eclipse plugin?
I have checked plugin.xml,plugin.properties to mention TestRunner
entry.But I do not getting it.
kindly suggest for the same and thanks in advance

Regards
Vilas Shelar

Cédric Beust ♔

unread,
Oct 28, 2009, 11:12:30 AM10/28/09
to testng...@googlegroups.com
Hi Vilas,

The best way would be to add an extension point to the Eclipse plug-in to offer the possibility of using a different test runner.  I don't think it would be too hard if you want to give this a shot...

Nice work on writing your own runner, by the way, I think you're the first one to do that...

--
Cédric

vilas

unread,
Oct 29, 2009, 4:25:29 AM10/29/09
to testng-users
Thanks a lot for response and appreciation,

Regards
Vilas

Harihara Vinayakaram

unread,
Oct 29, 2009, 4:28:01 AM10/29/09
to testng...@googlegroups.com
Vilas
  Would it be possible to share why did you have write a custom Test Runner . Curious to know when to take that route

Thanks
Regards
Hari
Reply all
Reply to author
Forward
0 new messages