Author: apodhrad
Date: 2012-10-16 08:10:07 -0400 (Tue, 16 Oct 2012)
New Revision: 44523
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/ImportHelper.java
Log:
Added importingProjectFromZip
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/ImportHelper.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/ImportHelper.java 2012-10-16
09:49:45 UTC (rev 44522)
+++
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/ImportHelper.java 2012-10-16
12:10:07 UTC (rev 44523)
@@ -11,7 +11,9 @@
import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
import org.jboss.tools.ui.bot.ext.SWTBotExt;
import org.jboss.tools.ui.bot.ext.SWTUtilExt;
+import
org.jboss.tools.ui.bot.ext.gen.ActionItem.Import.GeneralExistingProjectsintoWorkspace;
import org.jboss.tools.ui.bot.ext.types.IDELabel;
+import org.jboss.tools.ui.bot.ext.wizards.SWTBotImportWizard;
/**
* Heper class for project imports
@@ -64,4 +66,17 @@
SWTUtilExt util = new SWTUtilExt(bot);
util.waitForNonIgnoredJobs();
}
+
+ /**
+ * Import project from a given zip location
+ * @param projectLocation
+ */
+ public static void importProjectFromZip(String projectLocation) {
+ SWTBotImportWizard wizard = new SWTBotImportWizard();
+ wizard.open(GeneralExistingProjectsintoWorkspace.LABEL);
+ wizard.bot().radio(1).click();
+ wizard.bot().text(1).setText(projectLocation);
+ wizard.bot().button(IDELabel.Button.REFRESH).click();
+ wizard.finishWithWait();
+ }
}
Show replies by date