Author: ldimaggio
Date: 2012-10-03 11:26:41 -0400 (Wed, 03 Oct 2012)
New Revision: 44248
Modified:
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/Editing.java
Log:
Still debugging adding a service for editing actions.
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
15:24:26 UTC (rev 44247)
+++
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/Editing.java 2012-10-03
15:26:41 UTC (rev 44248)
@@ -160,7 +160,21 @@
@Test
public void actions() {
String service = "bbb";
- addService(service);
+
+ /* Add service is failing on Jenkins - ldimaggi */
+ try {
+ addService(service);
+ }
+ catch (Exception e){
+ log.error("actions - cannot add a service");
+ e.printStackTrace();
+ SWTBotEditor editor = getEditor();
+ log.error("Editor is active = " + editor.isActive());
+ org.jboss.tools.ui.bot.ext.SWTUtilExt.displayAllBotWidgets(editor.bot());
+ bot.sleep(30000l);
+ addService(service);
+ }
+
String[] actionPath = new String[] { configFileFull, node_services,
"bbb", "Actions" };
// first create all actions
@@ -252,12 +266,7 @@
}
private void addService(String name) {
- SWTBotEditor editor = getEditor();
-
- bot.sleep(30000l);
- org.jboss.tools.ui.bot.ext.SWTUtilExt.displayAllBotWidgets(editor.bot());
-
-
+ SWTBotEditor editor = getEditor();
SWTBotTreeItem services = SWTEclipseExt.selectTreeLocation(
editor.bot(), configFileFull, node_services);
ContextMenuHelper.prepareTreeItemForContextMenu(editor.bot().tree(),
Show replies by date