From 54f6de6a4eb93c3f253143fd3c270ce931c2f023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Timm?= Date: Thu, 4 Sep 2008 08:19:53 +0000 Subject: [PATCH] INTEGRATION: CWS greenstate30ver3_DEV300 (1.1.32.2.8); FILE MERGED 2008/09/02 09:42:17 fredrikh 1.1.32.2.8.1: Changing wDokSchreiben to wTypeKeys. Diverse Fixes. --- .../optional/includes/number/w_207_.inc | 41 ++++++++++--------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/testautomation/writer/optional/includes/number/w_207_.inc b/testautomation/writer/optional/includes/number/w_207_.inc index 9a5dcffb45e2..feef56f12363 100755 --- a/testautomation/writer/optional/includes/number/w_207_.inc +++ b/testautomation/writer/optional/includes/number/w_207_.inc @@ -8,9 +8,9 @@ '* '* $RCSfile: w_207_.inc,v $ '* -'* $Revision: 1.2 $ +'* $Revision: 1.3 $ '* -'* last change: $Author: vg $ $Date: 2008-08-18 12:32:04 $ +'* last change: $Author: rt $ $Date: 2008-09-04 09:19:53 $ '* '* This file is part of OpenOffice.org. '* @@ -45,6 +45,9 @@ sub w_207_ end sub testcase tToolsNumbering12 + QaErrorLog "Testcase outcommented due to incompability with new Filtername-behaviour." + goto endsub + printlog "Import / Export Regression Test" '/// Import / Export Regression-Test Dim DocFileList( 30 ) as String, sCurrentFilter as string @@ -69,16 +72,16 @@ testcase tToolsNumbering12 printlog " - (" & i & "/" & x & "): " & DocFileList(i) For k = 1 to 3 Select Case k - Case 3 - sCurrentFilter = "StarWriter 5.0 (.sdw)" - sCurrentFilterExt = "sdw" - Case 2 - sCurrentFilter = hGetUIFiltername("StarOffice XML (Writer)") & " (.sxw)" - sCurrentFilterExt = "sxw" Case 1 - sCurrentFilterExt = WriterFilterExtension(0) - sCurrentFilter = gWriterFilter - end select + sCurrentFilter = "writer8" 'gWriterFilter + sCurrentFilterExt = "odt" 'WriterFilterExtension(0) + Case 2 + sCurrentFilter = "StarOffice XML (Writer)" 'hGetUIFiltername("StarOffice XML (Writer)") & " (.sxw)" + sCurrentFilterExt = "sxw" + Case 3 + sCurrentFilter = "StarWriter 5.0/GlobalDocument" 'StarWriter 5.0 (.sdw) + sCurrentFilterExt = "sdw" + end select '/// Open a new writer document Call hNewDocument @@ -91,7 +94,7 @@ testcase tToolsNumbering12 Warnlog " - Filter Selection dialog is up !" Filterauswahl.Cancel Call hCloseDocument - end if + endif Sleep 5 Kontext "AsciiFilterOptionen" if AsciiFilterOptionen.Exists then AsciiFilterOptionen.Ok @@ -100,7 +103,7 @@ testcase tToolsNumbering12 Kontext "SecurityWarning" if SecurityWarning.Exists then SecurityWarning.Cancel - end if + endif '/// check if loaded if GetDocumentCount >= 1 then @@ -117,7 +120,7 @@ testcase tToolsNumbering12 else Warnlog " - Doc probably didn't get loaded !!!" end if - next k + next k Sleep 2 next i next j @@ -134,7 +137,7 @@ testcase tToolsNumbering13 '/// Load document 'writer\\optional\\input\\number\\regression\\73790.doc' Call hFileOpen ( gTesttoolPath + "writer\optional\input\number\regression\73790.doc" ) '/// Document has Heading1-Heading3 formatted, be sure it is - Call wTypeKeys ("") + Call wDokSchreiben ("") '/// Point cursor to top of document with Select Case iSprache case 01 : iCounter = 2 @@ -157,14 +160,14 @@ testcase tToolsNumbering13 case else : iCounter = 2 end select For i = 1 to 3 - Call wTypeKeys ("") + Call wDokSchreiben ("") '/// Select first to third entry and check it i formatted with 'Heading1','Heading2','Heading3' Kontext "Textobjectbar" if Vorlage.GetSelIndex <> ( i + iCounter ) then Warnlog "Heading " & i & " not " & ( i + iCounter ) & " but " & Vorlage.GetSelIndex - end if - Call wTypeKeys ( "" ) - Call wTypeKeys ( "" ) + endif + Call wDokSchreiben ( "" ) + Call wDokSchreiben ( "" ) next i Call hCloseDocument