*/
protected void initialize(TestParameters tParam, PrintWriter pLog) {
// Create Handler ONLY here. If SOffice crashes,
// no new Handler will be created until new object's initialization.
this.oLog = pLog;
LogWriter log = (LogWriter)pLog;
oBasicHandler = BasicHandlerProvider.getHandler(tParam, log);
try {
oBasicHandler.perform("setValue",
"cBASPath = \"" + tParam.get("BASICRESPTH") + "/\"");
oBasicHandler.perform("setValue",
"cTestDocsDir = \"" + tParam.get("DOCPTH") + "/\"");
oBasicHandler.perform("setValue",
"CNCSTR = \"" + tParam.get("CNCSTR") + "\"");
if (tParam.get("soapi.test.hidewindows") != null) {
oBasicHandler.perform("setValue",
"soapi_test_hidewindows = true");
} else {
oBasicHandler.perform("setValue",
"soapi_test_hidewindows = false");
}
//this parameters are used by testcases of db-driver components
oBasicHandler.perform("setValue", "dbaseUrl = \"sdbc:dbase:" +
tParam.get("dbase.url") + "\"");
oBasicHandler.perform("setValue", "flatUrl = \"sdbc:flat:" +
tParam.get("flat.url") + "\"");
oBasicHandler.perform("setValue", "calcUrl = \"sdbc:calc:" +
tParam.get("calc.url") + "\"");
oBasicHandler.perform("setValue", "odbcUrl = \"sdbc:odbc:" +
tParam.get("odbc.url") + "\"");
oBasicHandler.perform("setValue", "jdbcUrl = \"jdbc:" +
tParam.get("jdbc.url") + "\"");
oBasicHandler.perform("setValue", "jdbcUser = \"" +
tParam.get("jdbc.user") + "\"");
oBasicHandler.perform("setValue", "jdbcPassword = \"" +
tParam.get("jdbc.password") + "\"");
oBasicHandler.perform("setValue", "adabasUrl = \"sdbc:adabas:" +
tParam.get("adabas.url") + "\"");
oBasicHandler.perform("setValue", "adabasUser = \"" +
tParam.get("adabas.user") + "\"");
oBasicHandler.perform("setValue", "adabasPassword = \"" +
tParam.get("adabas.password") + "\"");
oBasicHandler.perform("setValue", "adoUrl = \"sdbc:ado:" +
tParam.get("ado.url") + "\"");
oBasicHandler.perform("setValue", "mozabUrl = \"sdbc:address:" +
tParam.get("mozab.url") + "\"");
} catch (BasicException e) {
log.println(e.info);
throw new RuntimeException(e.info);
}
}