summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/stats/Summarizer.java
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2003-11-18 15:17:09 +0000
committerKurt Zenker <kz@openoffice.org>2003-11-18 15:17:09 +0000
commit2390f18b9b43c376b3b81ebdc1f1debfcfa81504 (patch)
tree751389ec8bc58aaf10d84787e0d5eabd6f08c7ec /qadevOOo/runner/stats/Summarizer.java
parent0aac1b9a6e091539391e8754af8f4685cfcffde9 (diff)
INTEGRATION: CWS qadev13 (1.2.20); FILE MERGED
2003/11/14 15:45:15 sg 1.2.20.2: #113007#CHG: fixed bugs 2003/10/22 15:46:11 sw 1.2.20.1: #112770#
Diffstat (limited to 'qadevOOo/runner/stats/Summarizer.java')
-rw-r--r--qadevOOo/runner/stats/Summarizer.java14
1 files changed, 11 insertions, 3 deletions
diff --git a/qadevOOo/runner/stats/Summarizer.java b/qadevOOo/runner/stats/Summarizer.java
index ed97f8de1fb6..adff7fca6c2b 100644
--- a/qadevOOo/runner/stats/Summarizer.java
+++ b/qadevOOo/runner/stats/Summarizer.java
@@ -2,9 +2,9 @@
*
* $RCSfile: Summarizer.java,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change:$Date: 2003-05-27 12:04:16 $
+ * last change:$Date: 2003-11-18 16:17:09 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -78,11 +78,17 @@ public class Summarizer {
public void summarizeUp(DescEntry entry) {
if ( ( entry.State != null ) && entry.State != "UNKNOWN") return;
int count = entry.SubEntryCount;
+ int knownIssues = 0;
Vector failures = new Vector();
Vector states = new Vector();
for (int i=0; i<count; i++) {
- if (entry.SubEntries[i].State == null)
+ if (entry.SubEntries[i].State == null) {
entry.SubEntries[i].State = "PASSED.FAILED";
+ }
+ if (entry.SubEntries[i].State == "known issue") {
+ entry.SubEntries[i].State = "PASSED.OK";
+ knownIssues++;
+ }
if (!entry.SubEntries[i].State.endsWith("OK")) {
failures.add(entry.SubEntries[i].entryName);
states.add(entry.SubEntries[i].State);
@@ -100,6 +106,8 @@ public class Summarizer {
entry.hasErrorMsg=true;
entry.ErrorMsg = errMsg;
entry.State = state;
+ } else if (entry.EntryType.equals("component") && knownIssues > 0) {
+ entry.State = "PASSED(with known issues).OK";
} else {
entry.State = "PASSED.OK";
}