Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » SWTBot access confusion...
SWTBot access confusion... [message #839295] Sun, 08 April 2012 12:44
joseph reddington is currently offline joseph reddingtonFriend
Messages: 16
Registered: January 2012
Junior Member
So I'm testing an eclipse plugin with SWTbot and I'm not getting the result I'm expect - when I cut the test down it turns out that the problem isn't with the bot it's with some code that I've copied accross from another part of the program (where it was fully functional)

The following code...

    public class Tests {
    	private static SWTWorkbenchBot bot;
    	public static void beforeClass() throws Exception {
    		bot = new SWTWorkbenchBot();
    	public  void maybeThisWillWork(){
    		IWorkbenchWindow activeWorkbenchWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
    		IWorkbenchPage activePage = activeWorkbenchWindow.getActivePage();
    	public static void sleep() {
    		System.out.println("In the sleep function");

Gives me the output -

    In the sleep function

Rather than the expected

    In the sleep function

Any ideas?
Previous Topic:How about enhancing SWTBot to support more Nebula widgets?
Next Topic:No idea now to refer to a menu item...
Goto Forum:

Current Time: Thu Nov 26 16:05:58 GMT 2015

Powered by FUDForum. Page generated in 0.04988 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software