diff options
Diffstat (limited to 'testautomation/framework/required/includes/window_functions.inc')
-rwxr-xr-x | testautomation/framework/required/includes/window_functions.inc | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/testautomation/framework/required/includes/window_functions.inc b/testautomation/framework/required/includes/window_functions.inc index acc5e7a5219d..6917639d30f8 100755 --- a/testautomation/framework/required/includes/window_functions.inc +++ b/testautomation/framework/required/includes/window_functions.inc @@ -196,8 +196,18 @@ end sub testcase tCheckWindowTitle( sApplication as string, sReference as string ) + if ( sApplication = "soffice" ) then + + printlog( "Update test for the office window titles" ) + ' This is a Testtool-only problem that the product name is not displayed + ' after calling hCloseDocument() on the last document. + if ( sApplication = "soffice" ) then + qaerrorlog( "#i113760# - Product name missing for backing window" ) + goto endsub + endif + const BASIC_MODULE = "tCheckWindowTitle" const STRING_NOT_FOUND = 0 const STRING_LEFTMOST = 1 @@ -217,21 +227,12 @@ testcase tCheckWindowTitle( sApplication as string, sReference as string ) printlog( "Application: " & sApplication & "; Title should be: " & sReference ) printlog( "Open the work windows (documents)" ) hInitSingleDoc() - hCreateDocument() printlog( "Verify that the correct window is open" ) select case sApplication - case "swriter" : - case "sglobal" : - case "sweb" : - case "scalc" : - case "simpress": - case "sdraw" : - case "smath" : case "basic" : hInitBasicIDE( BASIC_MODULE ) - case "chart" : - case "database": case "soffice" : hFileCloseAll() + case else : hCreateDocument() end select ' Note: The Testtool connection string does not belong to the window caption @@ -290,16 +291,7 @@ testcase tCheckWindowTitle( sApplication as string, sReference as string ) printlog( "Cleanup after test" ) select case sApplication - case "swriter" : - case "sglobal" : - case "sweb" : - case "scalc" : - case "simpress": - case "sdraw" : - case "smath" : case "basic" : hDestroyDocument() - case "chart" : - case "database": case "soffice" : hCreateDocument() end select |