diff options
author | Lars Langhans <lla@openoffice.org> | 2010-11-18 13:53:40 +0100 |
---|---|---|
committer | Lars Langhans <lla@openoffice.org> | 2010-11-18 13:53:40 +0100 |
commit | 060633b4b06eb5c64c2710cb6df3027d411b8f7f (patch) | |
tree | 782c02c95ea8708f040e78215c6666b657aa5b6a /qadevOOo/runner | |
parent | CWS-TOOLING: integrate CWS automationdev300m91 (diff) | |
download | core-060633b4b06eb5c64c2710cb6df3027d411b8f7f.tar.gz core-060633b4b06eb5c64c2710cb6df3027d411b8f7f.zip |
rpttestcleanup01: #115649# fix for graphical compare tests in odb report designer documents
Diffstat (limited to 'qadevOOo/runner')
-rw-r--r-- | qadevOOo/runner/graphical/OpenOfficeDatabaseReportExtractor.java | 21 | ||||
-rw-r--r-- | qadevOOo/runner/org/openoffice/Runner.java | 2 |
2 files changed, 15 insertions, 8 deletions
diff --git a/qadevOOo/runner/graphical/OpenOfficeDatabaseReportExtractor.java b/qadevOOo/runner/graphical/OpenOfficeDatabaseReportExtractor.java index a0592d5ce143..c42a437028fc 100644 --- a/qadevOOo/runner/graphical/OpenOfficeDatabaseReportExtractor.java +++ b/qadevOOo/runner/graphical/OpenOfficeDatabaseReportExtractor.java @@ -373,13 +373,20 @@ public class OpenOfficeDatabaseReportExtractor extends Assurance { String sReportName = sElementNames[i]; XComponent xDoc = loadComponent(sReportName, _xNameAccess, _aPropertyList); -// util.utils.shortWait(1000); - // print? or store? - String sDocumentPathName = storeComponent(sReportName, xDoc /*, _nType*/); - aList.add(sDocumentPathName); -// util.utils.shortWait(1000); - closeComponent(xDoc); -// util.utils.shortWait(1000); + if (xDoc != null) + { + // util.utils.shortWait(1000); + // print? or store? + String sDocumentPathName = storeComponent(sReportName, xDoc /*, _nType*/); + aList.add(sDocumentPathName); + // util.utils.shortWait(1000); + closeComponent(xDoc); + // util.utils.shortWait(1000); + } + else + { + System.out.println("Leave out maybe due to errors."); + } // sBackPath contains the path where to find the extracted ODB Document } } diff --git a/qadevOOo/runner/org/openoffice/Runner.java b/qadevOOo/runner/org/openoffice/Runner.java index f6397deb3e2b..ca995bc9b4f4 100644 --- a/qadevOOo/runner/org/openoffice/Runner.java +++ b/qadevOOo/runner/org/openoffice/Runner.java @@ -184,7 +184,7 @@ public class Runner public static boolean run(String... args) { - System.out.println("OOoRunner Main() version from 20100922 (yyyymmdd)"); + System.out.println("OOoRunner Main() version from 20101118 (yyyymmdd)"); setStartTime(getTime()); |