Author: ldimaggio
Date: 2012-01-23 22:21:51 -0500 (Mon, 23 Jan 2012)
New Revision: 38069
Modified:
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples/ESBExampleTest.java
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples/SmooksXML2XMLSimple.java
Log:
JBQA-5838 - Need to extend timeout for retrieving console output - Smooks examples fail to
retrieve output with 20 sec range (e.g., SmooksXML2XMLSimple.java)
Modified:
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples/ESBExampleTest.java
===================================================================
---
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples/ESBExampleTest.java 2012-01-24
03:11:54 UTC (rev 38068)
+++
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples/ESBExampleTest.java 2012-01-24
03:21:51 UTC (rev 38069)
@@ -77,13 +77,14 @@
* @return string in server log console that was appended or null if nothing appended
*/
protected String executeClientGetServerOutput(String... clientClass) {
- String text = console.getConsoleText();
+ String text = console.getConsoleText();
SWTBotTreeItem jmsCall =
SWTEclipseExt.selectTreeLocation(packageExplorer.show().bot(),clientClass);
eclipse.runTreeItemAsJavaApplication(jmsCall);
bot.sleep(Timing.time5S());
util.waitForNonIgnoredJobs();
console.switchConsole(configuredState.getServer().name);
- String text2 = console.getConsoleText(TIME_5S, TIME_20S, false);
+ //String text2 = console.getConsoleText(TIME_5S, TIME_20S, false);
+ String text2 = console.getConsoleText(TIME_5S, TIME_60S, false); /*
https://issues.jboss.org/browse/JBQA-5838 - ldimaggi */
if (text.length()>=text2.length()) {
return null;
}
Modified:
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples/SmooksXML2XMLSimple.java
===================================================================
---
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples/SmooksXML2XMLSimple.java 2012-01-24
03:11:54 UTC (rev 38068)
+++
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples/SmooksXML2XMLSimple.java 2012-01-24
03:21:51 UTC (rev 38069)
@@ -18,6 +18,7 @@
}
@Override
protected void executeExample() {
+ SWTTestExt.servers.removeAllProjectsFromServer();
super.executeExample();
String text =
executeClientGetServerOutput(getExampleClientProjectName(),"src","org.jboss.soa.esb.samples.quickstart.transformxml2xmlsimple.test","SendJMSMessage.java");
bot.sleep(Timing.time3S());