arguments[i*2] = args[i].Name;
Object o = args[i].Value;
arguments[i*2+1] = o.toString();
}
TestParameters param = new TestParameters();
DynamicClassLoader dcl = new DynamicClassLoader();
// take the standard log writer
String standardLogWriter = param.LogWriter;
String standardOutProducer = param.OutProducer;
ClParser cli = new ClParser();
//parse the arguments if an ini-parameter is given
String iniFile = cli.getIniPath(arguments);
//initialize cfgParser with ini-path
CfgParser ini = new CfgParser(iniFile);
//parse ConfigFile
ini.getIniParameters(param);
//parse the commandline arguments if an runnerprops-parameter is given
String runnerIniFile = cli.getRunnerIniPath(arguments);
//initialize cfgParser with ini-path
CfgParser runnerIni = new CfgParser(runnerIniFile);
//parse ConfigFile
runnerIni.getIniParameters(param);
//parse the commandline arguments
cli.getCommandLineParameter(param,arguments);
// now compare the standard log writer with the parameters:
// if we have a new one, use the new, else use the internal
// log writer
if (((String)param.get("LogWriter")).equals(standardLogWriter))
param.put("LogWriter", "stats.InternalLogWriter");
if (((String)param.get("OutProducer")).equals(standardOutProducer))
param.put("OutProducer", "stats.InternalLogWriter");
LogWriter log = (LogWriter) dcl.getInstance(
(String)param.get("LogWriter"));
param.put("ServiceFactory", xMSF);
param.ServiceFactory = xMSF; //(XMultiServiceFactory)
// appProvider.getManager(param);
log.println("TestJob: "+param.get("TestJob"));
TestBase toExecute = (TestBase)dcl.getInstance("base.java_fat_service");
boolean worked = toExecute.executeTest(param);
if (!worked)