summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/stats
diff options
context:
space:
mode:
authorPascal Junck <pjunck@openoffice.org>2004-11-02 10:46:17 +0000
committerPascal Junck <pjunck@openoffice.org>2004-11-02 10:46:17 +0000
commit09f80ffd235e8fec9ab7a3b74dbd0f30c7a69583 (patch)
tree77143b456dd5bf12e3522b3dbe5bdca8811418ba /qadevOOo/runner/stats
parent1ec8484567230bc0abcf56d77923e9a33ff3ccc4 (diff)
INTEGRATION: CWS qadev19 (1.2.84); FILE MERGED
2004/09/29 10:42:59 sg 1.2.84.1: #i22830#CHG: added functionality to execute single functions of a Complex test
Diffstat (limited to 'qadevOOo/runner/stats')
-rw-r--r--qadevOOo/runner/stats/ComplexDataBaseOutProducer.java21
1 files changed, 12 insertions, 9 deletions
diff --git a/qadevOOo/runner/stats/ComplexDataBaseOutProducer.java b/qadevOOo/runner/stats/ComplexDataBaseOutProducer.java
index 0a56ff1c47d9..e81818b426c9 100644
--- a/qadevOOo/runner/stats/ComplexDataBaseOutProducer.java
+++ b/qadevOOo/runner/stats/ComplexDataBaseOutProducer.java
@@ -2,9 +2,9 @@
*
* $RCSfile: ComplexDataBaseOutProducer.java,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change:$Date: 2003-10-06 12:40:26 $
+ * last change:$Date: 2004-11-02 11:46:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -190,15 +190,18 @@ public class ComplexDataBaseOutProducer extends DataBaseOutProducer {
executeSQLCommand("SELECT status as \"test_state.status\" FROM test_state"+
" WHERE test_run_id = $test_run.id AND entry_id = $entry.id;", true);
+ String entryState = (String)mSqlInput.get("EntryState");
String status = (String)mSqlInput.get("test_state.status");
- if (status == null) {
- executeSQLCommand("INSERT test_state (test_run_id, entry_id, status)"+
- " VALUES ($test_run.id, $entry.id, \"$EntryState\");");
- }
- else {
- executeSQLCommand("UPDATE test_state SET status = \"$EntryState\""+
- " where test_run_id =$test_run.id AND entry_id = $entry.id;");
+ if (!entryState.equals("SKIPPED.FAILED")) { // occurs in case of misspellings: do not make an database entry.
+ if (status == null) {
+ executeSQLCommand("INSERT test_state (test_run_id, entry_id, status)"+
+ " VALUES ($test_run.id, $entry.id, \"$EntryState\");");
+ }
+ else {
+ executeSQLCommand("UPDATE test_state SET status = \"$EntryState\""+
+ " where test_run_id =$test_run.id AND entry_id = $entry.id;");
+ }
}
return true;
}