summaryrefslogtreecommitdiff
path: root/testautomation/graphics/required/includes
diff options
context:
space:
mode:
authorJoerg Skottke [jsk] <jsk@openoffice.org>2010-04-15 11:14:44 +0200
committerJoerg Skottke [jsk] <jsk@openoffice.org>2010-04-15 11:14:44 +0200
commit9742b2c31d03e6722eddfbc724fc5d8ef6c74cd7 (patch)
tree247ac01c2e11bf5da35e6a944588addb7e98d4d6 /testautomation/graphics/required/includes
parent8791c8522c267c28b1513bf0bb66f03ebb8ca819 (diff)
vitomation01: #i109562 - More stability fixes
Diffstat (limited to 'testautomation/graphics/required/includes')
-rwxr-xr-x[-rw-r--r--]testautomation/graphics/required/includes/impress/im_003_.inc77
1 files changed, 43 insertions, 34 deletions
diff --git a/testautomation/graphics/required/includes/impress/im_003_.inc b/testautomation/graphics/required/includes/impress/im_003_.inc
index 280dae56b1d1..02f6dae3b2b1 100644..100755
--- a/testautomation/graphics/required/includes/impress/im_003_.inc
+++ b/testautomation/graphics/required/includes/impress/im_003_.inc
@@ -204,46 +204,55 @@ testcase tiViewSlideMaster
endcase 'tiViewSlideMaster
'--------------------------------------------------------
testcase tiViewToolbar_1
+
+ const DEFAULT_DELAY = 3
- Dim Zaehler as integer
- Dim i as integer
-
+ Dim NumberOfGraphicModes as integer
+ Dim iCurrentGraphicsMode as integer
+
+ dim TestFile as string
+ TestFile = ConvertPath (gTesttoolPath + "global\input\graf_inp\desp.bmp")
+
printlog "open application "
Call hNewDocument
- sleep 2
+
printlog "Insert->Graphic... : global\input\graf_inp\desp.bmp "
- InsertGraphicsFromFile
- sleep 2
+ hUseAsyncSlot( "InsertGraphicsFromFile" )
+
Kontext "GrafikEinfuegenDlg"
- sleep 1
- Dateiname.SetText ConvertPath (gTesttoolPath + "global\input\graf_inp\desp.bmp")
- sleep 1
- Oeffnen.Click
- sleep 3
- Kontext "Messagebox"
- if Messagebox.Exists then
- Warnlog Messagebox.GetText
- Messagebox.OK
- end if
- Kontext "DocumentImpress"
- printlog "select graphic "
- EditSelectAll
- sleep 2
- Kontext "GraphicObjectbar"
- sleep 1
- printlog "The Graphics Toolbar has to be visible now; If not -> ERROR "
- if GraphicObjectbar.Exists Then
- Printlog "- graphic object toolbar exists"
- Zaehler=Grafikmodus.GetItemCount
- for i = 1 to Zaehler
- Printlog "- access all controls in the toolbar (" +i+"/"+Zaehler+")"
- Grafikmodus.Select i
- sleep 3
- next i
- sleep 3
+ if ( GrafikEinfuegenDlg.exists( DEFAULT_DELAY ) ) then
+ Dateiname.SetText( TestFile )
+ Oeffnen.Click
+
+ Kontext "Messagebox"
+ if ( Messagebox.Exists( DEFAULT_DELAY ) ) then
+ Warnlog Messagebox.GetText
+ hCloseDialog( Messagebox, "ok" )
+ end if
+
+ Kontext "DocumentImpress"
+ printlog "select graphic "
+ hUseAsyncSlot( "EditSelectAll" )
+
+ Kontext "GraphicObjectbar"
+ printlog "The Graphics Toolbar has to be visible now; If not -> ERROR "
+ if ( GraphicObjectbar.Exists( DEFAULT_DELAY ) ) Then
+
+ Printlog "- graphic object toolbar exists"
+ NumberOfGraphicModes=Grafikmodus.GetItemCount
+
+ for iCurrentGraphicsMode = 1 to NumberOfGraphicModes
+ Printlog( "- access all controls in the toolbar (" & iCurrentGraphicsMode & "/" & NumberOfGraphicModes & ")" )
+ Grafikmodus.Select( iCurrentGraphicsMode )
+ sleep ( DEFAULT_DELAY )
+ next iCurrentGraphicsMode
+ else
+ Warnlog "- No graphic function toolbar visible"
+ end if
else
- Warnlog "- No graphic function toolbar visible"
- end if
+ warnlog( "Insert Graphics dialog did not open" )
+ endif
+
printlog "close application "
Call hCloseDocument