Ensuring preconditions before SWTBot test run [message #639806] |
Wed, 17 November 2010 16:24  |
Eclipse User |
|
|
|
Hi all,
I've got a simple RCP application that has a view with a tree on it. The tree is populated on load from the database. When I run a SWTBot test, I'd like to ensure that the database is emptied and filled with test data before the test is run, so that the tree is populated with known data and my test runs are consistent.
Is there a way to do this?
I've already tried running my database clean/test data code in an @BeforeClass annotated method but it seems that when my SWTBot test runs, the application has already started and the tree is already populated, so my database code has effect.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02895 seconds