78a24ab76e8d9819c9f9ab75e063755b84fc4751
4 package eu
.etaxonomy
.taxeditor
.test
;
6 import org
.eclipse
.swtbot
.eclipse
.finder
.SWTWorkbenchBot
;
7 import org
.eclipse
.swtbot
.eclipse
.finder
.waits
.Conditions
;
8 import org
.eclipse
.swtbot
.swt
.finder
.junit
.SWTBotJunit4ClassRunner
;
9 import org
.eclipse
.swtbot
.swt
.finder
.utils
.SWTBotPreferences
;
10 import org
.junit
.Before
;
11 import org
.junit
.runner
.RunWith
;
17 @RunWith(SWTBotJunit4ClassRunner
.class)
18 public abstract class AbstractEditorTest
{
20 protected SWTWorkbenchBot bot
;
22 public SwtBotUtils utils
;
26 bot
= new SWTWorkbenchBot();
27 SWTBotPreferences
.TIMEOUT
= 300000;
28 utils
= new SwtBotUtils(bot
);
30 // unfortunately swt bot is not available at the time this is set up
31 // if("Choose a nomenclatural code".equals(getActiveShellHeadline())){
33 // bot.waitUntil(Conditions.shellIsActive("Nomenclatural code set"));
37 if("Connecting to datasource: cdm".equals(utils
.getActiveShellHeadline())){
42 private void performLogin(){
43 bot
.waitUntil(Conditions
.shellIsActive("Login"));
44 bot
.textWithLabel("Username").setText("admin");
45 bot
.textWithLabel("Password").setText("00000");
46 bot
.button("OK").click();