Author: ldimaggio
Date: 2012-10-03 12:43:41 -0400 (Wed, 03 Oct 2012)
New Revision: 44251
Modified:
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/Editing.java
Log:
Actions editor is not activated by SWTBot on Jenkins - this is diff from behavior locally
- trying to activate it in the test.
Modified:
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/Editing.java
===================================================================
---
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/Editing.java 2012-10-03
16:00:34 UTC (rev 44250)
+++
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/Editing.java 2012-10-03
16:43:41 UTC (rev 44251)
@@ -165,6 +165,9 @@
public void actions() {
String service = "bbb";
+ SWTBotEditor editor = getEditor();
+ log.error("Actions Editor is active = " + editor.isActive());
+
/* Add service is failing on Jenkins - ldimaggi */
try {
addService(service);
@@ -172,14 +175,20 @@
catch (Exception e){
log.error("actions - cannot add a service");
e.printStackTrace();
- SWTBotEditor editor = getEditor();
+ editor.setFocus();
+ bot.sleep(30000l);
log.error("Actions Editor is active = " + editor.isActive());
// org.jboss.tools.ui.bot.ext.SWTUtilExt.displayAllBotWidgets(editor.bot());
+
+ log.error ("The active shell is: " + editor.bot().activeShell().getText()
);
SWTBotShell [] theShells = editor.bot().shells();
for (SWTBotShell s : theShells) {
- log.error("DEBUG - the shell is: " + s.getText());
- }
+ log.error("DEBUG - the shell is: [" + s.getText() + "]");
+ }
+
+ bot.shell(configFileFull).activate();
bot.sleep(30000l);
+ log.error("Actions Editor is active = " + editor.isActive());
addService(service);
}
Show replies by date