/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite * * This file is part of OpenOffice.org. * * OpenOffice.org is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 3 * only, as published by the Free Software Foundation. * * OpenOffice.org is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License version 3 for more details * (a copy is included in the LICENSE file that accompanied this code). * * You should have received a copy of the GNU Lesser General Public License * version 3 along with OpenOffice.org. If not, see * * for a copy of the LGPLv3 License. * ************************************************************************/ package base; import java.io.PrintWriter; import lib.TestParameters; import lib.TestCase; import lib.MultiMethodTest; import lib.TestEnvironment; import util.DynamicClassLoader; import com.sun.star.lang.XMultiServiceFactory; import share.DescEntry; import share.DescGetter; import helper.APIDescGetter; import share.LogWriter; import stats.Summarizer; /** * this class handles tests written in java and running on a fat Office * with the runner as a service. */ public class java_fat_service implements TestBase { static protected boolean debug = false; protected LogWriter log = null; public boolean executeTest(lib.TestParameters param) { DynamicClassLoader dcl = new DynamicClassLoader(); log = (LogWriter)dcl.getInstance((String)param.get("LogWriter")); debug = ((Boolean) param.get("DebugIsActive")).booleanValue(); DescGetter dg = new APIDescGetter(); String job = (String) param.get("TestJob"); boolean retValue = true; //get Job-Descriptions log.println("Getting Descriptions for Job: "+job); DescEntry[] entries = dg.getDescriptionFor(job, (String) param.get("DescriptionPath"),debug); if (entries == null ) { log.println("Couldn't get Description for Job"); return false; } String conStr = (String) param.get("ConnectionString"); XMultiServiceFactory msf = (XMultiServiceFactory)param.getMSF(); for (int l=0;l 1) { log.println(""); int counter = 0; log.println("Failures that appeared during scenario execution:"); for (int i=0;i