Author: vpakan(a)redhat.com
Date: 2010-03-29 07:25:32 -0400 (Mon, 29 Mar 2010)
New Revision: 21105
Modified:
trunk/struts/tests/org.jboss.tools.struts.ui.bot.test/src/org/jboss/tools/struts/ui/bot/test/smoke/RunStrutsProjectOnServer.java
Log:
Cleanup server when test failed
Modified:
trunk/struts/tests/org.jboss.tools.struts.ui.bot.test/src/org/jboss/tools/struts/ui/bot/test/smoke/RunStrutsProjectOnServer.java
===================================================================
---
trunk/struts/tests/org.jboss.tools.struts.ui.bot.test/src/org/jboss/tools/struts/ui/bot/test/smoke/RunStrutsProjectOnServer.java 2010-03-29
11:24:11 UTC (rev 21104)
+++
trunk/struts/tests/org.jboss.tools.struts.ui.bot.test/src/org/jboss/tools/struts/ui/bot/test/smoke/RunStrutsProjectOnServer.java 2010-03-29
11:25:32 UTC (rev 21105)
@@ -37,11 +37,11 @@
swtJbtExt.runProjectOnServer(StrutsAllBotTests.STRUTS_PROJECT_NAME);
// Check Browser Content
String browserText = WidgetFinderHelper.browserInEditorText(bot, "KickStart:
Input name",true);
- assertTrue("Displayed HTML page has wrong content",
- browserText.indexOf("<TITLE>KickStart: Input name</TITLE>")
> - 1);
swtJbtExt.stopApplicationServer( 0);
swtJbtExt.removeProjectFromServers(StrutsAllBotTests.STRUTS_PROJECT_NAME);
SWTJBTExt.deleteApplicationServer(bot, 0);
+ assertTrue("Displayed HTML page has wrong content",
+ (browserText!= null) &&
(browserText.indexOf("<TITLE>KickStart: Input name</TITLE>") > -
1));
}
}
Show replies by date