summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/org
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-03-19 13:29:42 +0000
committerOliver Bolte <obo@openoffice.org>2004-03-19 13:29:42 +0000
commit1c7015ea950652e121d38e40f42004704f4115bc (patch)
treed036d9f34f3660114aa38e6e6133dd47cdff8e3e /qadevOOo/runner/org
parentf6621e99a29d93d3209313d951fb842f6f777c77 (diff)
INTEGRATION: CWS qadev16 (1.2.46); FILE MERGED
2004/02/05 09:54:33 sw 1.2.46.1: #i24566#
Diffstat (limited to 'qadevOOo/runner/org')
-rw-r--r--qadevOOo/runner/org/openoffice/Runner.java24
1 files changed, 19 insertions, 5 deletions
diff --git a/qadevOOo/runner/org/openoffice/Runner.java b/qadevOOo/runner/org/openoffice/Runner.java
index 4e01ea5877b4..a27c59d43eec 100644
--- a/qadevOOo/runner/org/openoffice/Runner.java
+++ b/qadevOOo/runner/org/openoffice/Runner.java
@@ -2,9 +2,9 @@
*
* $RCSfile: Runner.java,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change:$Date: 2003-05-27 12:03:50 $
+ * last change:$Date: 2004-03-19 14:29:42 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -62,11 +62,12 @@
package org.openoffice;
import lib.TestParameters;
-import lib.DynamicClassLoader;
+import util.DynamicClassLoader;
import base.TestBase;
import helper.ClParser;
import helper.CfgParser;
+
/**
* The main class, will call ClParser and CfgParser to <br>
* fill the TestParameters.<br>
@@ -75,6 +76,7 @@ import helper.CfgParser;
public class Runner {
public static void main(String[] args) {
+
DynamicClassLoader dcl = new DynamicClassLoader();
// get a class for test parameters
@@ -94,7 +96,19 @@ public class Runner {
//parse the commandline arguments
cli.getCommandLineParameter(param,args);
- System.out.println("TestJob: "+param.get("TestJob"));
+ Object tj = param.get("TestJob");
+
+ if (tj==null) {
+ System.out.println("==========================================================================");
+ System.out.println("No TestJob given, please make sure that you ");
+ System.out.println("a.) called the OOoRunner with the paramter -o <job> or -sce <scenarioFile>");
+ System.out.println("or");
+ System.out.println("b.) have an entry called TestJob in your used properties file");
+ System.out.println("==========================================================================");
+ System.exit(-1);
+ }
+
+ System.out.println("TestJob: "+tj);
TestBase toExecute = (TestBase) dcl.getInstance("base."+
(String)param.get("TestBase"));
@@ -105,7 +119,7 @@ public class Runner {
System.out.println("Job "+param.get("TestJob")+" failed");
System.exit(-1);
} else {
- System.out.println("Job "+param.get("TestJob")+" successful executed");
+ System.out.println("Job "+param.get("TestJob")+" done");
System.exit(0);
}
}