summaryrefslogtreecommitdiff
path: root/testautomation
diff options
context:
space:
mode:
authorVladimir Glazunov <vg@openoffice.org>2011-01-27 17:13:48 +0100
committerVladimir Glazunov <vg@openoffice.org>2011-01-27 17:13:48 +0100
commitea0721e207183f1c39a28b40b5a95d19ba40352f (patch)
treec6a5f299ae4887c2c81a9a438d4b0135ea9076a3 /testautomation
parent67dd442a070c012655dd9c727bca61566fab75b8 (diff)
parent763f7b62182554dfce29f17914edefeaabdbc9f0 (diff)
CWS-TOOLING: integrate CWS os147
Diffstat (limited to 'testautomation')
-rwxr-xr-xtestautomation/chart2/optional/ch2_losa_ods_to_sdc.bas67
-rwxr-xr-xtestautomation/chart2/optional/ch2_losa_sxc_to_sdc.bas68
-rw-r--r--[-rwxr-xr-x]testautomation/chart2/required/ch2_updt_calc.bas2
-rw-r--r--[-rwxr-xr-x]testautomation/chart2/required/includes/ch2_file.inc77
-rw-r--r--testautomation/framework/required/includes/smoketest.inc2
-rw-r--r--testautomation/framework/required/includes/topten.inc105
-rwxr-xr-xtestautomation/framework/required/input/10erTest_680.sxwbin32670 -> 33373 bytes
-rw-r--r--testautomation/graphics/optional/includes/global/g_clipboard.inc13
-rw-r--r--testautomation/graphics/required/includes/global/id_001.inc162
-rw-r--r--testautomation/math/optional/includes/m_101_.inc3
-rw-r--r--testautomation/writer/optional/includes/loadsave/w_loadsave.inc45
-rw-r--r--testautomation/writer/optional/includes/number/w_207_.inc15
12 files changed, 137 insertions, 422 deletions
diff --git a/testautomation/chart2/optional/ch2_losa_ods_to_sdc.bas b/testautomation/chart2/optional/ch2_losa_ods_to_sdc.bas
deleted file mode 100755
index d61c6183086a..000000000000
--- a/testautomation/chart2/optional/ch2_losa_ods_to_sdc.bas
+++ /dev/null
@@ -1,67 +0,0 @@
-'encoding UTF-8 Do not remove or change this line!
-'**************************************************************************
-' DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-'
-' Copyright 2000, 2010 Oracle and/or its affiliates.
-'
-' OpenOffice.org - a multi-platform office productivity suite
-'
-' This file is part of OpenOffice.org.
-'
-' OpenOffice.org is free software: you can redistribute it and/or modify
-' it under the terms of the GNU Lesser General Public License version 3
-' only, as published by the Free Software Foundation.
-'
-' OpenOffice.org is distributed in the hope that it will be useful,
-' but WITHOUT ANY WARRANTY; without even the implied warranty of
-' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-' GNU Lesser General Public License version 3 for more details
-' (a copy is included in the LICENSE file that accompanied this code).
-'
-' You should have received a copy of the GNU Lesser General Public License
-' version 3 along with OpenOffice.org. If not, see
-' <http://www.openoffice.org/license.html>
-' for a copy of the LGPLv3 License.
-'
-'/************************************************************************
-'*
-'* owner : oliver.craemer@oracle.com
-'*
-'* short description : Load/Save test for chart files - Input: ODS, Output: SDC
-'*
-'\************************************************************************
-
-Global gsFileFormat as String
-Global gsDirectoryInSourcePath as String
-Global gsOutputFileCustomExtension as String
-
-sub main
- gsFileFormat = "StarCalc 5.0"
- 'Important for determination of input file source path
- '-> gtesttoolpath & "chart2\optional\input\" & gsDirectoryInSourcePath &"\"
- gsDirectoryInSourcePath = "ods"
-
- 'Custom output file extension. Can be different to result from hGetFilternameExtension.
- 'e.g. "_excel95.xls"
- gsOutputFileCustomExtension = ".sdc"
-
- Printlog "--------------------------------------------------"
- Printlog "--- Load charts in ODS - SaveAS SDC ---"
- Printlog "--------------------------------------------------"
-
- use "chart2/optional/includes/loadsave/ch2_losa.inc"
- use "chart2/tools/ch_tools_common.inc"
-
- Call hStatusIn("Chart2", "ch2_losa_ods_to_sdc.bas")
- call subLoSaFromTo
- Call hStatusOut
-end sub
-'
-'-------------------------------------------------------------------------
-'
-sub LoadIncludeFiles
- use "global\system\includes\master.inc"
- use "global\system\includes\gvariabl.inc"
- gApplication = "CALC"
- Call GetUseFiles
-end sub
diff --git a/testautomation/chart2/optional/ch2_losa_sxc_to_sdc.bas b/testautomation/chart2/optional/ch2_losa_sxc_to_sdc.bas
deleted file mode 100755
index 7c8e8726f580..000000000000
--- a/testautomation/chart2/optional/ch2_losa_sxc_to_sdc.bas
+++ /dev/null
@@ -1,68 +0,0 @@
-'encoding UTF-8 Do not remove or change this line!
-'**************************************************************************
-' DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-'
-' Copyright 2000, 2010 Oracle and/or its affiliates.
-'
-' OpenOffice.org - a multi-platform office productivity suite
-'
-' This file is part of OpenOffice.org.
-'
-' OpenOffice.org is free software: you can redistribute it and/or modify
-' it under the terms of the GNU Lesser General Public License version 3
-' only, as published by the Free Software Foundation.
-'
-' OpenOffice.org is distributed in the hope that it will be useful,
-' but WITHOUT ANY WARRANTY; without even the implied warranty of
-' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-' GNU Lesser General Public License version 3 for more details
-' (a copy is included in the LICENSE file that accompanied this code).
-'
-' You should have received a copy of the GNU Lesser General Public License
-' version 3 along with OpenOffice.org. If not, see
-' <http://www.openoffice.org/license.html>
-' for a copy of the LGPLv3 License.
-'
-'/************************************************************************
-'*
-'* owner : oliver.craemer@oracle.com
-'*
-'* short description : Load/Save test for chart files - Input: SXC, Output: SDC
-'*
-'\************************************************************************
-
-Global gsFileFormat as String
-Global gsDirectoryInSourcePath as String
-Global gsOutputFileCustomExtension as String
-
-sub main
- gsFileFormat = "StarCalc 5.0"
-
- 'Important for determination of input file source path
- '-> gtesttoolpath & "chart2\optional\input\" & gsDirectoryInSourcePath &"\"
- gsDirectoryInSourcePath = "sxc"
-
- 'Custom output file extension. Can be different to result from hGetFilternameExtension.
- 'e.g. "_excel95.xls"
- gsOutputFileCustomExtension = ".sdc"
-
- Printlog "--------------------------------------------------"
- Printlog "--- Load charts in SXC - SaveAS SDC ---"
- Printlog "--------------------------------------------------"
-
- use "chart2/optional/includes/loadsave/ch2_losa.inc"
- use "chart2/tools/ch_tools_common.inc"
-
- Call hStatusIn("Chart2", "ch2_losa_sxc_to_sdc.bas")
- Call subLoSaFromTo
- Call hStatusOut
-end sub
-'
-'-------------------------------------------------------------------------
-'
-sub LoadIncludeFiles
- use "global\system\includes\master.inc"
- use "global\system\includes\gvariabl.inc"
- gApplication = "CALC"
- Call GetUseFiles
-end sub
diff --git a/testautomation/chart2/required/ch2_updt_calc.bas b/testautomation/chart2/required/ch2_updt_calc.bas
index 02cc2c883269..e04d0ab2a70c 100755..100644
--- a/testautomation/chart2/required/ch2_updt_calc.bas
+++ b/testautomation/chart2/required/ch2_updt_calc.bas
@@ -71,8 +71,6 @@ sub main
call tFileSaveAsSTC
call tFileSaveAsXLS
call tFileSaveAsXLT
- call tFileSaveAsSDC
- call tFileSaveAsVOR
call tFileReload
printLog Chr(13) + "---------- Chart2 View Menu -----------"
Call tViewToolbars
diff --git a/testautomation/chart2/required/includes/ch2_file.inc b/testautomation/chart2/required/includes/ch2_file.inc
index f7166df9c82e..51e41398532e 100755..100644
--- a/testautomation/chart2/required/includes/ch2_file.inc
+++ b/testautomation/chart2/required/includes/ch2_file.inc
@@ -37,8 +37,6 @@
' #1 tFileSaveAsSTC
' #1 tFileSaveAsXLS
' #1 tFileSaveAsXLT
-' #1 tFileSaveAsSDC
-' #1 tFileSaveAsVOR
' #1 tFileReload
'*
'\************************************************************************
@@ -295,82 +293,7 @@ testcase tFileSaveAsXLT
endcase
'
'-------------------------------------------------------------
-'
-testcase tFileSaveAsSDC
-'///<u><b>Save the test file as StarCalc 5.0 (.sdc)</b></u>
- Dim sOutputFile as string
-
- sOutputFile = convertpath( gOfficepath & "user/work/verySimpleChart.sdc" )
- '/// Load simple chart document
- if fLoadVerySimpleChartAndSaveLocal() > 0 then
- warnlog "Loading test document seems to have failed -> Check this out!"
- goto endsub
- endif
- '/// Select chart using navigator
- call fSelectFirstOLE
- '/// Invoke Edit::Object::Edit to enter Inplace Mode
- EditObjectEdit
- '/// Convert chart to 3D (just to edit document)
- if NOT fConvertChartTo3D() then
- warnlog "Conversion of chart to 3D failed -> Quit testcase"
- Call hCloseDocument
- goto endsub
- endif
- '/// Unselect chart using Escape key
- Kontext "DocumentCalc"
- DocumentCalc.TypeKeys "<Escape>"
- '/// Save document as StarCalc 5.0 (.sdc)
- if NOT hFileSaveAsWithFilterKill ( sOutputFile , "StarCalc 5.0" ) then
- warnlog "Saving test document as '" & sOutputFile & "' failed -> Aborting"
- call hCloseDocument
- goto endsub
- endif
- '/// Close document
- Kontext "DocumentCalc"
- DocumentCalc.TypeKeys "<Escape>"
- Call hCloseDocument
-endcase
-'
-'-------------------------------------------------------------
-'
-testcase tFileSaveAsVOR
-'///<u><b>Save the test file as StarCalc 5.0 Template(.vor)</b></u>
- Dim sOutputFile as string
-
- sOutputFile = convertpath( gOfficepath & "user/work/verySimpleChart.vor" )
-
- '/// Load simple chart document
- if fLoadVerySimpleChartAndSaveLocal() > 0 then
- warnlog "Loading test document seems to have failed -> Check this out!"
- goto endsub
- endif
- '/// Select chart using navigator
- call fSelectFirstOLE
- '/// Invoke Edit::Object::Edit to enter Inplace Mode
- EditObjectEdit
- '/// Convert chart to 3D (just to edit document)
- if NOT fConvertChartTo3D() then
- warnlog "Conversion of chart to 3D failed -> Quit testcase"
- Call hCloseDocument
- goto endsub
- endif
- '/// Unselect chart using Escape key
- Kontext "DocumentCalc"
- DocumentCalc.TypeKeys "<Escape>"
- '/// Save document as StarCalc 5.0 Template(.vor)
- if NOT hFileSaveAsWithFilterKill ( sOutputFile , "StarCalc 5.0 Vorlage/Template" ) then
- warnlog "Saving test document as '" & sOutputFile & "' failed -> Aborting"
- call hCloseDocument
- goto endsub
- endif
- '/// Close document
- Kontext "DocumentCalc"
- DocumentCalc.TypeKeys "<Escape>"
- Call hCloseDocument
-endcase
-'
-'-------------------------------------------------------------
'
testcase tFileReload
printlog "Load simple chart document"
diff --git a/testautomation/framework/required/includes/smoketest.inc b/testautomation/framework/required/includes/smoketest.inc
index d4e327a21ad7..9fae007b891d 100644
--- a/testautomation/framework/required/includes/smoketest.inc
+++ b/testautomation/framework/required/includes/smoketest.inc
@@ -131,7 +131,7 @@ testcase tSmokeTest
' If macro fails for whatever reason, a message comes up
Kontext
if active.exists() then
- warnlog "#i87290# " + active.getText
+ warnlog "Macro failed " + active.getText
active.ok
call hCloseDocument()
goto endsub
diff --git a/testautomation/framework/required/includes/topten.inc b/testautomation/framework/required/includes/topten.inc
index fdfdb49fec97..24ed020d4c77 100644
--- a/testautomation/framework/required/includes/topten.inc
+++ b/testautomation/framework/required/includes/topten.inc
@@ -65,7 +65,6 @@ testcase Top_ten_test
dim sUserWorkDirectory as string
dim sFilename_native as String
- dim sFilename_export as String
dim sFilter_native as string
dim sFilter_export as String
dim bExportFile as boolean
@@ -78,19 +77,15 @@ testcase Top_ten_test
' set the filenames and their filters. HTML is not exported
if ( gApplication = "HTML" ) then
sFilename_native = "ls_test.html"
- sFilename_export = "ls_test.htm"
bExportFile = FALSE
else
sFilename_native = "ls_test" & hGetSuffix( "current" )
- sFilename_export = "ls_test" & hGetSuffix( "569" )
endif
printlog( "File (current): " & sFilename_native )
- printlog( "File (src569).: " & sFilename_export )
' Delete the workfiles, they might have been left over by prior incomplete testrun
hDeleteFile( sUserWorkDirectory & sFilename_native )
- hDeleteFile( sUserWorkDirectory & sFilename_export )
' Set the API filternames for the current application (native XML format)
select case gApplication
@@ -113,45 +108,16 @@ testcase Top_ten_test
printlog( "Save (default-fileformat): " & sFilename_native )
call hFileSaveAsKill ( sUserWorkDirectory & sFilename_native )
- if ( bExportFile ) then
-
- ' Set the API filternames for the current application (StarOffice 5.2 binary format)
- select case gApplication
- case "WRITER" : sFilter_export = "StarWriter 5.0"
- case "CALC" : sFilter_export = "StarCalc 5.0"
- case "DRAW" : sFilter_export = "StarDraw 5.0"
- case "IMPRESS" : sFilter_export = "StarImpress 5.0"
- case "MATH" : sFilter_export = "StarMath 5.0"
- case "MASTERDOCUMENT" : sFilter_export = "StarWriter 5.0/GlobalDocument"
- case else : warnlog "Invalid gApplication: " & gApplication
- end select
-
- printlog( "Save (5.2-fileformat): " & sFilename_export )
- hFileSaveAsWithFilterKill( sUserWorkDirectory & sFilename_export , sFilter_export )
-
- printlog( "Close" )
- FileClose
-
- ' There should be no alien warning
- kontext "active"
- If ( active.exists( 1 ) ) then
- warnlog( "Unexpected messagebox: '" & active.getText & "'" )
- Active.Yes
- else
- printlog( "No more alien warning on closing the document. Good." )
- endif
- else
- FileClose
+ FileClose
- kontext "active"
- if ( Active.Exists( 1 ) ) then
- warnlog( "Unexpected Active after saving: '" & active.getText & "'" )
- try
- Active.Yes()
- catch
- Active.No()
- endcatch
- endif
+ kontext "active"
+ if ( Active.Exists( 1 ) ) then
+ warnlog( "Unexpected Active after saving: '" & active.getText & "'" )
+ try
+ Active.Yes()
+ catch
+ Active.No()
+ endcatch
endif
printlog( "Load (default-fileformat): " & sFilename_native )
@@ -167,60 +133,7 @@ testcase Top_ten_test
printlog( "Close" )
FileClose
- if ( bExportFile ) then
-
- printlog( "Load (5.2-fileformat): " & sFilename_export )
- call hFileOpen (sUserWorkDirectory & sFilename_export)
-
- if ( gApplication = "MATH" AND iSprache = 84 AND gPlatform="lin" ) then
- try
- kontext "DocumentMath"
- DocumentMath.MouseDown(50,50)
- DocumentMath.MouseUp(50,50)
- qaErrorLog( "Use workaround focus problem for math and language vi/84" )
- ' Needed by AndreSchnabel, not manual reproduceable, only with TestTool
- catch
- qaErrorLog( "Workaround focus problem failed." )
- endcatch
- endif
-
- ' Modify the export document to trigger the alien warning on next save
- printlog( "Change the document" )
- hChangeDoc()
-
- printlog( "Save" )
- FileSave
-
- Kontext "AlienWarning"
- if ( AlienWarning.exists( 3 ) ) then
- printlog( "Closing expected alien warning. Good." )
- AlienWarning.OK()
- else
- warnlog( "Alien warning is missing" )
- endif
-
- kontext "active"
- if ( Active.Exists( 3 ) ) then
- warnlog( "Unexpected messagebox: '" & active.getText & "'" )
- Active.yes
- else
- printlog( "No unexpected messages on save. Good." )
- endif
-
- printlog( "Close" )
- FileClose
-
- kontext "active"
- if ( Active.Exists() ) then
- warnlog( "Unexpected messagebox: '" & active.getText & "'" )
- Active.Yes()
- else
- printlog( "No more alien warning to close. Good." )
- endif
- endif
-
hDeleteFile( sUserWorkDirectory & sFilename_native )
- hDeleteFile( sUserWorkDirectory & sFilename_export )
endcase
diff --git a/testautomation/framework/required/input/10erTest_680.sxw b/testautomation/framework/required/input/10erTest_680.sxw
index afae9513c6fe..b07bfc2e36bb 100755
--- a/testautomation/framework/required/input/10erTest_680.sxw
+++ b/testautomation/framework/required/input/10erTest_680.sxw
Binary files differ
diff --git a/testautomation/graphics/optional/includes/global/g_clipboard.inc b/testautomation/graphics/optional/includes/global/g_clipboard.inc
index d43c49610c26..d3ff4cdcfea5 100644
--- a/testautomation/graphics/optional/includes/global/g_clipboard.inc
+++ b/testautomation/graphics/optional/includes/global/g_clipboard.inc
@@ -30,15 +30,6 @@
'* short description :
'*
'**************************************************************************************
-' #1 tiEditUndo
-' #1 tiEditRedo
-' #1 tiEditClipboard
-' #1 tiEditPasteSpecial_HTML
-' #1 tdEditPasteSpecial_Text
-' #1 tdEditPasteSpecial_Graphic
-' #1 tdEditPasteSpecial_Circle
-' #1 tiEditPasteSpecial
-'\*************************************************************************************
testcase tiEditUndo
@@ -128,6 +119,7 @@ testcase tiEditUndo
end if
TabPositionAndSize.Cancel
printlog "Close document"
+ Call hCloseDocument
sLocaltestfile = hFileGetLocalPath( gTesttoolPath + "leer."+ExtensionString )
printlog sLocaltestfile
if (FileExists (sLocaltestfile)) then
@@ -137,8 +129,7 @@ testcase tiEditUndo
warnlog "File is missing."
endif
- printlog "Close document"
- Call hCloseDocument
+ printlog "Close document"
endcase 'tiEditUndo
diff --git a/testautomation/graphics/required/includes/global/id_001.inc b/testautomation/graphics/required/includes/global/id_001.inc
index fee150c8381a..b878278961b1 100644
--- a/testautomation/graphics/required/includes/global/id_001.inc
+++ b/testautomation/graphics/required/includes/global/id_001.inc
@@ -105,68 +105,122 @@ testcase tiFileSaveAs
printlog "load a sample presentation file"
Call hFileOpen ( ConvertPath(gTesttoolPath + sFileName) )
WaitSlot (3000)
-
- printlog "running 5 times save as with different Filters"
- for i = 1 to 6
- printlog "calling Save as Dialog"
- FileSaveAs
- WaitSlot (2000)
- Kontext "SpeichernDlg"
- printlog "Selecting filter according to number of run"
- Dateityp.Select i
- sFilterName = Dateityp.GetSelText
- sFileName = sPath + sFile + (i)
- printlog "Filename is " & sFileName
- printlog "Filtername for this file is " & sFilterName
- Dateiname.SetText (sFileName)
- Speichern.Click
- kontext "AlienWarning"
- if AlienWarning.exists(5) then
- AlienWarning.OK
+
+ printlog "Select between Impress and Draw:"
+
+ if (gApplication = "DRAW") then
+ printlog "CASE DRAW: running 4 times save as with different Filters"
+ for i = 1 to 4
+ printlog "calling Save as Dialog, " & i
+ FileSaveAs
+ WaitSlot (2000)
+ Kontext "SpeichernDlg"
+ printlog "Selecting filter according to number of run"
+ Dateityp.Select i
+ sFilterName = Dateityp.GetSelText
+ sFileName = sPath + sFile + (i)
+ printlog "Filename is " & sFileName
+ printlog "Filtername for this file is " & sFilterName
+ Dateiname.SetText (sFileName)
+ Speichern.Click
+ kontext "AlienWarning"
+ if AlienWarning.exists(5) then
+ AlienWarning.OK
+ end if
+ WaitSlot (5000)
+ next i
+ printlog "closing the sample file"
+ fileclose
+ WaitSlot (3000)
+ kontext "Messagebox"
+ if Messagebox.exists then
+ printlog "Messagebox about informationloss... :-) that's OK: 'Text in the messagebox: "+Messagebox.GetText+"'"
+ Messagebox.YES
end if
- WaitSlot (5000)
- next i
- printlog "closing the sample file"
- fileclose
- WaitSlot (3000)
- kontext "Messagebox"
- if Messagebox.exists then
- printlog "Messagebox about informationloss... :-) that's OK: 'Text in the messagebox: "+Messagebox.GetText+"'"
- Messagebox.YES
- end if
-
- printlog "Loading the former saved files:"
- for i = 1 to 6 'run it 5 times
-
- FileOpen
- Kontext "OeffnenDlg"
- WaitSlot (2000)
- DateiAuswahl.TypeKeys "<END>"
- DateiAuswahl.TypeKeys "<HOME>"
- if i <> 1 then
- DateiAuswahl.TypeKeys "<DOWN>", (i-1)
- endif
- sFileNameLoaded = Dateiname.GetSelText
- printlog "File will be loaded: " & sFileNameLoaded
- Oeffnen.Click
- printlog "Closing doc if it gets loaded: " & sFileNameLoaded
- if gApplication = "IMPRESS" then
- Kontext "DocumentImpress"
- if DocumentImpress.exists(5) then
- Call hCloseDocument
- else
- warnlog "File did not get loaded."
+
+ printlog "Loading the former saved files:"
+ for i = 1 to 4 'run it 4 times
+
+ FileOpen
+ Kontext "OeffnenDlg"
+ WaitSlot (2000)
+ DateiAuswahl.TypeKeys "<END>"
+ DateiAuswahl.TypeKeys "<HOME>"
+ if i <> 1 then
+ DateiAuswahl.TypeKeys "<DOWN>", (i-1)
endif
- else
+ sFileNameLoaded = Dateiname.GetSelText
+ printlog i & ":File will be loaded: " & sFileNameLoaded
+ Oeffnen.Click
+ printlog "Closing doc if it gets loaded: " & sFileNameLoaded
Kontext "DocumentDraw"
if DocumentDraw.exists(5) then
Call hCloseDocument
else
warnlog "File did not get loaded."
endif
- endif
- WaitSlot (2000)
- next i
+ WaitSlot (2000)
+ next i
+ else
+ printlog "CASE IMPRESS: running 9 times save as with different Filters"
+ for i = 1 to 9
+ printlog "calling Save as Dialog, " & i
+ FileSaveAs
+ WaitSlot (2000)
+ Kontext "SpeichernDlg"
+ printlog "Selecting filter according to number of run"
+ Dateityp.Select i
+ sFilterName = Dateityp.GetSelText
+ sFileName = sPath + sFile + (i)
+ printlog "Filename is " & sFileName
+ printlog "Filtername for this file is " & sFilterName
+ Dateiname.SetText (sFileName)
+ Speichern.Click
+ kontext "AlienWarning"
+ if AlienWarning.exists(5) then
+ AlienWarning.OK
+ end if
+ WaitSlot (5000)
+ next i
+ printlog "closing the sample file"
+ fileclose
+ WaitSlot (3000)
+ kontext "Messagebox"
+ if Messagebox.exists then
+ printlog "Messagebox about informationloss... :-) that's OK: 'Text in the messagebox: "+Messagebox.GetText+"'"
+ Messagebox.YES
+ end if
+
+ printlog "Loading the former saved files:"
+ for i = 1 to 9 'run it 9 times
+ FileOpen
+ Kontext "OeffnenDlg"
+ WaitSlot (2000)
+ DateiAuswahl.TypeKeys "<END>"
+ DateiAuswahl.TypeKeys "<HOME>"
+ if i <> 1 then
+ DateiAuswahl.TypeKeys "<DOWN>", (i-1)
+ endif
+ sFileNameLoaded = Dateiname.GetSelText
+ printlog i & ":File will be loaded: " & sFileNameLoaded
+ Oeffnen.Click
+ printlog "Closing doc if it gets loaded: " & sFileNameLoaded
+ printlog "For checking if its open and closing the doc we need to differ Impress and Draw:"
+ Kontext "DocumentImpress"
+ if DocumentImpress.exists(5) then
+ Call hCloseDocument
+ else
+ Kontext "DocumentDraw"
+ if DocumentDraw.exists(5) then
+ Call hCloseDocument
+ else
+ warnlog "File did not get loaded."
+ endif
+ endif
+
+ WaitSlot (2000)
+ next i
+ endif
endcase 'tiFileSaveAs
diff --git a/testautomation/math/optional/includes/m_101_.inc b/testautomation/math/optional/includes/m_101_.inc
index 58582452dc63..c36bb8822808 100644
--- a/testautomation/math/optional/includes/m_101_.inc
+++ b/testautomation/math/optional/includes/m_101_.inc
@@ -243,7 +243,7 @@ endcase
testcase tFilePassword
dim i,x as integer
dim sTemp as string
- const cFilterCount = 4
+ const cFilterCount = 3
dim sFilterName as string
dim sFilter as string
dim sFilterExt() as string
@@ -269,7 +269,6 @@ testcase tFilePassword
if x <> cFilterCount then warnlog " The Filter count is wrong! Have to be ("+cFilterCount+"), but are: "+x
' Check: (1): Open Office Formula (.oof)
' Check: (2): MathML 1.01 (.mml)
-' Check: (5): StarMath 5.0 (.smf)
' Check: (6): StarOffice 6.0/7 Formula (.sxm)
'/// check if any other then gMathFilter is password able; and if gMathFilter is password able ///'
diff --git a/testautomation/writer/optional/includes/loadsave/w_loadsave.inc b/testautomation/writer/optional/includes/loadsave/w_loadsave.inc
index f8dd252cd174..33768d6ffc38 100644
--- a/testautomation/writer/optional/includes/loadsave/w_loadsave.inc
+++ b/testautomation/writer/optional/includes/loadsave/w_loadsave.inc
@@ -217,7 +217,7 @@ testcase tExportAllReadableFormatsIntoThemselves
end if
app.Mkdir sWorkDirectory
- For iCurrentFileIndex = 7 to 7
+ For iCurrentFileIndex = 1 to 7
select case iCurrentFileIndex
case 1 : sCurrentFile = "xml2.odt"
sCurrentFilter = "writer8"
@@ -225,49 +225,18 @@ testcase tExportAllReadableFormatsIntoThemselves
sCurrentFilter = "Text (encoded)"
case 3 : sCurrentFile = "dostext.txt"
sCurrentFilter = "Text (encoded)"
- case 4 : sCurrentFile = "sw30.sdw"
- sCurrentFilter = "StarWriter 3.0"
- case 5 : sCurrentFile = "sw50.vor"
- sCurrentFilter = "StarWriter 5.0 Vorlage/Template"
- case 6 : sCurrentFile = "sw31.sdw"
- sCurrentFilter = "StarWriter 3.0"
- case 7 : sCurrentFile = "sw31.vor"
- sCurrentFilter = "StarWriter 3.0 Vorlage/Template"
- case 8 : sCurrentFile = "sw40.sdw"
- sCurrentFilter = "StarWriter 4.0"
- case 9 : sCurrentFile = "sw40_sp2.vor"
- sCurrentFilter = "StarWriter 4.0 Vorlage/Template"
- case 10 : sCurrentFile = "sw50.sdw"
- sCurrentFilter = "StarWriter 5.0"
- case 11 : sCurrentFile = "html.html"
+ case 4 : sCurrentFile = "html.html"
sCurrentFilter = "HTML (StarWriter)"
- case 12 : sCurrentFile = "rtf.rtf"
+ case 5 : sCurrentFile = "rtf.rtf"
sCurrentFilter = "Rich Text Format"
- case 13 : sCurrentFile = "sw60.sxw"
+ case 6 : sCurrentFile = "sw60.sxw"
sCurrentFilter = "StarOffice XML (Writer)"
- case 14 : sCurrentFile = "winw97.doc"
+ case 7 : sCurrentFile = "winw97.doc"
sCurrentFilter = "MS Word 97"
- case 15 : sCurrentFile = "winword6.doc"
+ case 8 : sCurrentFile = "winword6.doc"
sCurrentFilter = "MS Word 95"
- case 16 : sCurrentFile = "wintext.txt"
+ case 9 : sCurrentFile = "wintext.txt"
sCurrentFilter = "Text (encoded)"
- ' case 17 : sCurrentFile = "pocketword.psw"
- ' sCurrentFilter = "PocketWord File"
- ' TODO: 18-23 not applyable. Can be opened, but saving in the format is not supported.
- ' case 18 : sCurrentFile = "unixtext.txt"
- ' sCurrentFilter = "Text"
- ' case 19 : sCurrentFile = "sw2.sdw"
- ' sCurrentFilter = "StarWriter 2.0"
- ' case 20 : sCurrentFile = "amipro3.sam"
- ' sCurrentFilter = "Ami Pro 1.x-3.1 (W4W)"
- ' case 21 : sCurrentFile = "mactext.txt"
- ' sCurrentFilter = "Mac Write 4.x 5.0 (W4W)"
- ' case 22 : sCurrentFile = "sw1.sdw"
- ' sCurrentFilter = "StarWriter 1.0"
- ' case 23 : sCurrentFile = "swdoc.txt"
- ' sCurrentFilter = "Text (encoded) (StarWriter/GlobalDocument)"
- ' case 24 : sCurrentFile = "hangul.hwp"
- ' sCurrentFilter = "writer_MIZI_Hwp_97"
end select
sLoadFile = sImportDir & sCurrentFile
diff --git a/testautomation/writer/optional/includes/number/w_207_.inc b/testautomation/writer/optional/includes/number/w_207_.inc
index 4bc525553f56..972f2303d565 100644
--- a/testautomation/writer/optional/includes/number/w_207_.inc
+++ b/testautomation/writer/optional/includes/number/w_207_.inc
@@ -106,12 +106,15 @@ testcase tToolsNumbering12
"." & sCurrentFilterExt )
hDeleteFile( ExportFileName ) ' There should never be a reason to overwrite
- printlog " - export as: " & ExportFileName
- Call hFileSaveAsWithFilter( ExportFileName, sCurrentFilter )
- Call hCloseDocument
-
- printlog " - load previous saved document"
- hFileOpen( ExportFileName )
+ ' Binary export filter was removed
+ if iDocumentType < 3 then
+ printlog " - export as: " & ExportFileName
+ Call hFileSaveAsWithFilter( ExportFileName, sCurrentFilter )
+ Call hCloseDocument
+
+ printlog " - load previous saved document"
+ hFileOpen( ExportFileName )
+ endif
printlog " - close document"
hFileCloseAll()