summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/lib/TestParameters.java
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2005-06-14 14:42:42 +0000
committerOliver Bolte <obo@openoffice.org>2005-06-14 14:42:42 +0000
commit6f87becbc3c81d342380578914bcb37f8754af21 (patch)
tree6016eaee23848a76159a99b752d046d5d5439210 /qadevOOo/runner/lib/TestParameters.java
parent413fe081daebb076d8082ba2dcaad42b44853ab9 (diff)
INTEGRATION: CWS qadev23 (1.8.2); FILE MERGED
2005/05/24 14:49:11 cn 1.8.2.2: #i49789# parameter 'AutoRestart' added 2005/05/17 14:16:58 cn 1.8.2.1: #i49391 replace System.getProperty('java.io.tmpdir') with util.utils.getUsersTempDir(). The getUsersTempDir(9 fetch the -D parameter like -Dtemp='myTempDir'
Diffstat (limited to 'qadevOOo/runner/lib/TestParameters.java')
-rw-r--r--qadevOOo/runner/lib/TestParameters.java14
1 files changed, 11 insertions, 3 deletions
diff --git a/qadevOOo/runner/lib/TestParameters.java b/qadevOOo/runner/lib/TestParameters.java
index 808daeb89c3f..41eda4b69656 100644
--- a/qadevOOo/runner/lib/TestParameters.java
+++ b/qadevOOo/runner/lib/TestParameters.java
@@ -2,9 +2,9 @@
*
* $RCSfile: TestParameters.java,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: rt $ $Date: 2005-03-29 11:53:21 $
+ * last change: $Author: obo $ $Date: 2005-06-14 15:42:42 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -103,6 +103,13 @@ public class TestParameters extends Hashtable {
public String AppExecutionCommand="";
/**
+ * If this parameter is <CODE>true</CODE> the <CODE>OfficeProvider</CODE> tries
+ * to get the URL to the binary of the office and to fill the
+ * <CODE>AppExecutionCommand</CODE> with usefull content if needet
+ */
+ public boolean AutoRestart = false;
+
+ /**
* Shoert wait time for the Office: default is 500 milliseconds
*/
public int ShortWait = 500;
@@ -140,7 +147,7 @@ public class TestParameters extends Hashtable {
* default will be the tmp dir
*/
- public String TestDocumentPath=System.getProperty("java.io.tmpdir");
+ public String TestDocumentPath=util.utils.getUsersTempDir();
/**
* 'true' is a log should be written, 'false' elsewhere <br>
@@ -286,6 +293,7 @@ public class TestParameters extends Hashtable {
put(PropertyName.APP_EXECUTION_COMMAND,AppExecutionCommand);
put(PropertyName.TIME_OUT,TimeOut);
put(PropertyName.THREAD_TIME_OUT,ThreadTimeOut);
+ put(PropertyName.AUTO_RESTART,AutoRestart?Boolean.TRUE:Boolean.FALSE);
// get the operating system
put(PropertyName.OPERATING_SYSTEM, getSOCompatibleOSName());