diff options
author | Joerg Skottke [jsk] <jsk@openoffice.org> | 2010-09-30 13:18:23 +0200 |
---|---|---|
committer | Joerg Skottke [jsk] <jsk@openoffice.org> | 2010-09-30 13:18:23 +0200 |
commit | 5bac830087fc7f5657ef8b5b0e4e57dbf0768acd (patch) | |
tree | 8b88255e3e5d078794798b274ab04ef272e77ed1 /testautomation/spreadsheet | |
parent | 97547b76291f2b10045ce4c57b83672391a43db4 (diff) |
automationdev300m87: #i112208# - c_updt_filemenu.in used own code to do hFileOpenLocally(), replaced it (old code left outcommented). Added deletion of workfile at the end of the test.
Diffstat (limited to 'testautomation/spreadsheet')
-rw-r--r-- | testautomation/spreadsheet/required/includes/c_upd_filemenu.inc | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/testautomation/spreadsheet/required/includes/c_upd_filemenu.inc b/testautomation/spreadsheet/required/includes/c_upd_filemenu.inc index a2e3f5a70598..4cf87e0e226a 100644 --- a/testautomation/spreadsheet/required/includes/c_upd_filemenu.inc +++ b/testautomation/spreadsheet/required/includes/c_upd_filemenu.inc @@ -371,11 +371,15 @@ end if Printlog " Enter some text" Kontext "DocumentCalc" DocumentCalc.Typekeys "The first doc!<RETURN>" + Printlog " Copy Test File spreadsheet/required/input/recentdocument.ods locally" - app.FileCopy convertpath(gTesttoolpath & "spreadsheet\required\input\recentdocument.ods"),gOfficePath + ConvertPath("user/work/recentdocument.ods") - Printlog " Load local copied testfile recentdocument.ods" - sTestFile = convertpath(gOfficePath & "user/work/recentdocument.ods") - Call hFileOpen(sTestFile) + hFileOpenLocally( gTesttoolpath & "spreadsheet\required\input\recentdocument.ods" ) + sTestFile = gLastWorkFile ' get the new file location + + 'app.FileCopy convertpath(gTesttoolpath & "spreadsheet\required\input\recentdocument.ods"),gOfficePath + ConvertPath("user/work/recentdocument.ods") + 'Printlog " Load local copied testfile recentdocument.ods" + 'sTestFile = convertpath(gOfficePath & "user/work/recentdocument.ods") + 'Call hFileOpen(sTestFile) '/// Close the document. Printlog " Close the document." '/// Now an item in <i>File / Recent Documents</i> should exist @@ -412,6 +416,8 @@ end if '/// Close starting document Printlog " Close starting document" Call hCloseDocument + Printlog " Delete local copy of the workfile" + hFileDelete( sTestFile ) endcase '----------------------------------------------------------- |