Author: vpakan(a)redhat.com
Date: 2010-12-03 11:48:50 -0500 (Fri, 03 Dec 2010)
New Revision: 27151
Modified:
trunk/drools/tests/org.jboss.tools.drools.ui.bot.test/src/org/jboss/tools/drools/ui/bot/test/smoke/GuvnorRepositoriesTest.java
Log:
Fixes for JBDS 4.0.0.Beta2
Modified:
trunk/drools/tests/org.jboss.tools.drools.ui.bot.test/src/org/jboss/tools/drools/ui/bot/test/smoke/GuvnorRepositoriesTest.java
===================================================================
---
trunk/drools/tests/org.jboss.tools.drools.ui.bot.test/src/org/jboss/tools/drools/ui/bot/test/smoke/GuvnorRepositoriesTest.java 2010-12-03
16:25:24 UTC (rev 27150)
+++
trunk/drools/tests/org.jboss.tools.drools.ui.bot.test/src/org/jboss/tools/drools/ui/bot/test/smoke/GuvnorRepositoriesTest.java 2010-12-03
16:48:50 UTC (rev 27151)
@@ -303,6 +303,7 @@
// Import File From Repository
eclipse.createNew(EntityType.RESOURCES_FROM_GUVNOR);
bot.button(IDELabel.Button.NEXT).click();
+ bot.sleep(Timing.time2S());
SWTEclipseExt.getTreeItemOnPath(
bot,
bot.tree(),
@@ -353,7 +354,15 @@
SWTBotTreeItem tiRoot =
guvnorRepositories.selectTreeItem(IDELabel.GuvnorRepositories.GUVNOR_REPOSITORY_ROOT_TREE_ITEM,null)
.doubleClick();
bot.sleep(Timing.time5S());
- SWTBot dialogBot = bot.shell("").activate().bot();
+ SWTBotShell activeShell = bot.activeShell();
+ SWTBot dialogBot = null;
+ if (activeShell.getText().length() != 0){
+ dialogBot = bot.shell("").activate().bot();
+ }
+ else{
+ dialogBot = activeShell.bot();
+ }
+
dialogBot.textWithLabel(IDELabel.GuvnorConsoleLoginDialog.USER_NAME).setText(
GuvnorRepositoriesTest.GUVNOR_USER_NAME);
dialogBot.textWithLabel(IDELabel.GuvnorConsoleLoginDialog.PASSWORD).setText(
Show replies by date