/**\r
- * \r
+ *\r
*/\r
package eu.etaxonomy.taxeditor.test;\r
\r
import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;\r
import org.eclipse.swtbot.eclipse.finder.waits.Conditions;\r
-import org.eclipse.swtbot.swt.finder.junit.SWTBotJunit4ClassRunner;\r
import org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences;\r
import org.junit.Before;\r
-import org.junit.runner.RunWith;\r
+\r
\r
/**\r
* @author n.hoffmann\r
*\r
*/\r
-@RunWith(SWTBotJunit4ClassRunner.class)\r
+//@RunWith(SWTBotJunit4ClassRunner.class)\r
public abstract class AbstractEditorTest {\r
- \r
+\r
protected SWTWorkbenchBot bot;\r
- \r
+\r
public SwtBotUtils utils;\r
- \r
+\r
@Before\r
public void setup() {\r
bot = new SWTWorkbenchBot();\r
SWTBotPreferences.TIMEOUT = 300000;\r
utils = new SwtBotUtils(bot);\r
- \r
+\r
// unfortunately swt bot is not available at the time this is set up\r
// if("Choose a nomenclatural code".equals(getActiveShellHeadline())){\r
// ok();\r
// bot.waitUntil(Conditions.shellIsActive("Nomenclatural code set"));\r
// ok();\r
// }\r
- \r
+\r
if("Connecting to datasource: cdm".equals(utils.getActiveShellHeadline())){\r
performLogin();\r
}\r
}\r
- \r
+\r
private void performLogin(){\r
bot.waitUntil(Conditions.shellIsActive("Login"));\r
bot.textWithLabel("Username").setText("admin");\r
bot.textWithLabel("Password").setText("00000");\r
bot.button("OK").click();\r
}\r
- \r
\r
- \r
+\r
+\r
\r
}\r