SWTBot is only loaded after the workbench is loaded up. This is currently not possible with the current implementation. If you're looking into doing something before the workbench is loaded then hacking into the test runner[1] and the headless test runner[2] would be the way to go.
– Ketan studios.thoughtworks.com | twitter.com/ketanpkr [1] - http://github.com/ketan/swtbot/blob/master/org.eclipse.swtbot.eclipse.core/src/org/eclipse/swtbot/eclipse/core/UITestApplication.java [2] - http://github.com/ketan/swtbot/blob/master/org.eclipse.swtbot.eclipse.junit4.headless/src/org/eclipse/swtbot/eclipse/junit4/headless/UITestApplication.java On Mon, Apr 12, 2010 at 7:30 AM, Brett Daniel <[email protected]> wrote: > Hello, > > I have an SWTBot test that needs to create a pristine workspace before > any tests are run. It currently does so in the test class' > @BeforeClass method, but that causes problems because the workspace > has already been loaded by the time the method executes. Is there a > way to execute code prior to starting the workbench? Something like a > @BeforeWorkbench method? Alternately, does anyone have suggestions on > how to (re)create a clean workspace for each test run? > > Thanks, > > Brett > _______________________________________________ > swtbot-dev mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/swtbot-dev > _______________________________________________ swtbot-dev mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/swtbot-dev
