diff options
author | Joerg Skottke [jsk] <jsk@openoffice.org> | 2010-01-12 11:51:21 +0100 |
---|---|---|
committer | Joerg Skottke [jsk] <jsk@openoffice.org> | 2010-01-12 11:51:21 +0100 |
commit | 53fa1c622f0c74325e13d8afe1b5351ca0c00f02 (patch) | |
tree | 22c6a6f4e0b45b8e05b06fbbc5131bf29498177d /testautomation/framework/required/includes/basic_macroassignment.inc | |
parent | 28bd293e222e9e1013a5dd1200d622c3f5c97f0d (diff) |
sb111: Better dialog handling for the Assign Macro dialog (using timeout now). Added slot <ContextProperties> to hUseAsyncSlot
Diffstat (limited to 'testautomation/framework/required/includes/basic_macroassignment.inc')
-rwxr-xr-x | testautomation/framework/required/includes/basic_macroassignment.inc | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/testautomation/framework/required/includes/basic_macroassignment.inc b/testautomation/framework/required/includes/basic_macroassignment.inc index 92c88f7ace17..88a88bad48da 100755 --- a/testautomation/framework/required/includes/basic_macroassignment.inc +++ b/testautomation/framework/required/includes/basic_macroassignment.inc @@ -106,20 +106,28 @@ testcase tUpdtMacroAssignment Kontext "AssignMacro" printlog( "Current Dialog: Assign Macro" ) - call dialogtest( AssignMacro ) - printlog( "Click the Assign-Button on the Macro-Assignment-Dialog" ) - AssignButton.click() - - Kontext "ScriptSelector" - printlog( "Current Dialog: ScriptSelector" ) - call dialogtest( ScriptSelector ) - printlog( "Cancel the scriptselector" ) - ScriptSelector.cancel() - - Kontext "AssignMacro" - printlog( "Current Dialog: Assign Macro" ) - printlog( "Cancel the Script-Assignement-Dialog" ) - AssignMacro.cancel() + if ( AssignMacro.exists( 1 ) ) then + call dialogtest( AssignMacro ) + printlog( "Click the Assign-Button on the Macro-Assignment-Dialog" ) + AssignButton.click() + + Kontext "ScriptSelector" + printlog( "Current Dialog: ScriptSelector" ) + if ( ScriptSelector.exists( 1 ) ) then + call dialogtest( ScriptSelector ) + printlog( "Cancel the scriptselector" ) + ScriptSelector.cancel() + else + warnlog( "Failed to open/access <ScriptSelector>" ) + endif + + Kontext "AssignMacro" + printlog( "Current Dialog: Assign Macro" ) + printlog( "Cancel the Script-Assignement-Dialog" ) + AssignMacro.cancel() + else + warnlog( "Failed to open/access <AssignMacro> dialog" ) + endif endif |