Author: vpakan(a)redhat.com
Date: 2012-05-08 16:16:42 -0400 (Tue, 08 May 2012)
New Revision: 40859
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTEclipseExt.java
Log:
Select default profile when creating Server Runtime
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTEclipseExt.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTEclipseExt.java 2012-05-08
19:54:01 UTC (rev 40858)
+++
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTEclipseExt.java 2012-05-08
20:16:42 UTC (rev 40859)
@@ -874,6 +874,13 @@
bot.textWithLabel(key.toString()).setText(
properties.getProperty((String) (key).toString()));
}
+ // try to select default profile if is available
+ try{
+ bot.table().select("default");
+ } catch (WidgetNotFoundException wnf){
+ // do nothing
+ }
+
if (jreToUse != null) {
bot.comboBox(0).setSelection(jreToUse);
}
Show replies by date