I forgot to mention that SWTBot has a new api that does a best attempt to reset the workbench.
http://download.eclipse.org/technology/swtbot/ganymede/dev-build/apidocs/org/eclipse/swtbot/eclipse/finder/SWTWorkbenchBot.html#resetWorkbench() – Ketan studios.thoughtworks.com | twitter.com/ketanpkr On Mon, Apr 12, 2010 at 8:58 AM, Ketan Padegaonkar <ketanpadegaon...@gmail.com> wrote: > 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 <bdani...@illinois.edu> 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 >> swtbot-dev@eclipse.org >> https://dev.eclipse.org/mailman/listinfo/swtbot-dev >> > _______________________________________________ swtbot-dev mailing list swtbot-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/swtbot-dev