Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » SWTBot with tycho - no context menu(Works under SWTBot launch config but not under maven.)
icon5.gif  SWTBot with tycho - no context menu [message #841587] Wed, 11 April 2012 10:01
Craig Foote is currently offline Craig Foote
Messages: 184
Registered: July 2009
Senior Member
I'm having trouble running an SWTBot TestCase under maven and tycho. The following code checks for a context menu item which works when running the test in my IDE but not when I run it using maven.
SWTBotTableItem item = view.bot().table().getTableItem("a");
item.select();
item.contextMenu("b");


In my pom I'm specifying tycho 0.14.1 and swtbot 2.0.0. It specifies the following configuration for the tycho-surefire-plugin:

<useUIHarness>true</useUIHarness>
<useUIThread>false</useUIThread>


I have my indirect dependencies listed as well. I've added debugging statements to the test method and verified the plugins that should be active are and that the current selection is correct. Just no context menu.

What could I be doing wrong?

Craig
Previous Topic:SWTBot access confusion...
Next Topic:No idea now to refer to a menu item...
Goto Forum:
  


Current Time: Tue May 21 22:14:21 EDT 2013

Powered by FUDForum. Page generated in 0.01475 seconds