diff options
author | Thomas Lange [tl] <tl@openoffice.org> | 2010-08-05 17:16:04 +0200 |
---|---|---|
committer | Thomas Lange [tl] <tl@openoffice.org> | 2010-08-05 17:16:04 +0200 |
commit | b980c014e3d19450a169347243c7609b63864b9a (patch) | |
tree | f74a8b7f338402c09462784f9d3b86eb1c292451 /testautomation/framework/optional/includes/extras_modify_objects.inc | |
parent | 924eab5afc99b0b0ecfa76ac4606a058e0d67328 (diff) | |
parent | 7bbf7ff48ffcd5a6dcfc46c31d95df33c360e4ee (diff) |
cws tl82: merge with DEV300_m86
Diffstat (limited to 'testautomation/framework/optional/includes/extras_modify_objects.inc')
-rwxr-xr-x[-rw-r--r--] | testautomation/framework/optional/includes/extras_modify_objects.inc | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/testautomation/framework/optional/includes/extras_modify_objects.inc b/testautomation/framework/optional/includes/extras_modify_objects.inc index b8cf23170942..f2e4717d2e96 100644..100755 --- a/testautomation/framework/optional/includes/extras_modify_objects.inc +++ b/testautomation/framework/optional/includes/extras_modify_objects.inc @@ -25,7 +25,7 @@ ' '/************************************************************************ '* -'* owner : joerg.skottke@sun.com +'* owner : joerg.skottke@oracle.com '* '* short description : Perform standard operations on all samples/templates etc. '* @@ -81,12 +81,12 @@ testcase tModifyObjects( iMode as integer, cCategory as string, sVer as string ) next iObject printlog( "Verify object count (en_US only)" ) - if ( gProductName = "StarOffice" and gISOLang = "en-US" ) then + if ( gProductName = "Oracle Open Office" and gISOLang = "en-US" ) then if ( iObjectSum <> iObjectCountExpected ) then warnlog( "Number of objects has changed. OLD: " & iObjectCountExpected &_ " NEW: " & iObjectSum ) else - printlog( "Object count is ok for en-US / StarOffice" ) + printlog( "Object count is ok for en-US / Oracle Open Office" ) endif else printlog( "Template count testing skipped for non-en_US/StarOffice" ) @@ -95,7 +95,7 @@ testcase tModifyObjects( iMode as integer, cCategory as string, sVer as string ) Kontext "TemplateAndDocuments" printlog( "Switch from preview to document info" ) docinfo.click() - TemplateAndDocuments.cancel() + hCloseDialog( TemplateAndDocuments, "cancel" ) printlog( "" ) printlog( "Starting to load/save/close/reload/close all Objects" ) @@ -111,11 +111,14 @@ testcase tModifyObjects( iMode as integer, cCategory as string, sVer as string ) printlog( "Folder index = " & iObjectFolder & ", Object index = " & iObject ) hFileCloseAll() - - if ( iReset = 10 ) then - call exitRestartTheOffice() - iReset = 0 - endif + + ' every now and then the office becomes a little unstable. + ' Enable the if()-block then, otherwise you might miss some broken + ' documents (because the test aborts too early) + 'if ( iReset = 10 ) then + ' call exitRestartTheOffice() + ' iReset = 0 + 'endif printlog( "Select the item we want to load" ) FileNewFromTemplate @@ -138,17 +141,19 @@ testcase tModifyObjects( iMode as integer, cCategory as string, sVer as string ) if ( hFileWait( false ) = -6 ) then warnlog( "Load failure: ASCII filter dialog displayed, recovering" ) kontext "FilterAuswahl" - FilterAuswahl.cancel() + hCloseDialog( FilterAuswahl, "cancel" ) hDestroyDocument() else printlog( "Build filename; save, reload and delete" ) sFile = sPath & cCategory & iObjectFolder & "_" & iObject - hCloseNavigator() + kontext "Navigator" + hCloseDialog( Navigator, "close,optional" ) hFileSaveAsKill( sFile ) hDestroyDocument() hFileOpen( sFile ) hHandleActivesOnLoad( 1 , 2 ) - hCloseNavigator() + kontext "Navigator" + hCloseDialog( Navigator, "close,optional" ) hDestroyDocument() hDeleteFile( sFile ) printlog( "Test cycle done, going for next object." ) |