Author: mickael_istria
Date: 2012-06-18 07:42:58 -0400 (Mon, 18 Jun 2012)
New Revision: 42057
Modified:
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/src/org/jboss/tools/qa/install/tests/InstallTest.java
Log:
JBIDE-11713 : Added smarter error reporting
Modified:
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/src/org/jboss/tools/qa/install/tests/InstallTest.java
===================================================================
---
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/src/org/jboss/tools/qa/install/tests/InstallTest.java 2012-06-18
09:34:00 UTC (rev 42056)
+++
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/src/org/jboss/tools/qa/install/tests/InstallTest.java 2012-06-18
11:42:58 UTC (rev 42057)
@@ -15,10 +15,18 @@
public class InstallTest extends SWTBotEclipseTestCase {
@Test
- public void testInstall() {
+ public void testInstall() throws Exception {
String site = System.getProperty("UPDATE_SITE");
Assert.assertNotNull("No site specified, set UPDATE_SITE system property
first", site);
+ try {
+ installFromSite(site);
+ } catch (WidgetNotFoundException ex) {
+ Assert.fail(ex.getMessage());
+ }
+ }
+
+ private void installFromSite(String site) {
this.bot.menu("Help").menu("Install New Software...").click();
this.bot.shell("Install").bot().button("Add...").click();
this.bot.shell("Add Repository").activate().setFocus();
Show replies by date