summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/org
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-05-27 11:03:50 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-05-27 11:03:50 +0000
commitd583ae1561d6289256bcf332c0205c8890fdc4fc (patch)
tree5227acf80b07fa2974d33b6361c92fd1bd9c1a87 /qadevOOo/runner/org
parent353dcb611d6dd962a8342ce0f82b178807732df6 (diff)
INTEGRATION: CWS qadev6 (1.1.8); FILE MERGED
2003/05/21 10:47:54 sg 1.1.8.1: #109819# prepare devide of runner
Diffstat (limited to 'qadevOOo/runner/org')
-rw-r--r--qadevOOo/runner/org/openoffice/Runner.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/qadevOOo/runner/org/openoffice/Runner.java b/qadevOOo/runner/org/openoffice/Runner.java
index b5b93bf883be..4e01ea5877b4 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.1 $
+ * $Revision: 1.2 $
*
- * last change:$Date: 2003-01-27 16:26:46 $
+ * last change:$Date: 2003-05-27 12:03:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -75,6 +75,9 @@ import helper.CfgParser;
public class Runner {
public static void main(String[] args) {
+ DynamicClassLoader dcl = new DynamicClassLoader();
+
+ // get a class for test parameters
TestParameters param = new TestParameters();
ClParser cli = new ClParser();
@@ -93,16 +96,14 @@ public class Runner {
System.out.println("TestJob: "+param.get("TestJob"));
- DynamicClassLoader dcl = new DynamicClassLoader();
-
TestBase toExecute = (TestBase) dcl.getInstance("base."+
(String)param.get("TestBase"));
boolean worked = toExecute.executeTest(param);
if (!worked) {
- System.out.println("Couldn't execute Job "+param.get("TestJob"));
- System.exit(1);
+ System.out.println("Job "+param.get("TestJob")+" failed");
+ System.exit(-1);
} else {
System.out.println("Job "+param.get("TestJob")+" successful executed");
System.exit(0);