Author: ldimaggio
Date: 2011-11-04 16:30:16 -0400 (Fri, 04 Nov 2011)
New Revision: 36178
Modified:
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/ESBActionFactory.java
Log:
Added code for special case - Sync Service Invoker
Modified:
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/ESBActionFactory.java
===================================================================
---
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/ESBActionFactory.java 2011-11-04
18:06:36 UTC (rev 36177)
+++
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/ESBActionFactory.java 2011-11-04
20:30:16 UTC (rev 36178)
@@ -382,10 +382,24 @@
}
@Override
protected void doFillForm(SWTBotShell shell) {
- Assertions.assertButtonEnabled(shell.bot().button(getFinishButton()), false);
- shell.bot().text(0).setText(this.uiName);
- shell.bot().text(1).setText("Category");
- shell.bot().text(2).setText("HelloService");
+ Assertions.assertButtonEnabled(shell.bot().button(getFinishButton()), false);
+ shell.bot().text(0).setText(this.uiName);
+
+ System.out.println ("DEBUG - this.uiName " + this.uiName);
+
+ org.jboss.tools.ui.bot.ext.SWTUtilExt.displayAllBotWidgets(shell.bot());
+
+ /* ldimaggi - Nov 4 2011 - need this to avoid an error where an array
+ * out of bounds is hit - as the Sync Service Invoker has combo boxes, not text
fields */
+ if (this.uiName.equals("Sync Service Invoker")) {
+ shell.bot().comboBox(0).setSelection(0);
+ shell.bot().comboBox(1).setSelection(0);
+ }
+ else {
+ shell.bot().text(1).setText("Category");
+ shell.bot().text(2).setText("HelloService");
+ }
+
Assertions.assertButtonEnabled(shell.bot().button(getFinishButton()), true);
}
};
Show replies by date