|Re: Manage SWTBot and JUnit tests [message #515106 is a reply to message #515008]
||Wed, 17 February 2010 17:48
|| Mickael Istria, away until January 8th
Registered: July 2009
Location: Grenoble, France
I don't think that what you are trying to do is possible. Indeed your JUnit test probably require to run on a UIThread, whereas SWTBot test cannot be run from a UIThread, so that they probably cannot be launched by the same application.
Have you correctly set the @RunWith annotation on your SWTBot test class?
David CHAUTARD a écrit :
> I create a new package, in my test plugin, wich contains SWTBot tests.
> And when I run tests on my plugin with SWTBot, I have some problem
> "WidgetNotFoundException". While when I run my SWTBot TestSuite I have
> no problem.
> I don't know how to structure my plugin test for SWTBot tests and JUnit
> tests, and how to launch them. I think used Ant, but I don't know if it
> is the solution.
Mickael Istria - BonitaSoft S.A.
Powered by FUDForum
. Page generated in 0.01739 seconds