continue;
}
// param.put("ServiceFactory", msf);
DescEntry entry = entries[l];
//get some helper classes
Summarizer sumIt = new Summarizer();
TestCase tCase = null;
try
{
tCase = (TestCase) dcl.getInstance("mod._" + entry.entryName);
}
catch (java.lang.IllegalArgumentException ie)
{
entry.ErrorMsg = ie.getMessage();
entry.hasErrorMsg = true;
}
catch (java.lang.NoClassDefFoundError ie)
{
entry.ErrorMsg = ie.getMessage();
entry.hasErrorMsg = true;
}
if (tCase == null)
{
Summarizer.summarizeDown(entry, entry.ErrorMsg);
LogWriter sumObj = OutProducerFactory.createOutProducer(param);
entry.UserDefinedParams = param;
sumObj.initialize(entry, logging);
sumObj.summary(entry);
continue;
}
if (debug)
{
System.out.println("sleeping 5 seconds..");
}
util.utils.shortWait(5000);
System.out.println("Creating: " + entry.entryName);
LogWriter log = (LogWriter) dcl.getInstance((String) param.get("LogWriter"));
log.initialize(entry, logging);
entry.UserDefinedParams = param;
TestEnvironment tEnv = null;
try
{
tCase.setLogWriter((PrintWriter) log);
tCase.initializeTestCase(param);
tEnv = tCase.getTestEnvironment(param);
}
catch (Exception e)
{
System.out.println("Exception while creating " + tCase.getObjectName());
System.out.println("Message " + e.getMessage());
e.printStackTrace();
tEnv = null;
}
catch (java.lang.UnsatisfiedLinkError e)
{
System.out.println("Exception while creating " + tCase.getObjectName());
System.out.println("Message " + e.getMessage());
tEnv = null;
}
catch (java.lang.NoClassDefFoundError e)
{
System.out.println("Exception while creating " + tCase.getObjectName());
System.out.println("Message " + e.getMessage());
tEnv = null;
}
if (tEnv == null)
{
Summarizer.summarizeDown(entry, "Couldn't create " + tCase.getObjectName());
LogWriter sumObj = OutProducerFactory.createOutProducer(param);
entry.UserDefinedParams = param;
sumObj.initialize(entry, logging);
sumObj.summary(entry);
continue;
}
System.out.println(tCase.getObjectName() + " recreated ");
for (int j = 0; j < entry.SubEntryCount; j++)
{
DescEntry aSubEntry = entry.SubEntries[j];
if (!aSubEntry.isToTest)
{
Summarizer.summarizeDown(aSubEntry, "not part of the job");
continue;