diff options
author | Joerg Skottke [jsk] <jsk@openoffice.org> | 2010-05-25 19:33:35 +0200 |
---|---|---|
committer | Joerg Skottke [jsk] <jsk@openoffice.org> | 2010-05-25 19:33:35 +0200 |
commit | 6bfb3c970edacf5230a0bf324204820ef474954f (patch) | |
tree | 91e4ee88f5a8e6533bf5b362b73e1534646ec168 | |
parent | 71776505ceef5878a06318e8f5e8bb159263a567 (diff) |
vitomation01: #i109696 - Dramatically simplified test case, provided long missing function to select item in a list by name (which would work using the treelist function as well but looks rather awkward when called from within a test case - it is just the wrong control.
-rwxr-xr-x | testautomation/framework/optional/includes/basic_gridcontrol.inc | 10 | ||||
-rwxr-xr-x | testautomation/global/tools/includes/optional/t_treelist_tools.inc | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/testautomation/framework/optional/includes/basic_gridcontrol.inc b/testautomation/framework/optional/includes/basic_gridcontrol.inc index 24102f770f4e..346e929b886d 100755 --- a/testautomation/framework/optional/includes/basic_gridcontrol.inc +++ b/testautomation/framework/optional/includes/basic_gridcontrol.inc @@ -61,11 +61,11 @@ testcase tGridcontrolLoad hCloseDialog( ScriptSelector, "ok" ) printlog( "Probe for unexpected messagebox" ) - - ' REM what is supposed to happen here? - ' Wait for a messagebox and print an error no matter what? - ' Very, very strange - + kontext "Active" + if ( Active.exists( 5 ) ) then + warnlog( "Unexpected messagebox: " & Active.getText() ) + Active.ok() + endif else warnlog( "The requested Macro could not be found: " & MACRO_NAME ) endif diff --git a/testautomation/global/tools/includes/optional/t_treelist_tools.inc b/testautomation/global/tools/includes/optional/t_treelist_tools.inc index ba16f529c100..8efb2917568c 100755 --- a/testautomation/global/tools/includes/optional/t_treelist_tools.inc +++ b/testautomation/global/tools/includes/optional/t_treelist_tools.inc @@ -452,6 +452,8 @@ function hFindInList( oControl as object, cObject as string ) as integer for iCurrentObject = 1 to oControl.getItemCount() + oControl.select( iCurrentObject ) + if ( oControl.getSelText() = cObject ) then hFindInList() = iCurrentObject exit function |