summaryrefslogtreecommitdiff
path: root/testautomation/graphics/optional/includes/global/g_ole.inc
diff options
context:
space:
mode:
Diffstat (limited to 'testautomation/graphics/optional/includes/global/g_ole.inc')
-rw-r--r--testautomation/graphics/optional/includes/global/g_ole.inc57
1 files changed, 33 insertions, 24 deletions
diff --git a/testautomation/graphics/optional/includes/global/g_ole.inc b/testautomation/graphics/optional/includes/global/g_ole.inc
index 3d30cf52ca85..84ff10294e6d 100644
--- a/testautomation/graphics/optional/includes/global/g_ole.inc
+++ b/testautomation/graphics/optional/includes/global/g_ole.inc
@@ -29,10 +29,6 @@
'*
'* short description: includefile for Ole-testing
'*
-'**************************************************************************************
-' #1 tOLE_Copy
-' #1 tOLE_SaveLoad
-' #1 tiOpenOLECrash
'\*************************************************************************************
testcase tOLE_Copy
@@ -274,16 +270,18 @@ testcase tOLE_SaveLoad
MenuSelect (0)
printlog "Save the File."
FileSaveAs
- sleep 1
Kontext "SpeichernDlg"
- Dateiname.Settext (filename)
- printlog "Saving as: " & filename
- Speichern.Click
+ if ( SpeichernDlg.exists( 1 ) ) then
+ Dateiname.Settext (filename)
+ printlog "Saving as: " & filename
+ Speichern.Click
+ else
+ warnlog( "<FileSaveAs> dialog did not open" )
+ endif
printlog "If the file already exists - press yes to overwrite it."
- Sleep 3
kontext "Messagebox"
- if Messagebox.exists then
+ if ( Messagebox.exists( 3 ) ) then
Messagebox.Yes
endif
Sleep 3
@@ -364,20 +362,31 @@ testcase tiOpenOLECrash
FileSaveAs
Kontext "SpeichernDlg"
- sFileodp = (ConvertPath(gOfficePath + "user\work\generic_de"))
- Dateiname.SetText (sFileodp)
- Dateityp.Select (1)
- Speichern.Click
- Kontext "Messagebox"
- if Messagebox.Exists(2) then
- Messagebox.Yes
- Kontext "AlienWarning"
- if AlienWarning.Exists(2) then
- Warnlog "Should not be any alienwarning when saving in our own format!"
- AlienWarning.OK
- end if
- printlog "Saved as: " + sFileodp
- end if
+ if ( SpeichernDlg.exists( 2 ) ) then
+ sFileodp = (ConvertPath(gOfficePath + "user\work\generic_de"))
+ Dateiname.SetText (sFileodp)
+ Dateityp.Select (1)
+ Speichern.Click
+ Kontext "Messagebox"
+ if Messagebox.Exists(2) then
+ try
+ Messagebox.Yes
+ catch
+ warnlog( "#i110938 - Failure to save certain impress documents" )
+ Messagebox.ok()
+ goto endsub
+ endcatch
+ Kontext "AlienWarning"
+ if AlienWarning.Exists(2) then
+ Warnlog "Should not be any alienwarning when saving in our own format!"
+ AlienWarning.OK
+ end if
+ printlog "Saved as: " + sFileodp
+ end if
+ else
+ warnlog( "<FileSaveAs> dislog did not open" )
+ goto endsub
+ endif
Sleep 3
kontext "DocumentImpress"
printlog "3. Close Impress."