diff options
63 files changed, 509 insertions, 509 deletions
diff --git a/testautomation/writer/optional/includes/alternative_text/w_alternative_text.inc b/testautomation/writer/optional/includes/alternative_text/w_alternative_text.inc index 74f65eaa1704..bf14a2dae8e9 100644 --- a/testautomation/writer/optional/includes/alternative_text/w_alternative_text.inc +++ b/testautomation/writer/optional/includes/alternative_text/w_alternative_text.inc @@ -106,7 +106,7 @@ testcase tPictureAlternativeText Call hCloseDocument printlog "- Reload" - Call hFileOpen ( gOfficePath + "user\work\tPictureAlternativeText.odt" ) + hFileOpenLocally( gOfficePath + "user\work\tPictureAlternativeText.odt" ) ' select graphic Call wTypeKeys ("<SHIFT F4>") @@ -190,7 +190,7 @@ testcase tFrameAlternativeText Call hCloseDocument printlog "- Reload" - Call hFileOpen ( gOfficePath + "user\work\tFrameAlternativeText.odt" ) + hFileOpenLocally( gOfficePath + "user\work\tFrameAlternativeText.odt" ) ' select frame Call wTypeKeys ("<SHIFT F4>") @@ -271,7 +271,7 @@ testcase tOLEAlternativeText Call hCloseDocument printlog "- Reload" - Call hFileOpen ( gOfficePath + "user\work\tOLEAlternativeText.odt" ) + hFileOpenLocally( gOfficePath + "user\work\tOLEAlternativeText.odt" ) ' select OLE Call wTypeKeys ("<SHIFT F4>") diff --git a/testautomation/writer/optional/includes/autocorrection/w_autocorrect2.inc b/testautomation/writer/optional/includes/autocorrection/w_autocorrect2.inc index b15edc69479a..88297c3aa709 100755..100644 --- a/testautomation/writer/optional/includes/autocorrection/w_autocorrect2.inc +++ b/testautomation/writer/optional/includes/autocorrection/w_autocorrect2.inc @@ -127,8 +127,8 @@ testcase tToolsAutocorrectWordCompletion_2 '/// delete all entries '/// close and reopen dialog, check entries again - Call hFileOpen ( gTesttoolPath + "writer\optional\input\autocorrection\01.odt" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\autocorrection\01.odt" ) + 'Delete all entries in the list Call fDeleteAllEntries() @@ -196,8 +196,8 @@ testcase tToolsAutocorrectWordCompletion_3 '/// backwards with <SHIFT-CTRL-Tab> '/// endless loop test - Call hFileOpen ( gTesttoolPath + "writer\optional\input\autocorrection\01.odt" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\autocorrection\01.odt" ) + 'Delete all entries in the list Call fDeleteAllEntries() @@ -287,8 +287,8 @@ testcase tToolsAutocorrectWordCompletion_4 MaxEintraege.SetText sTestMaxEntries TabWortergaenzung.OK - Call hFileOpen ( gTesttoolPath + "writer\optional\input\advanced\" + sTestFile ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\advanced\" + sTestFile ) + Sleep 4 ToolsAutocorrect @@ -337,8 +337,8 @@ testcase tToolsAutocorrectWordCompletion_5 'Test when checkbox is checkec -- default 'Open 1st file - Call hFileOpen ( gTesttoolPath + "writer\optional\input\autocorrection\01.odt" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\autocorrection\01.odt" ) + 'Delete all entries in the list Call fDeleteAllEntries() @@ -355,8 +355,8 @@ testcase tToolsAutocorrectWordCompletion_5 Call wTypeKeys sTestWord1 'Open 2nd file - Call hFileOpen ( gTesttoolPath + "writer\optional\input\autocorrection\01-01.odt" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\autocorrection\01-01.odt" ) + Call wTypeKeys sTestWord2 Call wTypeKeys sTestWord3 @@ -386,8 +386,8 @@ testcase tToolsAutocorrectWordCompletion_5 'Test when checkbox is Checked 'Open 1st file - Call hFileOpen ( gTesttoolPath + "writer\optional\input\autocorrection\01.odt" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\autocorrection\01.odt" ) + 'Delete all entries in the list fDeleteAllEntries() @@ -403,8 +403,8 @@ testcase tToolsAutocorrectWordCompletion_5 Call wTypeKeys sTestWord1 'Open 2nd file - Call hFileOpen ( gTesttoolPath + "writer\optional\input\autocorrection\01-01.odt" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\autocorrection\01-01.odt" ) + Call wTypeKeys sTestWord2 Call wTypeKeys sTestWord3 @@ -453,8 +453,8 @@ testcase tToolsAutocorrectWordCompletion_6 '/// and a help tip will appear <--- no way to test yet 'Show as Tip -- uncheck (default) - Call hFileOpen ( gTesttoolPath + "writer\optional\input\autocorrection\01.odt" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\autocorrection\01.odt" ) + Call wTypeKeys sTestWord Call wTypeKeys "<Return>" diff --git a/testautomation/writer/optional/includes/clipboard/clipbrd_func.inc b/testautomation/writer/optional/includes/clipboard/clipbrd_func.inc index de6a4d0b4fef..0c9f976b187b 100755..100644 --- a/testautomation/writer/optional/includes/clipboard/clipbrd_func.inc +++ b/testautomation/writer/optional/includes/clipboard/clipbrd_func.inc @@ -141,8 +141,8 @@ end function function wSetClipboardtestDefaults(ForWhat as string) as boolean printlog " Points cursor to beginning of document " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\writer.sxw") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\writer.sxw") + Kontext "DocumentWriter" printlog " Jump to beginning of document " Call wTypeKeys "<Mod1 Home>" diff --git a/testautomation/writer/optional/includes/clipboard/w_210_.inc b/testautomation/writer/optional/includes/clipboard/w_210_.inc index 12926c8a486b..8f744c28fb6e 100755..100644 --- a/testautomation/writer/optional/includes/clipboard/w_210_.inc +++ b/testautomation/writer/optional/includes/clipboard/w_210_.inc @@ -225,7 +225,7 @@ testcase WriterToWriterFrame printlog " + Close saved document " Call hCloseDocument printlog " + Reopen saved document " - Call hFileOpen (gOfficepath + "user\work\writer_to_writer_frame.odt",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_writer_frame.odt",false) printlog " + Close saved document " Call hCloseDocument else @@ -267,7 +267,7 @@ testcase WriterToWriterDrawingObject printlog " + Close saved document " Call hCloseDocument printlog " + Reopen saved document " - Call hFileOpen (gOfficepath + "user\work\writer_to_writer_draw.odt",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_writer_draw.odt",false) printlog " + Close saved document " Call hCloseDocument else @@ -309,7 +309,7 @@ testcase WriterToWriterGraphicLinked printlog " + Close saved document " Call hCloseDocument printlog " + Reopen saved document " - Call hFileOpen (gOfficepath + "user\work\writer_to_writer_graphic1.odt",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_writer_graphic1.odt",false) printlog " + Close saved document " Call hCloseDocument else @@ -351,7 +351,7 @@ testcase WriterToWriterGraphicEmbedded printlog " + Close saved document " Call hCloseDocument printlog " + Reopen saved document " - Call hFileOpen (gOfficepath + "user\work\writer_to_writer_graphic2.odt",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_writer_graphic2.odt",false) printlog " + Close saved document " Call hCloseDocument else @@ -393,7 +393,7 @@ testcase WriterToWriterOLEObject printlog " + Close saved document " Call hCloseDocument printlog " + Reopen saved document " - Call hFileOpen (gOfficepath + "user\work\writer_to_writer_ole.odt",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_writer_ole.odt",false) printlog " + Close saved document " Call hCloseDocument else @@ -435,7 +435,7 @@ testcase WriterToWriterControl printlog " + Close saved document " Call hCloseDocument printlog " + Reopen saved document " - Call hFileOpen (gOfficepath + "user\work\writer_to_writer_control.odt",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_writer_control.odt",false) printlog " + Close saved document " Call hCloseDocument else diff --git a/testautomation/writer/optional/includes/clipboard/w_211_.inc b/testautomation/writer/optional/includes/clipboard/w_211_.inc index b385e745cf16..f40021cf38a1 100755..100644 --- a/testautomation/writer/optional/includes/clipboard/w_211_.inc +++ b/testautomation/writer/optional/includes/clipboard/w_211_.inc @@ -79,7 +79,7 @@ testcase WriterToCalcText Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_calc_text.ods",true) + hFileOpenLocally( gOfficepath + "user\work\writer_to_calc_text.ods",true) printlog " Reopen saved document " Wait 500 Call hCloseDocument @@ -133,7 +133,7 @@ testcase WriterToCalcField Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_calc_field.ods",true) + hFileOpenLocally( gOfficepath + "user\work\writer_to_calc_field.ods",true) printlog " Reopen saved document " Wait 500 Call hCloseDocument @@ -192,7 +192,7 @@ testcase WriterToCalcTable kontext "navigator" if navigator.exists then navigator.close - Call hFileOpen (gOfficepath + "user\work\writer_to_calc_table.ods",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_calc_table.ods",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument @@ -248,7 +248,7 @@ testcase WriterToCalcFrame Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_calc_frame.ods",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_calc_frame.ods",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument @@ -302,7 +302,7 @@ testcase WriterToCalcDrawingObject Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_calc_draw.ods",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_calc_draw.ods",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument @@ -357,7 +357,7 @@ testcase WriterToCalcGraphicLinked Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_calc_graphic1.ods",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_calc_graphic1.ods",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument @@ -412,7 +412,7 @@ testcase WriterToCalcGraphicEmbedded Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_calc_graphic2.ods",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_calc_graphic2.ods",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument @@ -466,7 +466,7 @@ testcase WriterToCalcOLEObject Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_calc_ole.ods",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_calc_ole.ods",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument @@ -520,7 +520,7 @@ testcase WriterToCalcControl Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_calc_control.ods",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_calc_control.ods",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument diff --git a/testautomation/writer/optional/includes/clipboard/w_212_.inc b/testautomation/writer/optional/includes/clipboard/w_212_.inc index 6c2a6e9c175e..8f13f3c46488 100755..100644 --- a/testautomation/writer/optional/includes/clipboard/w_212_.inc +++ b/testautomation/writer/optional/includes/clipboard/w_212_.inc @@ -80,7 +80,7 @@ testcase WriterToImpressText Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_impress_text.odp",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_impress_text.odp",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument @@ -134,7 +134,7 @@ testcase WriterToImpressField Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_impress_field.odp",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_impress_field.odp",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument @@ -188,7 +188,7 @@ testcase WriterToImpressTable Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_impress_table.odp",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_impress_table.odp",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument @@ -242,7 +242,7 @@ testcase WriterToImpressFrame Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_impress_frame.odp",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_impress_frame.odp",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument @@ -296,7 +296,7 @@ testcase WriterToImpressDrawingObject Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_impress_draw.odp",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_impress_draw.odp",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument @@ -350,7 +350,7 @@ testcase WriterToImpressGraphicLinked Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_impress_graphic1.odp",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_impress_graphic1.odp",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument @@ -404,7 +404,7 @@ testcase WriterToImpressGraphicEmbedded Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_impress_graphic2.odp",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_impress_graphic2.odp",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument @@ -458,7 +458,7 @@ testcase WriterToImpressOLEObject Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_impress_ole.odp",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_impress_ole.odp",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument @@ -512,7 +512,7 @@ testcase WriterToImpressControl Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_impress_control.odp",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_impress_control.odp",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument diff --git a/testautomation/writer/optional/includes/clipboard/w_213_.inc b/testautomation/writer/optional/includes/clipboard/w_213_.inc index 1cf8e50fa2de..ac11201662fb 100755..100644 --- a/testautomation/writer/optional/includes/clipboard/w_213_.inc +++ b/testautomation/writer/optional/includes/clipboard/w_213_.inc @@ -79,7 +79,7 @@ testcase WriterToDrawText Call hCloseDocument printlog " + Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_draw_text.odg",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_draw_text.odg",false) printlog " + Reopen saved document " Wait 500 Call hCloseDocument @@ -133,7 +133,7 @@ testcase WriterToDrawField Call hCloseDocument printlog " + Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_draw_field.odg",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_draw_field.odg",false) printlog " + Reopen saved document " Wait 500 Call hCloseDocument @@ -187,7 +187,7 @@ testcase WriterToDrawTable Call hCloseDocument printlog " + Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_draw_table.odg",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_draw_table.odg",false) printlog " + Reopen saved document " Wait 500 Call hCloseDocument @@ -241,7 +241,7 @@ testcase WriterToDrawFrame Call hCloseDocument printlog " + Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_draw_frame.odg",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_draw_frame.odg",false) printlog " + Reopen saved document " Wait 500 Call hCloseDocument @@ -295,7 +295,7 @@ testcase WriterToDrawDrawingObject Call hCloseDocument printlog " + Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_draw_draw.odg",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_draw_draw.odg",false) printlog " + Reopen saved document " Wait 500 Call hCloseDocument @@ -350,7 +350,7 @@ testcase WriterToDrawGraphicLinked Call hCloseDocument printlog " + Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_draw_graphic1.odg",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_draw_graphic1.odg",false) printlog " + Reopen saved document " Wait 500 Call hCloseDocument @@ -405,7 +405,7 @@ testcase WriterToDrawGraphicEmbedded Call hCloseDocument printlog " + Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_draw_graphic2.odg",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_draw_graphic2.odg",false) printlog " + Reopen saved document " Wait 500 Call hCloseDocument @@ -459,7 +459,7 @@ testcase WriterToDrawOLEObject Call hCloseDocument printlog " + Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_draw_ole.odg",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_draw_ole.odg",false) printlog " + Reopen saved document " Wait 500 Call hCloseDocument @@ -513,7 +513,7 @@ testcase WriterToDrawControl Call hCloseDocument printlog " + Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_draw_control.odg",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_draw_control.odg",false) printlog " + Reopen saved document " Wait 500 Call hCloseDocument diff --git a/testautomation/writer/optional/includes/clipboard/w_214_.inc b/testautomation/writer/optional/includes/clipboard/w_214_.inc index 5f6521b4ae67..d02caff65d76 100755..100644 --- a/testautomation/writer/optional/includes/clipboard/w_214_.inc +++ b/testautomation/writer/optional/includes/clipboard/w_214_.inc @@ -78,7 +78,7 @@ testcase WriterToHTMLText Call hCloseDocument printlog " + Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_html_text.html") + hFileOpenLocally( gOfficepath + "user\work\writer_to_html_text.html") printlog " + Reopen saved document " Wait 500 Call hCloseDocument @@ -131,7 +131,7 @@ testcase WriterToHTMLField Call hCloseDocument printlog " + Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_html_field.html") + hFileOpenLocally( gOfficepath + "user\work\writer_to_html_field.html") printlog " + Reopen saved document " Wait 500 Call hCloseDocument @@ -184,7 +184,7 @@ testcase WriterToHTMLTable Call hCloseDocument printlog " + Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_html_table.html") + hFileOpenLocally( gOfficepath + "user\work\writer_to_html_table.html") printlog " + Reopen saved document " Wait 500 Call hCloseDocument @@ -237,7 +237,7 @@ testcase WriterToHTMLFrame Call hCloseDocument printlog " + Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_html_frame.html") + hFileOpenLocally( gOfficepath + "user\work\writer_to_html_frame.html") printlog " + Reopen saved document " Wait 500 Call hCloseDocument @@ -290,7 +290,7 @@ testcase WriterToHTMLDrawingObject Call hCloseDocument printlog " + Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_html_draw.html") + hFileOpenLocally( gOfficepath + "user\work\writer_to_html_draw.html") printlog " + Reopen saved document " Wait 500 Call hCloseDocument @@ -343,7 +343,7 @@ testcase WriterToHTMLGraphicLinked Call hCloseDocument printlog " + Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_html_graphic1.html") + hFileOpenLocally( gOfficepath + "user\work\writer_to_html_graphic1.html") printlog " + Reopen saved document " Wait 500 Call hCloseDocument @@ -396,7 +396,7 @@ testcase WriterToHTMLGraphicEmbedded Call hCloseDocument printlog " + Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_html_graphic2.html") + hFileOpenLocally( gOfficepath + "user\work\writer_to_html_graphic2.html") printlog " + Reopen saved document " Wait 500 Call hCloseDocument @@ -449,7 +449,7 @@ testcase WriterToHTMLOLEObject Call hCloseDocument printlog " + Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_html_ole.html") + hFileOpenLocally( gOfficepath + "user\work\writer_to_html_ole.html") printlog " + Reopen saved document " Wait 500 Call hCloseDocument @@ -502,7 +502,7 @@ testcase WriterToHTMLControl Call hCloseDocument printlog " + Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\writer_to_html_control.html") + hFileOpenLocally( gOfficepath + "user\work\writer_to_html_control.html") printlog " + Reopen saved document " Wait 500 Call hCloseDocument diff --git a/testautomation/writer/optional/includes/clipboard/w_215_.inc b/testautomation/writer/optional/includes/clipboard/w_215_.inc index 95883f35ae1b..74669a4f29b0 100755..100644 --- a/testautomation/writer/optional/includes/clipboard/w_215_.inc +++ b/testautomation/writer/optional/includes/clipboard/w_215_.inc @@ -50,8 +50,8 @@ testcase CalcToWriterText1 printlog " Jump to beginning of document " printlog " Select cell <A2> " printlog " Copy selected text " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\calc.sxc") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\calc.sxc") + Kontext "DocumentCalc" printlog " Jump to beginning of document " DocumentCalc.TypeKeys "<Mod1 Home>" @@ -113,8 +113,8 @@ testcase CalcToWriterText2 printlog " Jump to beginning of document " printlog " Select cell <A1>, press F2 and select all " printlog " Copy selected text " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\calc.sxc") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\calc.sxc") + Kontext "DocumentCalc" printlog " Jump to beginning of document " DocumentCalc.TypeKeys "<Mod1 Home>" @@ -147,7 +147,7 @@ testcase CalcToWriterText2 Call hCloseDocument wait 500 printlog " Reopen saved document " - Call hFileOpen (gOfficepath + "user\work\writer_to_writer_textformat_cellcontent.odt",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_writer_textformat_cellcontent.odt",false) Wait 500 printlog " Close saved document " Call hCloseDocument @@ -168,8 +168,8 @@ testcase CalcToWriterCalculation printlog " Jump to beginning of document " printlog " Select cell <A5:C5> " printlog " Copy selected text " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\calc.sxc") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\calc.sxc") + Kontext "DocumentCalc" printlog " Jump to beginning of document " DocumentCalc.TypeKeys "<Mod1 Home>" @@ -232,8 +232,8 @@ testcase CalcToWriterHyperlink1 printlog " Jump to beginning of document " printlog " Select cell <A8> " printlog " Copy selected text " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\calc.sxc") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\calc.sxc") + Kontext "DocumentCalc" printlog " Jump to beginning of document " DocumentCalc.TypeKeys "<Mod1 Home>" @@ -295,8 +295,8 @@ testcase CalcToWriterHyperlink2 printlog " Jump to beginning of document " printlog " Select cell <A8> " printlog " Copy selected text " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\calc.sxc") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\calc.sxc") + Kontext "DocumentCalc" printlog " Jump to beginning of document " DocumentCalc.TypeKeys "<Mod1 Home>" @@ -329,7 +329,7 @@ testcase CalcToWriterHyperlink2 Call hCloseDocument wait 500 printlog " Reopen saved document " - Call hFileOpen (gOfficepath + "user\work\writer_to_writer_hyperlink_cellcontent.odt",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_writer_hyperlink_cellcontent.odt",false) Wait 500 printlog " Close saved document " Call hCloseDocument @@ -350,8 +350,8 @@ testcase CalcToWriterDrawObject printlog " Jump to beginning of document " printlog " Select Drawing object " printlog " Copy selected object " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\calc.sxc") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\calc.sxc") + Kontext "DocumentCalc" printlog " Jump to beginning of document " Call wNavigatorAuswahl(8,1) @@ -381,7 +381,7 @@ testcase CalcToWriterDrawObject Call hCloseDocument wait 500 printlog " Reopen saved document " - Call hFileOpen (gOfficepath + "user\work\writer_to_writer_draw.odt",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_writer_draw.odt",false) Wait 500 printlog " Close saved document " Call hCloseDocument @@ -402,8 +402,8 @@ testcase CalcToWriterOLE printlog " Jump to beginning of document " printlog " Select OLE-Object " printlog " Copy selected object " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\calc.sxc") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\calc.sxc") + Kontext "DocumentCalc" printlog " Jump to beginning of document " Call wNavigatorAuswahl(6,1) @@ -433,7 +433,7 @@ testcase CalcToWriterOLE Call hCloseDocument wait 500 printlog " Reopen saved document " - Call hFileOpen (gOfficepath + "user\work\writer_to_writer_ole.odt",false) + hFileOpenLocally( gOfficepath + "user\work\writer_to_writer_ole.odt",false) Wait 500 printlog " Close saved document " Call hCloseDocument diff --git a/testautomation/writer/optional/includes/clipboard/w_216_.inc b/testautomation/writer/optional/includes/clipboard/w_216_.inc index 3952ece03e4c..1537d2969692 100755..100644 --- a/testautomation/writer/optional/includes/clipboard/w_216_.inc +++ b/testautomation/writer/optional/includes/clipboard/w_216_.inc @@ -50,8 +50,8 @@ testcase HTMLToWRITERText printlog " Jump to beginning of document " printlog " Select first paragraph " printlog " Copy selected text " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html",false) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html",false) + sleep (3) if GetDocumentCount() = 2 then Warnlog "#i104365#read only document remains opened" @@ -122,8 +122,8 @@ testcase HTMLToWRITERField printlog " Jump to beginning of document " printlog " Select paragraph with 'Date Field' " printlog " Copy selected text " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html") + if GetDocumentCount() = 2 then Warnlog "#i104365#read only document remains opened" endif @@ -192,8 +192,8 @@ testcase HTMLToWRITERTable printlog " Jump to beginning of document " printlog " Select 'Table' " printlog " Copy selected table " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html",false) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html",false) + if GetDocumentCount() = 2 then Warnlog "#i104365#read only document remains opened" endif @@ -262,8 +262,8 @@ testcase HTMLToWRITERGraphicLinked printlog " Jump to beginning of document " printlog " Select 'Linked Graphic' " printlog " Copy selected Linked Graphic " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html",false) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html",false) + if GetDocumentCount() = 2 then Warnlog "#i104365#read only document remains opened" endif @@ -297,7 +297,7 @@ testcase HTMLToWRITERGraphicLinked Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\html_to_writer_graphic1.odt",false) + hFileOpenLocally( gOfficepath + "user\work\html_to_writer_graphic1.odt",false) printlog " Reopen saved document " Wait 500 printlog " Close saved document " @@ -321,8 +321,8 @@ testcase HTMLToWRITERControl printlog " Jump to beginning of document " printlog " Select 'Control' " printlog " Copy selected Control " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html",false) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html",false) + if GetDocumentCount() = 2 then Warnlog "#i104365#read only document remains opened" endif @@ -357,7 +357,7 @@ testcase HTMLToWRITERControl Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\html_to_writer_control.odt",false) + hFileOpenLocally( gOfficepath + "user\work\html_to_writer_control.odt",false) printlog " Reopen saved document " Wait 500 printlog " Close saved document " @@ -381,8 +381,8 @@ testcase HTMLToWRITERFloatingFrame printlog " Jump to beginning of document " printlog " Select 'Floating Frame' " printlog " Copy selected Floating Frame " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html",false) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html",false) + if GetDocumentCount() = 2 then Warnlog "#i104365#read only document remains opened" endif @@ -423,7 +423,7 @@ testcase HTMLToWRITERFloatingFrame Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\html_to_writer_float.odt",false) + hFileOpenLocally( gOfficepath + "user\work\html_to_writer_float.odt",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument diff --git a/testautomation/writer/optional/includes/clipboard/w_217_.inc b/testautomation/writer/optional/includes/clipboard/w_217_.inc index fcb6b450803a..de3f78367e24 100755..100644 --- a/testautomation/writer/optional/includes/clipboard/w_217_.inc +++ b/testautomation/writer/optional/includes/clipboard/w_217_.inc @@ -49,8 +49,8 @@ testcase HTMLToCALCText printlog " Jump to beginning of document " printlog " Select first paragraph " printlog " Copy selected text " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html",false) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html",false) + printlog " Jump to beginning of document " Call wTypeKeys "<Mod1 Home>" Call wTypeKeys "<Shift Down><Shift End>" @@ -115,8 +115,8 @@ testcase HTMLToCALCField printlog " Jump to beginning of document " printlog " Select paragraph with 'Date Field' " printlog " Copy selected text " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html",false) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html",false) + printlog " Jump to beginning of document " Call wTypeKeys "<Mod1 Home>" Call wTypeKeys "<Down>",2 @@ -149,7 +149,7 @@ testcase HTMLToCALCField Call hCloseDocument wait 500 printlog " Reopen saved document " - Call hFileOpen (gOfficepath + "user\work\html_to_calc_field.ods",true) + hFileOpenLocally( gOfficepath + "user\work\html_to_calc_field.ods",true) Wait 500 printlog " Close saved document " Call hCloseDocument @@ -172,8 +172,8 @@ testcase HTMLToCALCTable printlog " Jump to beginning of document " printlog " Select 'Table' " printlog " Copy selected table " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html",false) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html",false) + printlog " Jump to beginning of document " Call wTypeKeys "<Mod1 Home>" Call wTypeKeys "<Down>",5 @@ -203,7 +203,7 @@ testcase HTMLToCALCTable printlog " Save document as ..\user\work\html_to_calc_table.ods" Call hCloseDocument printlog " Close saved document " - Call hFileOpen (gOfficepath + "user\work\html_to_calc_table.ods",true) + hFileOpenLocally( gOfficepath + "user\work\html_to_calc_table.ods",true) printlog " Reopen saved document " Call hCloseDocument printlog " Close saved document " @@ -226,8 +226,8 @@ testcase HTMLToCALCGraphicLinked printlog " Jump to beginning of document " printlog " Select 'Linked Graphic' " printlog " Copy selected Linked Graphic " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html",false) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html",false) + printlog " Jump to beginning of document " Call wTypeKeys "<Mod1 Home>" Call wTypeKeys ( "<Shift F4>" ) @@ -260,7 +260,7 @@ testcase HTMLToCALCGraphicLinked Call hCloseDocument wait 500 printlog " Reopen saved document " - Call hFileOpen (gOfficepath + "user\work\html_to_calc_graphic1.ods",false) + hFileOpenLocally( gOfficepath + "user\work\html_to_calc_graphic1.ods",false) Wait 500 printlog " Close saved document " Call hCloseDocument @@ -283,8 +283,8 @@ testcase HTMLToCALCControl printlog " Jump to beginning of document " printlog " Select 'Control' " printlog " Copy selected Control " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html",false) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html",false) + printlog " Jump to beginning of document " Call wTypeKeys "<Mod1 Home>" Call wTypeKeys ( "<Shift F4>" ) @@ -317,7 +317,7 @@ testcase HTMLToCALCControl Call hCloseDocument wait 500 printlog " Reopen saved document " - Call hFileOpen (gOfficepath + "user\work\html_to_calc_control.ods",false) + hFileOpenLocally( gOfficepath + "user\work\html_to_calc_control.ods",false) Wait 500 printlog " Close saved document " Call hCloseDocument @@ -340,8 +340,8 @@ testcase HTMLToCALCFloatingFrame printlog " Jump to beginning of document " printlog " Select 'Floating Frame' " printlog " Copy selected Floating Frame " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html",false) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html",false) + printlog " Jump to beginning of document " Call wTypeKeys "<Mod1 Home>" Call wTypeKeys ( "<Shift F4>" ) @@ -378,7 +378,7 @@ testcase HTMLToCALCFloatingFrame printlog " Close saved document " Call hCloseDocument printlog " Reopen saved document " - Call hFileOpen (gOfficepath + "user\work\html_to_calc_float.ods",false) + hFileOpenLocally( gOfficepath + "user\work\html_to_calc_float.ods",false) printlog " Close saved document " Call hCloseDocument else diff --git a/testautomation/writer/optional/includes/clipboard/w_218_.inc b/testautomation/writer/optional/includes/clipboard/w_218_.inc index 6788407f6c05..fb8aae68a7ec 100755..100644 --- a/testautomation/writer/optional/includes/clipboard/w_218_.inc +++ b/testautomation/writer/optional/includes/clipboard/w_218_.inc @@ -49,8 +49,8 @@ testcase HTMLToDRAWText printlog " + Jump to beginning of document " printlog " + Select first paragraph " printlog " + Copy selected text " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html") + printlog " Jump to beginning of document " Call wTypeKeys "<Mod1 Home>" Call wTypeKeys "<Shift Down><Shift End>" @@ -115,8 +115,8 @@ testcase HTMLToDRAWField printlog " + Jump to beginning of document " printlog " + Select paragraph with 'Date Field' " printlog " + Copy selected text " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html") + printlog " Jump to beginning of document " Call wTypeKeys "<Mod1 Home>" Call wTypeKeys "<Down>",2 @@ -154,7 +154,7 @@ testcase HTMLToDRAWField Call hCloseDocument sleep (2) printlog " + Reopen saved document " - Call hFileOpen (gOfficepath + "user\work\html_to_draw_field.odg",false) + hFileOpenLocally( gOfficepath + "user\work\html_to_draw_field.odg",false) Wait 500 printlog " + Close saved document " Call hCloseDocument @@ -177,8 +177,8 @@ testcase HTMLToDRAWTable printlog " + Jump to beginning of document " printlog " + Select 'Table' " printlog " + Copy selected table " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html") + printlog " Jump to beginning of document " Call wTypeKeys "<Mod1 Home>" Call wTypeKeys "<Down>",5 @@ -211,7 +211,7 @@ testcase HTMLToDRAWTable Call hCloseDocument wait 500 printlog " + Reopen saved document " - Call hFileOpen (gOfficepath + "user\work\html_to_draw_table.odg",false) + hFileOpenLocally( gOfficepath + "user\work\html_to_draw_table.odg",false) Wait 500 printlog " + Close saved document " Call hCloseDocument @@ -234,8 +234,8 @@ testcase HTMLToDRAWGraphicLinked printlog " + Jump to beginning of document " printlog " + Select 'Linked Graphic' " printlog " + Copy selected Linked Graphic " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html") + printlog " Jump to beginning of document " Call wTypeKeys "<Mod1 Home>" Call wTypeKeys ( "<Shift F4>" ) @@ -267,7 +267,7 @@ testcase HTMLToDRAWGraphicLinked Call hCloseDocument wait 500 printlog " + Reopen saved document " - Call hFileOpen (gOfficepath + "user\work\html_to_draw_graphic1.odg",false) + hFileOpenLocally( gOfficepath + "user\work\html_to_draw_graphic1.odg",false) Wait 500 printlog " + Close saved document " Call hCloseDocument @@ -290,8 +290,8 @@ testcase HTMLToDRAWControl printlog " + Jump to beginning of document " printlog " + Select 'Control' " printlog " + Copy selected Control " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html") + printlog " Jump to beginning of document " Call wTypeKeys "<Mod1 Home>" Call wTypeKeys ( "<Shift F4>" ) @@ -324,7 +324,7 @@ testcase HTMLToDRAWControl Call hCloseDocument wait 500 printlog " + Reopen saved document " - Call hFileOpen (gOfficepath + "user\work\html_to_draw_control.odg",false) + hFileOpenLocally( gOfficepath + "user\work\html_to_draw_control.odg",false) Wait 500 printlog " + Close saved document " Call hCloseDocument @@ -347,8 +347,8 @@ testcase HTMLToDRAWFloatingFrame printlog " + Jump to beginning of document " printlog " + Select 'Floating Frame' " printlog " + Copy selected Floating Frame " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html") + printlog " Jump to beginning of document " Call wTypeKeys "<Mod1 Home>" Call wTypeKeys ( "<Shift F4>" ) @@ -386,7 +386,7 @@ testcase HTMLToDRAWFloatingFrame Call hCloseDocument wait 500 printlog " + Reopen saved document " - Call hFileOpen (gOfficepath + "user\work\html_to_draw_float.odg",false) + hFileOpenLocally( gOfficepath + "user\work\html_to_draw_float.odg",false) Wait 500 printlog " + Close saved document " Call hCloseDocument diff --git a/testautomation/writer/optional/includes/clipboard/w_219_.inc b/testautomation/writer/optional/includes/clipboard/w_219_.inc index 74ca4d7c5f71..8ce54912c15c 100755..100644 --- a/testautomation/writer/optional/includes/clipboard/w_219_.inc +++ b/testautomation/writer/optional/includes/clipboard/w_219_.inc @@ -49,8 +49,8 @@ testcase HTMLToIMPRESSText printlog " Jump to beginning of document " printlog " Select first paragraph " printlog " Copy selected text " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html") + printlog " Jump to beginning of document " Call wTypeKeys "<Mod1 Home>" Call wTypeKeys "<Shift Down><Shift End>" @@ -115,8 +115,8 @@ testcase HTMLToIMPRESSField printlog " Jump to beginning of document " printlog " Select paragraph with 'Date Field' " printlog " Copy selected text " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html") + printlog " Jump to beginning of document " Call wTypeKeys "<Mod1 Home>" Call wTypeKeys "<Down>",2 @@ -149,7 +149,7 @@ testcase HTMLToIMPRESSField Call hCloseDocument wait 500 printlog " Reopen saved document " - Call hFileOpen (gOfficepath + "user\work\html_to_impress_field.odp",false) + hFileOpenLocally( gOfficepath + "user\work\html_to_impress_field.odp",false) Wait 500 printlog " Close saved document " Call hCloseDocument @@ -172,8 +172,8 @@ testcase HTMLToIMPRESSTable printlog " Jump to beginning of document " printlog " Select 'Table' " printlog " Copy selected table " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html") + printlog " Jump to beginning of document " Call wTypeKeys "<Mod1 Home>" Call wTypeKeys "<Down>",5 @@ -206,7 +206,7 @@ testcase HTMLToIMPRESSTable Call hCloseDocument wait 500 printlog " Reopen saved document " - Call hFileOpen (gOfficepath + "user\work\html_to_impress_table.odp",false) + hFileOpenLocally( gOfficepath + "user\work\html_to_impress_table.odp",false) Wait 500 printlog " Close saved document " Call hCloseDocument @@ -229,8 +229,8 @@ testcase HTMLToIMPRESSGraphicLinked printlog " Jump to beginning of document " printlog " Select 'Linked Graphic' " printlog " Copy selected Linked Graphic " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html") + printlog " Jump to beginning of document " Call wTypeKeys "<Mod1 Home>" Call wTypeKeys ( "<Shift F4>" ) @@ -262,7 +262,7 @@ testcase HTMLToIMPRESSGraphicLinked Call hCloseDocument wait 500 printlog " Reopen saved document " - Call hFileOpen (gOfficepath + "user\work\html_to_impress_graphic1.odp",false) + hFileOpenLocally( gOfficepath + "user\work\html_to_impress_graphic1.odp",false) Wait 500 printlog " Close saved document " Call hCloseDocument @@ -285,8 +285,8 @@ testcase HTMLToIMPRESSControl printlog " Jump to beginning of document " printlog " Select 'Control' " printlog " Copy selected Control " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html") + printlog " Jump to beginning of document " Call wTypeKeys "<Mod1 Home>" Call wTypeKeys ( "<Shift F4>" ) @@ -319,7 +319,7 @@ testcase HTMLToIMPRESSControl Call hCloseDocument wait 500 printlog " Reopen saved document " - Call hFileOpen (gOfficepath + "user\work\html_to_impress_control.odp",false) + hFileOpenLocally( gOfficepath + "user\work\html_to_impress_control.odp",false) Wait 500 printlog " Close saved document " Call hCloseDocument @@ -342,8 +342,8 @@ testcase HTMLToIMPRESSFloatingFrame printlog " Jump to beginning of document " printlog " Select 'Floating Frame' " printlog " Copy selected Floating Frame " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html") + printlog " Jump to beginning of document " Call wTypeKeys "<Mod1 Home>" Call wTypeKeys ( "<Shift F4>" ) @@ -381,7 +381,7 @@ testcase HTMLToIMPRESSFloatingFrame Call hCloseDocument wait 500 printlog " Reopen saved document " - Call hFileOpen (gOfficepath + "user\work\html_to_impress_float.odp",false) + hFileOpenLocally( gOfficepath + "user\work\html_to_impress_float.odp",false) Wait 500 printlog " Close saved document " Call hCloseDocument diff --git a/testautomation/writer/optional/includes/clipboard/w_220_.inc b/testautomation/writer/optional/includes/clipboard/w_220_.inc index e938ba027fd1..8e494c0e8af4 100755..100644 --- a/testautomation/writer/optional/includes/clipboard/w_220_.inc +++ b/testautomation/writer/optional/includes/clipboard/w_220_.inc @@ -54,8 +54,8 @@ testcase HTMLToHTMLText printlog " Jump to beginning of document " printlog " Select first paragraph " printlog " Copy selected text " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html") + printlog " Jump to beginning of document " Call wTypeKeys "<Mod1 Home>" Call wTypeKeys "<Shift Down><Shift End>" @@ -86,7 +86,7 @@ testcase HTMLToHTMLText Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\html_to_html_text.html",false) + hFileOpenLocally( gOfficepath + "user\work\html_to_html_text.html",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument @@ -110,8 +110,8 @@ testcase HTMLToHTMLField printlog " Jump to beginning of document " printlog " Select paragraph with 'Date Field' " printlog " Copy selected text " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html") + printlog " Jump to beginning of document " Call wTypeKeys "<Mod1 Home>" Call wTypeKeys "<Down>",2 @@ -143,7 +143,7 @@ testcase HTMLToHTMLField Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\html_to_html_field.html",false) + hFileOpenLocally( gOfficepath + "user\work\html_to_html_field.html",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument @@ -167,8 +167,8 @@ testcase HTMLToHTMLTable printlog " Jump to beginning of document " printlog " Select 'Table' " printlog " Copy selected table " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html") + printlog " Jump to beginning of document " Call wTypeKeys "<Mod1 Home>" Call wTypeKeys "<Down>",5 @@ -200,7 +200,7 @@ testcase HTMLToHTMLTable Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\html_to_html_table.html",false) + hFileOpenLocally( gOfficepath + "user\work\html_to_html_table.html",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument @@ -224,8 +224,8 @@ testcase HTMLToHTMLGraphicLinked printlog " Jump to beginning of document " printlog " Select 'Linked Graphic' " printlog " Copy selected Linked Graphic " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html") + printlog " Jump to beginning of document " Call wTypeKeys "<Mod1 Home>" Call wTypeKeys ( "<Shift F4>" ) @@ -256,7 +256,7 @@ testcase HTMLToHTMLGraphicLinked Call hCloseDocument printlog " Close saved document " sleep (2) - Call hFileOpen (gOfficepath + "user\work\html_to_html_graphic1.html",false) + hFileOpenLocally( gOfficepath + "user\work\html_to_html_graphic1.html",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument @@ -280,8 +280,8 @@ testcase HTMLToHTMLControl printlog " Jump to beginning of document " printlog " Select 'Control' " printlog " Copy selected Control " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html") + printlog " Jump to beginning of document " Call wTypeKeys "<Mod1 Home>" Call wTypeKeys ( "<Shift F4>" ) @@ -313,7 +313,7 @@ testcase HTMLToHTMLControl Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\html_to_html_control.html",false) + hFileOpenLocally( gOfficepath + "user\work\html_to_html_control.html",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument @@ -337,8 +337,8 @@ testcase HTMLToHTMLFloatingFrame printlog " Jump to beginning of document " printlog " Select 'Floating Frame' " printlog " Copy selected Floating Frame " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\html.html") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\html.html") + printlog " Jump to beginning of document " Call wTypeKeys "<Mod1 Home>" Call wTypeKeys ( "<Shift F4>" ) @@ -375,7 +375,7 @@ testcase HTMLToHTMLFloatingFrame Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\html_to_html_float.html",false) + hFileOpenLocally( gOfficepath + "user\work\html_to_html_float.html",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument diff --git a/testautomation/writer/optional/includes/clipboard/w_221_.inc b/testautomation/writer/optional/includes/clipboard/w_221_.inc index 4b5818065244..0436ef6531d4 100755..100644 --- a/testautomation/writer/optional/includes/clipboard/w_221_.inc +++ b/testautomation/writer/optional/includes/clipboard/w_221_.inc @@ -50,8 +50,8 @@ testcase DrawToHTMLScrollingText printlog " + Jump to beginning of document " printlog " + Select Scrolling text " printlog " + Copy selected text " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\draw.sxd") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\draw.sxd") + Kontext "DocumentDraw" printlog " Jump to beginning of document " DocumentDraw.TypeKeys "<Tab>" @@ -80,7 +80,7 @@ testcase DrawToHTMLScrollingText Call hCloseDocument printlog " + Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\draw_to_html_scrolling_text.html",false) + hFileOpenLocally( gOfficepath + "user\work\draw_to_html_scrolling_text.html",false) printlog " + Reopen saved document " Wait 500 Call hCloseDocument @@ -105,8 +105,8 @@ testcase DrawToHTMLGroupedObject printlog " + Jump to beginning of document " printlog " + Select Grouped Object " printlog " + Copy selected Object " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\draw.sxd") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\draw.sxd") + Kontext "DocumentDraw" printlog " Jump to beginning of document " DocumentDraw.TypeKeys "<Tab>",2 @@ -135,7 +135,7 @@ testcase DrawToHTMLGroupedObject Call hCloseDocument printlog " + Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\draw_to_html_grouped_object.html",false) + hFileOpenLocally( gOfficepath + "user\work\draw_to_html_grouped_object.html",false) printlog " + Reopen saved document " Wait 500 Call hCloseDocument @@ -160,8 +160,8 @@ testcase DrawToHTML3D printlog " + Jump to beginning of document " printlog " + Select cell <A5:C5> " printlog " + Copy selected text " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\draw.sxd") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\draw.sxd") + Kontext "DocumentDraw" printlog " Jump to beginning of document " DocumentDraw.TypeKeys "<Tab>",3 @@ -190,7 +190,7 @@ testcase DrawToHTML3D Call hCloseDocument printlog " + Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\draw_to_html_3d.html",false) + hFileOpenLocally( gOfficepath + "user\work\draw_to_html_3d.html",false) printlog " + Reopen saved document " Wait 500 Call hCloseDocument @@ -215,8 +215,8 @@ testcase DrawToHTMLFontwork printlog " + Jump to beginning of document " printlog " + Select Fontwork " printlog " + Copy selected Fontwork " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\draw.sxd") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\draw.sxd") + Kontext "DocumentDraw" printlog " Jump to beginning of document " DocumentDraw.TypeKeys "<Tab>",4 @@ -245,7 +245,7 @@ testcase DrawToHTMLFontwork Call hCloseDocument printlog " + Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\draw_to_html_fontwork.html",false) + hFileOpenLocally( gOfficepath + "user\work\draw_to_html_fontwork.html",false) printlog " + Reopen saved document " Wait 500 Call hCloseDocument @@ -270,8 +270,8 @@ testcase DrawToHTMLBullets printlog " + Jump to beginning of document " printlog " + Select Bullets " printlog " + Copy selected Bullets " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\draw.sxd") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\draw.sxd") + Kontext "DocumentDraw" printlog " Jump to beginning of document " DocumentDraw.TypeKeys "<Tab>",5 @@ -300,7 +300,7 @@ testcase DrawToHTMLBullets Call hCloseDocument printlog " + Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\draw_to_html_bullets.html",false) + hFileOpenLocally( gOfficepath + "user\work\draw_to_html_bullets.html",false) printlog " + Reopen saved document " Wait 500 Call hCloseDocument @@ -325,8 +325,8 @@ testcase DrawToHTMLDimensionLines printlog " + Jump to beginning of document " printlog " + Select Dimension Lines " printlog " + Copy selected Dimension Lines " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\draw.sxd") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\draw.sxd") + Kontext "DocumentDraw" printlog " Jump to beginning of document " DocumentDraw.TypeKeys "<PageDown>" @@ -356,7 +356,7 @@ testcase DrawToHTMLDimensionLines Call hCloseDocument printlog " + Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\draw_to_html_dim_lines.html",false) + hFileOpenLocally( gOfficepath + "user\work\draw_to_html_dim_lines.html",false) printlog " + Reopen saved document " Wait 500 Call hCloseDocument @@ -381,8 +381,8 @@ testcase DrawToHTMLConnectors printlog " + Jump to beginning of document " printlog " + Select Connectors " printlog " + Copy selected Connectors " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\draw.sxd") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\draw.sxd") + Kontext "DocumentDraw" printlog " Jump to beginning of document " DocumentDraw.TypeKeys "<PageDown>" @@ -412,7 +412,7 @@ testcase DrawToHTMLConnectors Call hCloseDocument printlog " + Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\draw_to_html_connectors.html",false) + hFileOpenLocally( gOfficepath + "user\work\draw_to_html_connectors.html",false) printlog " + Reopen saved document " Wait 500 Call hCloseDocument diff --git a/testautomation/writer/optional/includes/clipboard/w_222_.inc b/testautomation/writer/optional/includes/clipboard/w_222_.inc index 1efb0e67fda4..488f0d40ca6d 100755..100644 --- a/testautomation/writer/optional/includes/clipboard/w_222_.inc +++ b/testautomation/writer/optional/includes/clipboard/w_222_.inc @@ -51,8 +51,8 @@ testcase DrawToWriterScrollingText printlog " Jump to beginning of document " printlog " Select Scrolling text " printlog " Copy selected text " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\draw.sxd") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\draw.sxd") + Kontext "DocumentDraw" printlog " Jump to beginning of document " DocumentDraw.TypeKeys "<Tab>" @@ -81,7 +81,7 @@ testcase DrawToWriterScrollingText Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\draw_to_writer_scrolling_text.odt",false) + hFileOpenLocally( gOfficepath + "user\work\draw_to_writer_scrolling_text.odt",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument @@ -106,8 +106,8 @@ testcase DrawToWriterGroupedObject printlog " Jump to beginning of document " printlog " Select Grouped Object " printlog " Copy selected Object " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\draw.sxd") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\draw.sxd") + Kontext "DocumentDraw" printlog " Jump to beginning of document " DocumentDraw.TypeKeys "<Tab>",2 @@ -136,7 +136,7 @@ testcase DrawToWriterGroupedObject Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\draw_to_writer_grouped_object.odt",false) + hFileOpenLocally( gOfficepath + "user\work\draw_to_writer_grouped_object.odt",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument @@ -161,8 +161,8 @@ testcase DrawToWriter3D printlog " Jump to beginning of document " printlog " Select cell <A5:C5> " printlog " Copy selected text " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\draw.sxd") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\draw.sxd") + Kontext "DocumentDraw" printlog " Jump to beginning of document " DocumentDraw.TypeKeys "<Tab>",3 @@ -191,7 +191,7 @@ testcase DrawToWriter3D Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\draw_to_writer_3d.odt",false) + hFileOpenLocally( gOfficepath + "user\work\draw_to_writer_3d.odt",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument @@ -216,8 +216,8 @@ testcase DrawToWriterFontwork printlog " Jump to beginning of document " printlog " Select Fontwork " printlog " Copy selected Fontwork " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\draw.sxd") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\draw.sxd") + Kontext "DocumentDraw" printlog " Jump to beginning of document " DocumentDraw.TypeKeys "<Tab>",4 @@ -246,7 +246,7 @@ testcase DrawToWriterFontwork Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\draw_to_writer_fontwork.odt",false) + hFileOpenLocally( gOfficepath + "user\work\draw_to_writer_fontwork.odt",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument @@ -271,8 +271,8 @@ testcase DrawToWriterBullets printlog " Jump to beginning of document " printlog " Select Bullets " printlog " Copy selected Bullets " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\draw.sxd") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\draw.sxd") + Kontext "DocumentDraw" printlog " Jump to beginning of document " DocumentDraw.TypeKeys "<Tab>",5 @@ -301,7 +301,7 @@ testcase DrawToWriterBullets Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\draw_to_writer_bullets.odt",false) + hFileOpenLocally( gOfficepath + "user\work\draw_to_writer_bullets.odt",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument @@ -326,8 +326,8 @@ testcase DrawToWriterDimensionLines printlog " Jump to beginning of document " printlog " Select Dimension Lines " printlog " Copy selected Dimension Lines " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\draw.sxd") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\draw.sxd") + Kontext "DocumentDraw" printlog " Jump to beginning of document " DocumentDraw.TypeKeys "<PageDown>" @@ -357,7 +357,7 @@ testcase DrawToWriterDimensionLines Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\draw_to_writer_dim_lines.odt",false) + hFileOpenLocally( gOfficepath + "user\work\draw_to_writer_dim_lines.odt",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument @@ -382,8 +382,8 @@ testcase DrawToWriterConnectors printlog " Jump to beginning of document " printlog " Select Connectors " printlog " Copy selected Connectors " - Call hFileOpen (gtesttoolpath & "writer\optional\input\clipboard\draw.sxd") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath & "writer\optional\input\clipboard\draw.sxd") + Kontext "DocumentDraw" printlog " Jump to beginning of document " DocumentDraw.TypeKeys "<PageDown>" @@ -413,7 +413,7 @@ testcase DrawToWriterConnectors Call hCloseDocument printlog " Close saved document " wait 500 - Call hFileOpen (gOfficepath + "user\work\draw_to_writer_connectors.odt",false) + hFileOpenLocally( gOfficepath + "user\work\draw_to_writer_connectors.odt",false) printlog " Reopen saved document " Wait 500 Call hCloseDocument diff --git a/testautomation/writer/optional/includes/drawing/w_drawing_tools2.inc b/testautomation/writer/optional/includes/drawing/w_drawing_tools2.inc index 8b6b8e8329e8..43b16a2878a0 100755..100644 --- a/testautomation/writer/optional/includes/drawing/w_drawing_tools2.inc +++ b/testautomation/writer/optional/includes/drawing/w_drawing_tools2.inc @@ -636,8 +636,8 @@ testcase tGroup_12 Call hCloseDocument PrintLog "- Open previous saved document " - Call hFileOpen (sDocument) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sDocument) + Kontext "DocumentWriter" Call gMouseClick(34,34) 'set focus in the group diff --git a/testautomation/writer/optional/includes/dropdownLB/w_dropdownLB1.inc b/testautomation/writer/optional/includes/dropdownLB/w_dropdownLB1.inc index 6c4b39d0263f..7e1eee588127 100755..100644 --- a/testautomation/writer/optional/includes/dropdownLB/w_dropdownLB1.inc +++ b/testautomation/writer/optional/includes/dropdownLB/w_dropdownLB1.inc @@ -1024,8 +1024,8 @@ testcase tDropDownLB_17 PrintLog "- Open a new document" Call hNewDocument PrintLog "- Open a word document which includes 2 entries." - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + Kontext "EditInputList" if EditInputList.Exists then EditInputList.Cancel diff --git a/testautomation/writer/optional/includes/fields/w_fields2.inc b/testautomation/writer/optional/includes/fields/w_fields2.inc index 4f2c5c39388c..0f10d2b9ef42 100755..100644 --- a/testautomation/writer/optional/includes/fields/w_fields2.inc +++ b/testautomation/writer/optional/includes/fields/w_fields2.inc @@ -319,8 +319,8 @@ testcase tDocumentChapter Call hNewDocument '/// Open test file chapterTest.sxw - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + Call wTypeKeys "<MOD1 End><Return>" @@ -416,7 +416,7 @@ testcase tDocumentFilename Call hNewDocument '/// Open test file pageTest.sxw - Call hFileOpen(sTestFile) + hFileOpenLocally( sTestFile ) Call wTypeKeys "<MOD1 Home>" Call wTypeKeys "<End><Return>" @@ -470,8 +470,8 @@ testcase tDocumentPage Call hNewDocument '/// Open test file pageTest.sxw which includes 3 pages - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Go to the 2nd page Call wTypeKeys "<MOD1 Home>" @@ -890,7 +890,7 @@ testcase tDocumentStatistics '/// Open test file statisticsTest.sxw which includes '/// 2 tables , 2 pictures , 22 paragraph , 1 object , '/// 2 words , 12 characters and 2 pages - Call hFileOpen(sTestFile) + hFileOpenLocally( sTestFile ) Call wTypeKeys "<MOD1 Home><Down>" @@ -958,7 +958,7 @@ testcase tDocumentTemplate '/// <b> Insert/Fields/Other/Document / Template </b> '/// Open test file diploma.ott - Call hFileOpen(sTestFile) + hFileOpenLocally( sTestFile ) Call wTypeKeys "<MOD1 Home>" diff --git a/testautomation/writer/optional/includes/fields/w_fields3.inc b/testautomation/writer/optional/includes/fields/w_fields3.inc index 7b4e7f50722b..64261c7e1ac6 100755..100644 --- a/testautomation/writer/optional/includes/fields/w_fields3.inc +++ b/testautomation/writer/optional/includes/fields/w_fields3.inc @@ -94,8 +94,8 @@ testcase tSetReferenceNoSelection Call hNewDocument '/// Open test file pageTest.sxw - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Set curson to the 2nd page Call wTypeKeys "<MOD1 Home>" @@ -182,8 +182,8 @@ testcase tInsertReferencePage Call hNewDocument '/// Open test file pageTest.sxw - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Set curson to the 2nd page Call wTypeKeys "<MOD1 Home>" @@ -242,8 +242,8 @@ testcase tInsertReferenceChapter Call hNewDocument '/// Open test file chapterTest.sxw - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Set curson to the 2nd line Call wTypeKeys "<MOD1 Home>" @@ -685,8 +685,8 @@ testcase tInsertBookmarkPage Call hNewDocument '/// Open test file pageTest.sxw - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Set curson to the 2nd page Call wTypeKeys "<MOD1 Home>" @@ -743,8 +743,8 @@ testcase tInsertBookmarkChapter Call hNewDocument '/// Open test file chapterTest.sxw - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Set curson to the 2nd line Call wTypeKeys "<MOD1 Home>" diff --git a/testautomation/writer/optional/includes/fields/w_fields4.inc b/testautomation/writer/optional/includes/fields/w_fields4.inc index d1e16a1a36be..fb5a67ce8bb7 100755..100644 --- a/testautomation/writer/optional/includes/fields/w_fields4.inc +++ b/testautomation/writer/optional/includes/fields/w_fields4.inc @@ -67,8 +67,8 @@ testcase tDocInformationTitle Call hNewDocument '/// Open test file fields_docinfos.sxw - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// File / Properties / Description , input some '/// + new text in Title @@ -119,8 +119,8 @@ testcase tDocInformationSubject Call hNewDocument '/// Open test file fields_docinfos.sxw - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// File / Properties / Description , input some '/// + text in Subject @@ -171,8 +171,8 @@ testcase tDocInformationKeywords Call hNewDocument '/// Open test file fields_docinfos.sxw - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// File / Properties / Description , input some '/// + text in Keywords @@ -223,8 +223,8 @@ testcase tDocInformationDescription Call hNewDocument '/// Open test file fields_docinfos.sxw - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// File / Properties / Description , input some '/// + text in Description @@ -301,7 +301,7 @@ testcase tDocInformationUserDefined Call hNewDocument '/// Open test file fields_docinfos.sxw - Call hFileOpen(sTestFile) + hFileOpenLocally( sTestFile ) '/// File / Properties / Description , input some '/// + text in Description @@ -378,8 +378,8 @@ testcase tDocInformationCreated Call hNewDocument '/// Open test file fields_docinfos.sxw - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + Call fFindWord ("Created") Call wTypeKeys "<End><Right><Down><Down><Down><Home>" @@ -495,7 +495,7 @@ testcase tDocInformationModified Call hNewDocument '/// Open test file fields_docinfos.sxw - Call hFileOpen(sTestFile) + hFileOpenLocally( sTestFile ) Call hFileSaveAsKill (sSaveAsFile) Call fFindWord ("Modified") @@ -632,7 +632,7 @@ testcase tDocInformationModifiedSavefile Call hNewDocument '/// Open test file fields_docinfos.sxw - Call hFileOpen(sTestFile) + hFileOpenLocally( sTestFile ) Call fFindWord ("Modified") Call wTypeKeys "<End><Right><Down><Down><Down><Home>" @@ -749,7 +749,7 @@ testcase tDocInformationPrinted Call hNewDocument '/// Open test file fields_docinfos.sxw - Call hFileOpen(sTestFile) + hFileOpenLocally( sTestFile ) Call fFindWord ("Last printed") Call wTypeKeys "<End><Right><Down><Down><Down><Home>" @@ -873,7 +873,7 @@ testcase tDocInformationRevisionnumber Call hNewDocument '/// Open test file fields_docinfos.sxw - Call hFileOpen(sTestFile) + hFileOpenLocally( sTestFile ) '/// Change author to author : Test2 Test1 ToolsOptions @@ -972,7 +972,7 @@ testcase tDocInformationTotaleditingtime Call hNewDocument '/// Open test file fields_docinfos.sxw - Call hFileOpen(sTestFile) + hFileOpenLocally( sTestFile ) '/// Save the file as another file Call hFileSaveAsKill(sSaveAsFile) diff --git a/testautomation/writer/optional/includes/fields/w_fields5.inc b/testautomation/writer/optional/includes/fields/w_fields5.inc index 334d01906307..75f94e8a3351 100755..100644 --- a/testautomation/writer/optional/includes/fields/w_fields5.inc +++ b/testautomation/writer/optional/includes/fields/w_fields5.inc @@ -722,7 +722,7 @@ testcase tVariablesDDEFieldManual '/// Open the test file which you just closed , add something , '/// Save the file - Call hFileOpen(sDDEFile) + hFileOpenLocally( sDDEFile) Call wTypeKeys "<MOD1 Home>" Call wTypeKeys "XYZ" FileSave @@ -818,7 +818,7 @@ testcase tVariablesDDEFieldAutomatic '/// Open the test file which you just closed , add something , '/// Save the file - Call hFileOpen(sDDEFile) + hFileOpenLocally( sDDEFile) Call wTypeKeys "<MOD1 Home>" Call wTypeKeys "XYZ" FileSave diff --git a/testautomation/writer/optional/includes/fields/w_fields6.inc b/testautomation/writer/optional/includes/fields/w_fields6.inc index e310b67740af..f29eff451edb 100755..100644 --- a/testautomation/writer/optional/includes/fields/w_fields6.inc +++ b/testautomation/writer/optional/includes/fields/w_fields6.inc @@ -795,8 +795,8 @@ testcase tFunctionsCombineCharacter Call hNewDocument '/// Open test file pageTest.sxw - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + Call wTypeKeys "<MOD1 Home>" Call wTypeKeys "<Right>" diff --git a/testautomation/writer/optional/includes/fields/w_fields7.inc b/testautomation/writer/optional/includes/fields/w_fields7.inc index 5893e324366b..af3e73c284b1 100755..100644 --- a/testautomation/writer/optional/includes/fields/w_fields7.inc +++ b/testautomation/writer/optional/includes/fields/w_fields7.inc @@ -119,8 +119,8 @@ testcase tL10NtestAboveBelow Call hNewDocument '/// Open test file AboveBelow.sxw - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Check if reference above/below is changed after language is changed @@ -248,7 +248,7 @@ testcase tL10NtestDate Call hNewDocument '/// Open test file Date.sxw - Call hFileOpen(sTestFile) + hFileOpenLocally( sTestFile ) '/// Check if Date is changed after language is changed j = UBound(iCountry) @@ -371,7 +371,7 @@ testcase tL10NtestTime Call hNewDocument '/// Open test file Time.sxw - Call hFileOpen(sTestFile) + hFileOpenLocally( sTestFile ) '/// Check if time is changed after language is changed j = UBound(iCountry) diff --git a/testautomation/writer/optional/includes/formatcharacter/w_format_character1.inc b/testautomation/writer/optional/includes/formatcharacter/w_format_character1.inc index eb2de884a8cc..7b8b0e61d784 100755..100644 --- a/testautomation/writer/optional/includes/formatcharacter/w_format_character1.inc +++ b/testautomation/writer/optional/includes/formatcharacter/w_format_character1.inc @@ -243,9 +243,9 @@ testcase tFormatCharacter3 Call hCloseDocument printlog "reopen previous saved document and check saved character format" if gApplication = "WRITER" then - Call hFileOpen ( gOfficePath + "user\work\format1.odt" ) + hFileOpenLocally( gOfficePath + "user\work\format1.odt" ) else - Call hFileOpen ( gOfficePath + "user\work\format1.odm" ) + hFileOpenLocally( gOfficePath + "user\work\format1.odm" ) end if Call wTypeKeys "<Mod1 Home><Right>" Wait 500 @@ -579,9 +579,9 @@ testcase tFormatCharacter Call hCloseDocument printlog "re-open previous saved document" if gApplication = "WRITER" then - Call hFileOpen ( gOfficePath + "user\work\format1.odt" ) + hFileOpenLocally( gOfficePath + "user\work\format1.odt" ) else - Call hFileOpen ( gOfficePath + "user\work\format1.odm" ) + hFileOpenLocally( gOfficePath + "user\work\format1.odm" ) end if Call wTypeKeys "<Mod1 Home><Right>" Wait 500 diff --git a/testautomation/writer/optional/includes/formatpage/w_formatpage1.inc b/testautomation/writer/optional/includes/formatpage/w_formatpage1.inc index 84a5c5281f8b..c597fef06f87 100644 --- a/testautomation/writer/optional/includes/formatpage/w_formatpage1.inc +++ b/testautomation/writer/optional/includes/formatpage/w_formatpage1.inc @@ -348,7 +348,7 @@ testcase tFormatPage_6 Call hNewDocument - Call hFileOpen(gOfficepath + "user\work\tFormatPage_6.odt") + hFileOpenLocally( gOfficepath + "user\work\tFormatPage_6.odt") '/// Check if Pre-defined formats are correct fFormatPageWriter("TabSeite") @@ -602,8 +602,8 @@ testcase tFormatPage_11 '/// Open a test file , '/// + There are 2 pictures in 2 pages separately , '/// + and they are anchored as character - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// FormatPage / tabpage Page , Set left margins to 10cm , '/// + and set page layout to "Right to left" @@ -662,8 +662,8 @@ testcase tFormatPage_12 '/// Open a test file , '/// + there are 2 pictures in 2 pages separately , and they are anchored as character - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// FormatPage / tabpage Page , Set left margins to 10cm , '/// + and set page layout to "Mirrored" @@ -724,8 +724,8 @@ testcase tFormatPage_13 '/// Open a test file , '/// + there are 2 pictures in 2 pages separately - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// FormatPage / tabpage Page , Set left margins to 10cm , '/// + and set page layout to "Only right" @@ -781,8 +781,8 @@ testcase tFormatPage_14 '/// Open a test file , '/// + there are 2 pictures in 2 pages separately - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// FormatPage / tabpage Page , Set left margins to 10cm , '/// + and set page layout to "Only left" diff --git a/testautomation/writer/optional/includes/formatpage/w_formatpage2.inc b/testautomation/writer/optional/includes/formatpage/w_formatpage2.inc index 290b1a395b94..a191efc726cf 100755..100644 --- a/testautomation/writer/optional/includes/formatpage/w_formatpage2.inc +++ b/testautomation/writer/optional/includes/formatpage/w_formatpage2.inc @@ -60,8 +60,8 @@ testcase tFormatPage_16 Call hNewDocument '/// Open test file testForAutoFit.sxw - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Open Navigator and enter as page number 2 Kontext "Navigator" @@ -151,8 +151,8 @@ testcase tFormatPage_17 Call hNewDocument '/// Open test file testForAutoFit.sxw - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Open Navigator and enter as page number 2 Kontext "Navigator" @@ -255,8 +255,8 @@ testcase tFormatPage_18 Call hNewDocument '/// Open test file testForAutoFit.sxw - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Open Navigator and enter as page number 2 Kontext "Navigator" @@ -340,8 +340,8 @@ testcase tFormatPage_19 Call hNewDocument '/// Open test file testForAutoFit.sxw - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Open Navigator and enter as page number 2 Kontext "Navigator" @@ -417,8 +417,8 @@ testcase tFormatPage_20 Call hNewDocument '/// Open test file testForAutoFit.sxw - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Open Navigator and enter as page number 2 Kontext "Navigator" @@ -507,8 +507,8 @@ testcase tFormatPage_21 '/// AutoFit height - Check (Footer,multiline content) '/// Open test file testForAutoFit.sxw - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Open Navigator and enter as page number 2 Kontext "Navigator" @@ -613,8 +613,8 @@ testcase tFormatPage_22 Call hNewDocument '/// Open test file testForAutoFit.sxw - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Open Navigator and enter as page number 2 Kontext "Navigator" @@ -697,8 +697,8 @@ testcase tFormatPage_23 '/// AutoFit height - UnCheck (Footer,multiline content) '/// Open test file testForAutoFit.sxw - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Open Navigator and enter as page number 2 Kontext "Navigator" diff --git a/testautomation/writer/optional/includes/formatpage/w_formatpage3.inc b/testautomation/writer/optional/includes/formatpage/w_formatpage3.inc index 784f6dad28cc..f4954d106df6 100644 --- a/testautomation/writer/optional/includes/formatpage/w_formatpage3.inc +++ b/testautomation/writer/optional/includes/formatpage/w_formatpage3.inc @@ -71,8 +71,8 @@ testcase tFormatPage_29 '/// Open test file testHeaderContent29.sxw '/// + (The test file include 2 pages , and the '/// + content in header are different ) - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// formatPage , tabpage header , check 'same content left/right' fFormatPageWriter("TabKopfzeile") @@ -159,8 +159,8 @@ testcase tFormatPage_30 '/// Open test file testHeaderContent30.sxw '/// + (The test file include 2 pages , and the '/// + content in header is same ) - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// formatPage , tabpage header , Uncheck 'same content left/right' fFormatPageWriter("TabKopfzeile") @@ -226,8 +226,8 @@ testcase tFormatPage_31 '/// Open test file testFooterContent31.sxw '/// + (The test file include 2 pages , and the content '/// + in footer are different ) - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// + formatPage , tabpage footer , check 'same content left/right' fFormatPageWriter("TabFusszeile") @@ -314,8 +314,8 @@ testcase tFormatPage_32 '/// Open test file testFooterContent32.sxw '/// + (The test file include 2 pages , and the '/// + content in footer is same ) - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// formatPage , tabpage footer , Uncheck 'same content left/right' fFormatPageWriter("TabFusszeile") @@ -743,8 +743,8 @@ testcase tFormatPage_39 '/// Open test file testColumnInPage.sxw '/// + (The test file includes 2 pages , some text '/// + is in 1st page and another is in 2nd page) - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// formatPage , tabpage columns , change column to 3 via controls fFormatPageWriter("TabSpalten") @@ -808,8 +808,8 @@ testcase tFormatPage_40 '/// Open test file testColumnInPage.sxw '/// + (The test file includes 2 pages , some text is '/// + in 1st page and another is in 2nd page) - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// formatPage , tabpage columns , change column to 3 via spinfield fFormatPageWriter("TabSpalten") @@ -882,8 +882,8 @@ testcase tFormatPage_41 '/// Open test file testColumnInPage2.sxw '/// + (The test file includes 2 pages , some text is '/// + in 1st page and another is in 2nd page) - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Create 3 with different columns . formatPage , '/// + tabpage columns , set 3 columns @@ -973,8 +973,8 @@ testcase tFormatPage_42 '/// Open test file testColumnInPage2.sxw '/// + (The test file includes 2 pages , some text is '/// + in 1st page and another is in 2nd page) - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// formatPage , tabpage columns , set 3 columns fFormatPageWriter("TabSpalten") @@ -1136,8 +1136,8 @@ testcase tFormatPage_45 '/// Open test file testSeparatorLine.sxw '/// + (The test file includes 6 columns , some '/// + test text lllll... is in 2nd column - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + Kontext EditSearchAndReplace @@ -1263,7 +1263,7 @@ testcase tFormatPage_46 Call hCloseDocument Call hNewDocument - Call hFileOpen(gOfficepath + "user\work\tFormatPage_46.odt") + hFileOpenLocally( gOfficepath + "user\work\tFormatPage_46.odt") '/// Check if the setting are still kept fFormatPageWriter("TabSpalten") diff --git a/testautomation/writer/optional/includes/formatpage/w_formatpage4.inc b/testautomation/writer/optional/includes/formatpage/w_formatpage4.inc index 9b800e3bad4b..526cf111bc16 100644 --- a/testautomation/writer/optional/includes/formatpage/w_formatpage4.inc +++ b/testautomation/writer/optional/includes/formatpage/w_formatpage4.inc @@ -375,8 +375,8 @@ testcase tFormatPage_53 '/// Open test file testColumnVertical.sxw '/// + There are 8 columns in the page , and a test '/// + word is in 3rd column - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// formatPage , tabpage page, select right to left (vertical) Call fFormatPageWriter("TabSeite") @@ -763,8 +763,8 @@ testcase tFormatPage_60 Call hCloseDocument Call hNewDocument - Call hFileOpen(gOfficepath + "user\work\tFormatPage_60.odt") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gOfficepath + "user\work\tFormatPage_60.odt") + '/// check if the configuration is all right fFormatPageWriter("TabUmrandung") diff --git a/testautomation/writer/optional/includes/formatparagraph/w_formatparagraph1.inc b/testautomation/writer/optional/includes/formatparagraph/w_formatparagraph1.inc index 4fa007cfc4b0..7c31482e37af 100755..100644 --- a/testautomation/writer/optional/includes/formatparagraph/w_formatparagraph1.inc +++ b/testautomation/writer/optional/includes/formatparagraph/w_formatparagraph1.inc @@ -366,8 +366,8 @@ testcase tParagraphIndent5 '/// Open the test file '/// This file includes 2 paragraphs , and the end of 2nd paragraph is in 1st page - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + 'Set the focus to 2nd paragraph Kontext @@ -426,8 +426,8 @@ testcase tParagraphIndent6 '/// Open the test file '/// This file includes 2 paragraphs , and the end of 2nd paragraph is in 1st page - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + 'Set the focus to 1st paragraph Kontext @@ -494,8 +494,8 @@ testcase tParagraphIndent7 '/// if the spacing is adopted 1cm ,2nd paragrahp will be in 1st page '/// if the spacing is adopted 2cm ,2nd paragrahp part will be in 1st page , part will be in 2nd page '/// if the spacing is adopted 3cm ,2nd paragrahp will be in 2nd page - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + 'Set the focus to the end of the 1st paragraph Kontext @@ -582,8 +582,8 @@ testcase tParagraphIndent8 '/// if the spacing is adopted 1cm ,2nd paragrahp will be in 1st page '/// if the spacing is adopted 2cm ,2nd paragrahp part will be in 1st page , part will be in 2nd page '/// if the spacing is adopted 3cm ,2nd paragrahp will be in 2nd page - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + 'Set the focus to the end of the 1st paragraph Kontext @@ -642,8 +642,8 @@ testcase tParagraphIndent9 '/// Open the test file '/// This file includes 8 lines , '/// + when the spacing is single line , the 8 lines should be in 1 page as design. - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Format/Paragraph / Indents & Spacing , select single line in Line spacing Call fFormatParagraph("TabEinzuegeUndAbstaende") @@ -683,8 +683,8 @@ testcase tParagraphIndent10 '/// This file includes 8 lines '/// when the spacing is 1.5 lines , '/// + the last 2(or 3) lines should be in 2nd page. - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Format/Paragraph / Indents & Spacing , select 1.5 lines in Line spacing Call fFormatParagraph("TabEinzuegeUndAbstaende") @@ -753,8 +753,8 @@ testcase tParagraphIndent11 '/// This file includes 8 lines '/// when the spacing is Double lines , the first 4 lines should be in 1st page '/// + the last 4 lines should be in 2nd page. - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Format/Paragraph / Indents & Spacing , select Double lines in Line spacing Call fFormatParagraph("TabEinzuegeUndAbstaende") @@ -833,8 +833,8 @@ testcase tParagraphIndent12 '/// This file includes 8 lines '/// when the spacing Proportional is more than 200% , '/// + then it will change to be Double line automatically - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Format/Paragraph / Indents & Spacing , '/// + select Proportional in Line spacing , and input 300% @@ -907,8 +907,8 @@ testcase tParagraphIndent13 '/// This file includes 8 lines and 1 pic is anchored as character in 1st line '/// when the spacing is At least to 4cm, there should be 1 line/page '/// + and the pic should move down - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + 'Get the original coordinate-Y Call wTypeKeys ( "<Shift F4>" ) @@ -976,8 +976,8 @@ testcase tParagraphIndent14 '/// This file includes 8 lines and 1 pic is anchored as character in 1st line '/// when the spacing is leading to 4cm, there should be 1 line/page '/// + and the pic should NOT move - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + 'Get the original coordinate-Y Call wTypeKeys ( "<Shift F4>" ) @@ -1042,8 +1042,8 @@ testcase tParagraphIndent15 '/// Open the test file '/// + This file includes 8 lines , and font size is 12 - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Format/Paragraph / Indents & Spacing , '/// + select Fixed lines in Line spacing @@ -1112,8 +1112,8 @@ testcase tParagraphIndent16 '/// + You will find out the "He2 heard quiet steps" '/// + isn't at the same line with the context left it . '/// + There is a pic anchored "He2" . - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + 'Get the original location for the pic Call wTypeKeys ( "<Shift F4>" ) @@ -1171,8 +1171,8 @@ testcase tParagraphIndent17 '/// In Tools/Optionis/Text Document/Compatibility, '/// + the 'Add spacing between paragarph and talbes' '/// + should be checked - Call hFileOpen(sTestFile1) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile1) + ToolsOptions Call hToolsOptions("WRITER","COMPATIBILITY") @@ -1193,8 +1193,8 @@ testcase tParagraphIndent17 '/// In Tools/Optionis/Text Document/Compatibility, '/// + the 'Add spacing between paragarph and talbes' '/// + should NOT be checked - Call hFileOpen(sTestFile2) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile2) + ToolsOptions Call hToolsOptions("WRITER","COMPATIBILITY") diff --git a/testautomation/writer/optional/includes/formatparagraph/w_formatparagraph3.inc b/testautomation/writer/optional/includes/formatparagraph/w_formatparagraph3.inc index 77af9b0a0301..37c79948a1cc 100755..100644 --- a/testautomation/writer/optional/includes/formatparagraph/w_formatparagraph3.inc +++ b/testautomation/writer/optional/includes/formatparagraph/w_formatparagraph3.inc @@ -73,8 +73,8 @@ testcase tParagraphTabs1 '/// Open the test file '/// + There is 1 pic which is anchored as character in the file - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Format/Paragraph / Tabs , '/// + check Left in the type area , and input 3cm in Position @@ -119,8 +119,8 @@ testcase tParagraphTabs2 '/// Open the test file '/// + There is 1 pic which is anchored as character in the file - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Format/Paragraph / Tabs , '/// + check Right in the type area , and input 3cm in Position @@ -165,8 +165,8 @@ testcase tParagraphTabs3 '/// Open the test file '/// + There is 1 pic which is anchored as character in the file - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Format/Paragraph / Tabs , '/// + check Centered in the type area , and input 3cm in Position @@ -212,8 +212,8 @@ testcase tParagraphTabs4 '/// Open the test file '/// + There is 1 pic which is anchored as character in the file , '/// + and there are 1 "." seperator in front of the pic - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Format/Paragraph / Tabs , '/// + check Decimal in the type area , @@ -351,8 +351,8 @@ testcase tParagraphDropCaps1 '/// Open the test file '/// + There is 1 pic which is anchored as character in the file - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Format/Paragraph / Drop Caps , '/// + Check 'Display Drop Caps' , close the dialog @@ -403,8 +403,8 @@ testcase tParagraphDropCaps2 '/// Open the test file '/// + There is 1 pic which is anchored as character in the file - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Format/Paragraph / Drop Caps , '/// + Check 'Display Drop Caps' , then check 'whole word' , then close the dialog @@ -457,8 +457,8 @@ testcase tParagraphDropCaps3 '/// Open the test file '/// + There is 1 pic which is anchored as character in the file - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Format/Paragraph / Drop Caps , '/// + Check 'Display Drop Caps' , then set '6' in 'number of characters' ,then close the dialog @@ -511,8 +511,8 @@ testcase tParagraphDropCaps4 '/// Open the test file '/// + There is 1 pic which is anchored as character in the file - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Format/Paragraph / Drop Caps , '/// + Check 'Display Drop Caps' , then set '6' in 'Lines' ,then close the dialog @@ -562,8 +562,8 @@ testcase tParagraphDropCaps5 '/// Open the test file '/// + There is 1 pic which is anchored as character in the file - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Format/Paragraph / Drop Caps , '/// + Check 'Display Drop Caps' ,then set 'Space to text' to be 1cm , close the dialog @@ -648,8 +648,8 @@ testcase tParagraphDropCaps7 '/// Open the test file '/// + There is 1 pic which is anchored as character in the file - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Format/Paragraph / Drop Caps , '/// + Check 'Display Drop Caps' ,then set Xyz in Contents 'Text' field , close the dialog @@ -779,8 +779,8 @@ testcase tParagraphNumbering1 '/// Open the test file , '/// + there are 2 paragraphes in the file - Call hFileOpen(sTestFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sTestFile ) + '/// Find the test word , set the focus to 1st paragraph Call fFindWord( sTest1 ) diff --git a/testautomation/writer/optional/includes/hyphenation/w_hyphenation.inc b/testautomation/writer/optional/includes/hyphenation/w_hyphenation.inc index 62132356360c..560265c301e8 100755..100644 --- a/testautomation/writer/optional/includes/hyphenation/w_hyphenation.inc +++ b/testautomation/writer/optional/includes/hyphenation/w_hyphenation.inc @@ -51,8 +51,8 @@ testcase tHyphenation_1 printlog "Test Hyphenation using ctrl and -" printlog "open a test file" - Call hFileOpen ( gTesttoolPath + "writer\optional\input\hyphenation\" + testFile ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\hyphenation\" + testFile ) + ' we must assure the word 'following' is the first word in second line ' otherwise the test will not work correctly @@ -98,8 +98,8 @@ testcase tHyphenation_2 printlog "Test Hyphenation using ctrl and -" printlog "open a test file" - Call hFileOpen ( gTesttoolPath + "writer\optional\input\hyphenation\" + testFile ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\hyphenation\" + testFile ) + ' we must assure the word 'following' is the first word in second line ' otherwise the test will not work correctly @@ -153,8 +153,8 @@ testcase tHyphenation_3 printlog "Test Hyphenation using Tools/Hyphenation ,test like fol-lowing" printlog "open a test file" - Call hFileOpen ( gTesttoolPath + "writer\optional\input\hyphenation\" + testFile ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\hyphenation\" + testFile ) + ' we must assure the word 'following' is the first word in second line ' otherwise the test will not work correctly @@ -265,8 +265,8 @@ testcase tHyphenation_4 printlog "Test Hyphenation using Tools/Hyphenation ,test like follow-ing" printlog "open a test file" - Call hFileOpen ( gTesttoolPath + "writer\optional\input\hyphenation\" + testFile ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\hyphenation\" + testFile ) + ' we must assure the word 'following' is the first word in second line ' otherwise the test will not work correctly diff --git a/testautomation/writer/optional/includes/insertgraphic/w_insertgraphic1.inc b/testautomation/writer/optional/includes/insertgraphic/w_insertgraphic1.inc index 4b0a23775f33..bf90c2744768 100755..100644 --- a/testautomation/writer/optional/includes/insertgraphic/w_insertgraphic1.inc +++ b/testautomation/writer/optional/includes/insertgraphic/w_insertgraphic1.inc @@ -642,9 +642,9 @@ testcase tInsertGraphic_10 sleep(2) '/// Reload the file - Call hFileOpen(gOfficepath + "user\work\tInsertGraphic_5.odt") + hFileOpenLocally( gOfficepath + "user\work\tInsertGraphic_5.odt") sleep(2) - Call sMakeReadOnlyDocumentEditable + '/// Check if the inserted graphics are still there Kontext "DocumentWriter" diff --git a/testautomation/writer/optional/includes/loadsave/w_loadsave.inc b/testautomation/writer/optional/includes/loadsave/w_loadsave.inc index 7454f733665d..3bfd69c481d6 100644 --- a/testautomation/writer/optional/includes/loadsave/w_loadsave.inc +++ b/testautomation/writer/optional/includes/loadsave/w_loadsave.inc @@ -80,7 +80,7 @@ testcase tExportAllReadableFormatsIntoODF if GetExtention ( sExportFile ) = "psw" then QAErrorlog "#i102221#Pocket Word filter puts General I/O Error" else - Call hFileOpen ( ImportFileList(i) ) + hFileOpenLocally( ImportFileList(i) ) printlog "- done" Kontext "TextImport" diff --git a/testautomation/writer/optional/includes/navigator/w_navigator.inc b/testautomation/writer/optional/includes/navigator/w_navigator.inc index ec3b6cfd4627..c0f03039176d 100755..100644 --- a/testautomation/writer/optional/includes/navigator/w_navigator.inc +++ b/testautomation/writer/optional/includes/navigator/w_navigator.inc @@ -216,8 +216,8 @@ testcase tViewNavigator3 '/// Edit / Navigator : check some Navigator-Functions /// printlog "- Edit / Navigator : check some Navigator-Functions" '/// Open document ( navigator.odt ) /// - Call hFileOpen ( gTesttoolpath + "writer\optional\input\navigator\navigator.odt" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolpath + "writer\optional\input\navigator\navigator.odt" ) + '/// Open Navigator /// Kontext "Navigator" if Navigator.NotExists then ViewNavigator @@ -363,8 +363,8 @@ testcase tViewNavigator4 endif printlog "- Edit / Navigator : check entry's in Navigator Index" '/// File / Open / 'gTesttoolpath + "writer\optional\input\navigator\navigator.odt"' /// - Call hFileOpen ( gTesttoolpath + "writer\optional\input\navigator\navigator.odt" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolpath + "writer\optional\input\navigator\navigator.odt" ) + '/// Open Navigator through Edit / Navigator /// ViewNavigator Kontext "NavigatorWriter" @@ -432,8 +432,8 @@ testcase tViewNavigator5 printlog "- Edit / Navigator : Check Jumpmark from Index in Navigator" '/// File / Open / 'gTesttoolpath + "writer\optional\input\navigator\navigator.odt"' /// - Call hFileOpen ( gTesttoolpath + "writer\optional\input\navigator\navigator.odt" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolpath + "writer\optional\input\navigator\navigator.odt" ) + '/// Open Navigator /// Kontext "NavigatorWriter" if Not NavigatorWriter.Exists then @@ -617,8 +617,8 @@ testcase tViewNavigator6 printlog "- Edit / Navigator : Rename Objects" '/// File / Open / 'gTesttoolpath + "writer\optional\input\navigator\st1_1.sxw" ' /// - Call hFileOpen ( gTesttoolpath + "writer\optional\input\navigator\st1_1.sxw" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolpath + "writer\optional\input\navigator\st1_1.sxw" ) + Kontext "Navigator" '/// Open Navigator /// if Navigator.NotExists then ViewNavigator @@ -674,7 +674,7 @@ testcase tViewNavigator6 Sleep 2 printlog "- Saving and Loading the document, check settings" - Call hFileOpen(gOfficePath + "user\work\uvobj.odt") + hFileOpenLocally( gOfficePath + "user\work\uvobj.odt") '/// Navigator has to be opened with document /// Kontext "Navigator" if Navigator.NotExists then diff --git a/testautomation/writer/optional/includes/number/w_205_.inc b/testautomation/writer/optional/includes/number/w_205_.inc index 57a56ab80b8c..dafa55b3d9bb 100755..100644 --- a/testautomation/writer/optional/includes/number/w_205_.inc +++ b/testautomation/writer/optional/includes/number/w_205_.inc @@ -183,7 +183,7 @@ testcase tFormatNumberingBullets Sleep 2 Call hCloseDocument Sleep 2 - Call hFileOpen ( gOfficePath + "user\work\format4." & WriterFilterExtension(0) ) + hFileOpenLocally( gOfficePath + "user\work\format4." & WriterFilterExtension(0) ) Sleep 2 '/// Close document /// Call hCloseDocument @@ -315,7 +315,7 @@ testcase tFormatNumberingPosition Sleep 2 Call hCloseDocument Sleep 2 - Call hFileOpen ( gOfficePath + "user\work\tFormatNumberingPosition." & WriterFilterExtension(0) ) + hFileOpenLocally( gOfficePath + "user\work\tFormatNumberingPosition." & WriterFilterExtension(0) ) '/// check settings on Format / NumberingBullets /// FormatNumberingBullets @@ -499,7 +499,7 @@ testcase tFormatNumberingOptions Sleep 2 Call hCloseDocument Sleep 2 - Call hFileOpen ( gOfficePath + "user\work\format6." & WriterFilterExtension(0) ) + hFileOpenLocally( gOfficePath + "user\work\format6." & WriterFilterExtension(0) ) For i = 1 to 15 call wTypeKeys "<Up>" Wait 500 @@ -713,7 +713,7 @@ testcase tFormatNumberingAll Sleep 2 Call hCloseDocument Sleep 2 - Call hFileOpen ( gOfficePath + "user\work\format7." & WriterFilterExtension(0) ) + hFileOpenLocally( gOfficePath + "user\work\format7." & WriterFilterExtension(0) ) Sleep 2 FormatNumberingBullets '/// reopen Format / NumberingBullets and check saved settings /// diff --git a/testautomation/writer/optional/includes/number/w_205a_.inc b/testautomation/writer/optional/includes/number/w_205a_.inc index 0e157368d433..d981dbde812f 100755..100644 --- a/testautomation/writer/optional/includes/number/w_205a_.inc +++ b/testautomation/writer/optional/includes/number/w_205a_.inc @@ -47,8 +47,8 @@ testcase tToolsOutlineNumbering1 Dim i as integer PrintLog "- Tools / Outline Numbering: Part 1 - Numbering" - Call hFileOpen ( gTesttoolPath + "writer\optional\input\number\numbering1.sxw" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\number\numbering1.sxw" ) + ToolsOutlineNumbering Kontext @@ -240,10 +240,10 @@ testcase tToolsOutlineNumbering1 Select Case i Case 1 printlog "- Load sxw and check formattings" - Call hFileOpen ( gOfficePath + "user\work\tToolsOutlineNumbering1.sxw" ) + hFileOpenLocally( gOfficePath + "user\work\tToolsOutlineNumbering1.sxw" ) Case 2 printlog "- Load odt and check formattings" - Call hFileOpen ( gOfficePath + "user\work\tToolsOutlineNumbering1.odt" ) + hFileOpenLocally( gOfficePath + "user\work\tToolsOutlineNumbering1.odt" ) end select call wTypeKeys "<PageUp>", 8 call wTypeKeys "<Up>", 10 @@ -343,8 +343,8 @@ testcase tToolsOutlineNumbering2 PrintLog "- Tools / Outline Numbering: Part 2 - Tabpage Position" - Call hFileOpen ( gTesttoolPath + "writer\optional\input\number\numbering1.sxw" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\number\numbering1.sxw" ) + ToolsOutlineNumbering Kontext @@ -463,7 +463,7 @@ testcase tToolsOutlineNumbering2 printlog " - check saved Numbering" Call hFileSaveAsWithFilterKill ( gOfficePath + "user\work\tToolsOutlineNumbering2.odt", "writer8" ) Call hCloseDocument - Call hFileOpen ( gOfficePath + "user\work\tToolsOutlineNumbering2.odt" ) + hFileOpenLocally( gOfficePath + "user\work\tToolsOutlineNumbering2.odt" ) ToolsOutlineNumbering Kontext @@ -638,7 +638,7 @@ testcase tToolsOutlineNumbering3 printlog " - check saved Numbering" Call hFileSaveAsWithFilterKill ( gOfficePath + "user\work\tToolsOutlineNumbering3.odt", "writer8" ) Call hCloseDocument - Call hFileOpen ( gOfficePath + "user\work\tToolsOutlineNumbering3.odt" ) + hFileOpenLocally( gOfficePath + "user\work\tToolsOutlineNumbering3.odt" ) ToolsOutlineNumbering Kontext Active.SetPage TabKapitelnumerierung @@ -840,7 +840,7 @@ testcase tToolsFootnoteEndnote printlog " - Save and reload" Call hFileSaveAsWithFilterKill ( gOfficePath + "user\work\tToolsFootnoteEndnote.odt", "writer8" ) Call hCloseDocument - Call hFileOpen ( gOfficePath + "user\work\tToolsFootnoteEndnote.odt" ) + hFileOpenLocally( gOfficePath + "user\work\tToolsFootnoteEndnote.odt" ) printlog " - check saved properties" ToolsFootnote Kontext diff --git a/testautomation/writer/optional/includes/number/w_206_.inc b/testautomation/writer/optional/includes/number/w_206_.inc index ae7698017216..46cc61715ad9 100755..100644 --- a/testautomation/writer/optional/includes/number/w_206_.inc +++ b/testautomation/writer/optional/includes/number/w_206_.inc @@ -340,7 +340,7 @@ testcase tToolsNumbering6 Call hFileSaveAsKill ( gOfficepath & "user\work\tToolsNumbering6.odt" ) '/// Close and reload document Call hCloseDocument - Call hFileOpen ( gOfficepath & "user\work\tToolsNumbering6.odt" ) + hFileOpenLocally( gOfficepath & "user\work\tToolsNumbering6.odt" ) end if call wTypeKeys ( "<MOD1 A>" ) EditCopy @@ -448,7 +448,7 @@ testcase tToolsNumbering7 Call hFileSaveAsKill ( gOfficepath & "user\work\tToolsNumbering7.odt" ) '/// Close and reload document Call hCloseDocument - Call hFileOpen ( gOfficepath & "user\work\tToolsNumbering7.odt" ) + hFileOpenLocally( gOfficepath & "user\work\tToolsNumbering7.odt" ) end if call wTypeKeys ( "<MOD1 A>" ) diff --git a/testautomation/writer/optional/includes/number/w_207_.inc b/testautomation/writer/optional/includes/number/w_207_.inc index 634e7c5773a7..f356f1e21e4e 100755..100644 --- a/testautomation/writer/optional/includes/number/w_207_.inc +++ b/testautomation/writer/optional/includes/number/w_207_.inc @@ -74,10 +74,10 @@ testcase tToolsNumbering12 end select printlog( "Open file: " & DocFileList( iCurrentDocument ) ) - Call hFileOpen ( DocFileList( iCurrentDocument ) ) + hFileOpenLocally( DocFileList( iCurrentDocument ) ) printlog( "Make a copy if the file is write protected" ) - Call sMakeReadOnlyDocumentEditable + printlog( "Test for unexpected dialog: Filter Selection" ) Kontext "Filterauswahl" @@ -111,7 +111,7 @@ testcase tToolsNumbering12 Call hCloseDocument printlog " - load previous saved document" - Call hFileOpen ( ExportFileName ) + hFileOpenLocally( ExportFileName ) printlog " - close document" hFileCloseAll() @@ -132,8 +132,8 @@ testcase tToolsNumbering13 '/// This testcase loads a Worddocument that lost all formattings printlog "#i73790 regression testing" '/// Load document 'writer\\optional\\input\\number\\regression\\73790.doc' - Call hFileOpen ( gTesttoolPath + "writer\optional\input\number\regression\73790.doc" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\number\regression\73790.doc" ) + '/// Document has Heading1-Heading3 formatted, be sure it is call wTypeKeys ("<Mod1 Home>") '/// Point cursor to top of document with <STRG HOME> diff --git a/testautomation/writer/optional/includes/option/wh_o_1.inc b/testautomation/writer/optional/includes/option/wh_o_1.inc index cbc35f599a4b..4eb667c7dc19 100755..100644 --- a/testautomation/writer/optional/includes/option/wh_o_1.inc +++ b/testautomation/writer/optional/includes/option/wh_o_1.inc @@ -148,8 +148,8 @@ testcase tToolsOptionsHTMLLayout Dim iMasseinheit(3) as integer Dim iTemp(3) as integer '///Open "writer\\optional\\input\\options\\options1.sxw /// - Call hFileOpen ( gTesttoolPath + "writer\optional\input\options\options1.sxw" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\options\options1.sxw" ) + printlog "'///- Tools/Options/Writer: View ///" ToolsOptions @@ -397,8 +397,8 @@ testcase tToolsOptionsHTMLGrid Dim sTempMetricField(4) as string '/// uses: "writer\\optional\\input\\options\\options1.sxw" /// - Call hFileOpen ( gTesttoolPath + "writer\optional\input\options\options1.sxw" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\options\options1.sxw" ) + printlog "'///- Tools/Options/HTML: Grid ///" printlog ("'/// - save states ///") @@ -552,8 +552,8 @@ testcase tToolsOptionsHTMLGrid '/// ( gTesttoolPath + "writer\optional\input\options\gridtst.sxw" ) ///' '/// NOT Possible Without <ALT> + <cursor> stuff :-((((( BugID: 84741 ///' '/// uses"writer\optional\input\options\htmltag.html" /// - Call hFileOpen ( gTesttoolPath + "writer\optional\input\options\htmltag.html" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\options\htmltag.html" ) + '/// check if writeable!///' try diff --git a/testautomation/writer/optional/includes/option/wh_o_2.inc b/testautomation/writer/optional/includes/option/wh_o_2.inc index bdee49ed7460..6555e741c5e3 100755..100644 --- a/testautomation/writer/optional/includes/option/wh_o_2.inc +++ b/testautomation/writer/optional/includes/option/wh_o_2.inc @@ -48,8 +48,8 @@ testcase tToolsOptionsHTMLPrint dim bRadioBut(4) as boolean ' RadioButtons dim bTempRadioBut(4) as boolean - Call hFileOpen ( gTesttoolPath + "writer\optional\input\options\test.html" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\options\test.html" ) + printlog "- Tools/Options/HTML: PrintHTML " printlog (" - save states ") @@ -163,7 +163,7 @@ testcase tToolsOptionsHTMLPrint ' Is saved with document Kontext "ExtrasOptionenDlg" ExtrasOptionenDlg.OK - Call hFileOpen(gOfficepath + "user\work\printtest.html") + hFileOpenLocally( gOfficepath + "user\work\printtest.html") ToolsOptions Call hToolsOptions ( "HTML" , "PRINT" ) diff --git a/testautomation/writer/optional/includes/option/wr_o_1.inc b/testautomation/writer/optional/includes/option/wr_o_1.inc index 26edd589af84..6ca437431ec4 100755..100644 --- a/testautomation/writer/optional/includes/option/wr_o_1.inc +++ b/testautomation/writer/optional/includes/option/wr_o_1.inc @@ -426,8 +426,8 @@ testcase tToolsOptionsWriterView5 Call hNewDocument '/// open document: writer\\optional\\input\\options\\options1.sxw - Call hFileOpen ( gTesttoolPath + "writer\optional\input\options\options1.sxw" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\options\options1.sxw" ) + '///- Tools/Options/Writer: View printlog ("'/// - save states ///") @@ -481,8 +481,8 @@ testcase tToolsOptionsWriterView6 Call hNewDocument '/// open document: writer\\optional\\input\\options\\options1.sxw - Call hFileOpen ( gTesttoolPath + "writer\optional\input\options\options1.sxw" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\options\options1.sxw" ) + '///- Tools/Options/Writer: View printlog ("'/// - save states ///") @@ -542,8 +542,8 @@ testcase tToolsOptionsWriterView7 Call hNewDocument '/// open document: writer\\optional\\input\\options\\options1.sxw - Call hFileOpen ( gTesttoolPath + "writer\optional\input\options\options1.sxw" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\options\options1.sxw" ) + '///- Tools/Options/Writer: View printlog ("'/// - save states ///") @@ -867,8 +867,8 @@ testcase tToolsOptionsWriterGrid4 printlog ("'/// Function Test: Grid Resolution ///'") '/// ( gTesttoolPath + "writer\optional\input\options\gridtst.sxw" ) ///' - Call hFileOpen ( gTesttoolPath + "writer\optional\input\options\gridtst.sxw", False ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\options\gridtst.sxw", False ) + ' select grafik element Call wNavigatorAuswahl(4,1) diff --git a/testautomation/writer/optional/includes/option/wr_o_2.inc b/testautomation/writer/optional/includes/option/wr_o_2.inc index cdc8dc00de4c..b2a4e72ecec1 100755..100644 --- a/testautomation/writer/optional/includes/option/wr_o_2.inc +++ b/testautomation/writer/optional/includes/option/wr_o_2.inc @@ -102,8 +102,8 @@ testcase tToolsOptionsWriterDefaultfont (WestOrEast as string) '/// use a document to check the font with styles///' '///+ use 'input\\writer\\optional\\options\\options2.sxw' /// - Call hFileOpen ( sFileName ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sFileName ) + printlog "- Tools/Options/Writer: DefaultFont" printlog ("/// - save states ///") @@ -239,8 +239,8 @@ testcase tToolsOptionsWriterDefaultfont (WestOrEast as string) Printlog "'/// - verify global settings don't affect saved Document ///" '///+ use input\\writer\\optional\\options\\options2.sxw /// - Call hFileOpen ( sFileName ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( sFileName ) + Kontext "DocumentWriter" DocumentWriter.TypeKeys "<Up>", 5 Call wTypeKeys "<Home><Right>" @@ -463,8 +463,8 @@ testcase tToolsOptionsWriterPrint1 '(4) = Seitenende '/// uses "input\\writer\\optional\\options\\options3.sxw" /// - Call hFileOpen ( gTesttoolPath + "writer\optional\input\options\options3.sxw" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\options\options3.sxw" ) + printlog "'///- Tools/Options/Writer: PrintWriter ///" printlog ("'/// - save states ///") @@ -587,7 +587,7 @@ testcase tToolsOptionsWriterPrint1 ExtrasOptionenDlg.OK WaitSlot (2) ' Notify is saved with document - Call hFileOpen(gOfficepath + "user\work\printtest." & WriterFilterExtension(0) ) + hFileOpenLocally( gOfficepath + "user\work\printtest." & WriterFilterExtension(0) ) ToolsOptions Call hToolsOptions ( "WRITER" , "PRINT" ) diff --git a/testautomation/writer/optional/includes/option/wr_o_3.inc b/testautomation/writer/optional/includes/option/wr_o_3.inc index 39fd97994e1a..df70dfc52faf 100755..100644 --- a/testautomation/writer/optional/includes/option/wr_o_3.inc +++ b/testautomation/writer/optional/includes/option/wr_o_3.inc @@ -938,7 +938,7 @@ testcase tToolsOptionsWriterCompatibility1 printlog "- load previously saved document" Call hNewDocument - Call hFileOpen (gOfficePath + "user\work\tToolsOptionsWriterCompatibility1.odt") + hFileOpenLocally( gOfficePath + "user\work\tToolsOptionsWriterCompatibility1.odt") Printlog "check state of all checkboxes and uncheck all checkboxes" ToolsOptions @@ -1010,8 +1010,8 @@ testcase tToolsOptionsWriterCompatibility2 Call hNewDocument printlog "open document ./writer/leve11/input/options/compatibility1.doc" printlog "check formatting of current opened document" - Call hFileOpen ( gTesttoolpath & "writer\optional\input\options\compatibility1.doc" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolpath & "writer\optional\input\options\compatibility1.doc" ) + Call wTypeKeys ("<Mod1 Home>") Call wTypeKeys ("<Down>") @@ -1253,7 +1253,7 @@ DIM sFoundWord AS string 'variable for word found one line below ExtrasOptionenDLG.Cancel printlog "Reload recently saved document" - Call hFileOpen (sDocument) + hFileOpenLocally( sDocument) printlog "Tools-Options-OOo Writer-Compatibility" ToolsOptions diff --git a/testautomation/writer/optional/includes/option/wr_o_4.inc b/testautomation/writer/optional/includes/option/wr_o_4.inc index 83f09e5c7e89..3201411e0e82 100755..100644 --- a/testautomation/writer/optional/includes/option/wr_o_4.inc +++ b/testautomation/writer/optional/includes/option/wr_o_4.inc @@ -217,7 +217,7 @@ testcase tToolsOptionsWriterOther ' load file in this environment '///use "output\\writer\\w95\\tab25cm.odt" /// - Call hFileOpen (gOfficePath + "user\work\tab25cm.odt") + hFileOpenLocally( gOfficePath + "user\work\tab25cm.odt") sleep (2) ' check TabStops, have to be the ones this file was saved with ToolsOptions diff --git a/testautomation/writer/optional/includes/option/wr_o_a.inc b/testautomation/writer/optional/includes/option/wr_o_a.inc index ac6084157867..64f60fa7e0f9 100755..100644 --- a/testautomation/writer/optional/includes/option/wr_o_a.inc +++ b/testautomation/writer/optional/includes/option/wr_o_a.inc @@ -45,8 +45,8 @@ testcase tToolsOptionsWriterPrint Dim i as integer printlog "- Tools/Options/Writer: PrintWriter (real print)" - Call hFileOpen ( gTesttoolPath + "writer\optional\input\options\options3.sxw" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\options\options3.sxw" ) + Printlog " - check all (real print)" ToolsOptions diff --git a/testautomation/writer/optional/includes/redlining/w_redlining1.inc b/testautomation/writer/optional/includes/redlining/w_redlining1.inc index d6983e200a4c..b08faaf6d8d8 100755..100644 --- a/testautomation/writer/optional/includes/redlining/w_redlining1.inc +++ b/testautomation/writer/optional/includes/redlining/w_redlining1.inc @@ -1104,8 +1104,8 @@ testcase tRedlining_16 '/// + Redlining test => OK_2 <-- Numbering style : list 2 '/// + Redlining test => OK_3 <-- Numbering style : list 3 - Call hFileOpen ( gTesttoolPath + "writer\optional\input\redlining\tRedlining_15.sxw" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\redlining\tRedlining_15.sxw" ) + Call wTypeKeys "<Up>" , 3 diff --git a/testautomation/writer/optional/includes/regexp/regular.inc b/testautomation/writer/optional/includes/regexp/regular.inc index 3a323bce2a49..d53277085b13 100755..100644 --- a/testautomation/writer/optional/includes/regexp/regular.inc +++ b/testautomation/writer/optional/includes/regexp/regular.inc @@ -899,8 +899,8 @@ sub Ausgangszustand_herstellen '///+ Uncheck 'Search for Styles' /// '///+ Uncheck 'Similarity Search' /// '///+ Check 'Regular Expressions' /// - Call hFileOpen ( gtesttoolpath + "writer\optional\input\search\regu_aus.sxw") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gtesttoolpath + "writer\optional\input\search\regu_aus.sxw") + kontext if FindAndReplace.Exists then FindAndReplace.Close kontext "DocumentWriter" diff --git a/testautomation/writer/optional/includes/regexp/search.inc b/testautomation/writer/optional/includes/regexp/search.inc index 8121859870ad..163aa230f2e1 100755..100644 --- a/testautomation/writer/optional/includes/regexp/search.inc +++ b/testautomation/writer/optional/includes/regexp/search.inc @@ -1524,11 +1524,11 @@ sub wSetFindAndReplaceToDefault(WhichDocument as integer) Case 0 Call hNewDocument ' empty Document Case 1 - Call hFileOpen ( gTesttoolPath +"writer\optional\input\search\such_u_e.sxw") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath +"writer\optional\input\search\such_u_e.sxw") + case 2 - Call hFileOpen ( gTesttoolPath +"writer\optional\input\search\attrib.sxw") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath +"writer\optional\input\search\attrib.sxw") + end select kontext "FindAndReplace" Sleep 2 diff --git a/testautomation/writer/optional/includes/regression/issuezilla/w_issuezilla_regression.inc b/testautomation/writer/optional/includes/regression/issuezilla/w_issuezilla_regression.inc index 5e13f9353891..c03cb811e0f0 100755..100644 --- a/testautomation/writer/optional/includes/regression/issuezilla/w_issuezilla_regression.inc +++ b/testautomation/writer/optional/includes/regression/issuezilla/w_issuezilla_regression.inc @@ -153,8 +153,8 @@ testcase i65094 Call hNewDocument '/// Open file \\writer\\optional\\input\\regression\\issuezilla\\i65094a.odt printlog "- Open file: i65094a.odt" - Call hFileOpen ( gTesttoolPath + "writer\optional\input\regression\issuezilla\i65094a.odt" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\regression\issuezilla\i65094a.odt" ) + '/// Compare document with other version \\writer\\optional\\input\\regression\\issuezilla\\i65094b.odt ' UseBindings printlog "- Compare document with other version" @@ -165,7 +165,7 @@ testcase i65094 ' Sleep 2 Oeffnen.Click Sleep 5 - Call sMakeReadOnlyDocumentEditable + printlog "- Accept all" '/// In Redlining dialog select 'Accept all' Kontext "Redlining" @@ -205,7 +205,7 @@ testcase i69045 Call hCloseDocument printlog "- Save, close and load document" '/// Open saved document - Call hFileOpen ( gOfficepath & "user\work\i69045.odt" ) + hFileOpenLocally( gOfficepath & "user\work\i69045.odt" ) '/// Check try EditChangesAcceptOrReject @@ -236,8 +236,8 @@ testcase i69521 '/// New writer document Call hNewDocument '/// Load document: \\writer\\optional\\input\\regression\\issuezilla\\i69521.odt - Call hFileOpen (gTesttoolpath & "writer\optional\input\regression\issuezilla\i69521.odt") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolpath & "writer\optional\input\regression\issuezilla\i69521.odt") + '/// Loaded document should have 5 EPS Graphics iItems = CountItemsInNavigatorGroup(4) if iItems <> 5 then @@ -251,7 +251,7 @@ testcase i69521 '/// close document Call hCloseDocument '/// reload previous saved document - Call hFileOpen (gOfficePath & "user\work\i96521-1.odt") + hFileOpenLocally( gOfficePath & "user\work\i96521-1.odt") '/// Check if all 5 Graphics are still in document iItems = CountItemsInNavigatorGroup(4) if iItems <> 5 then @@ -325,7 +325,7 @@ testcase i75027 Call hFileSaveAsKill (gOfficepath & "user\work\i75027.html") '/// Reload previous saved document Call hCloseDocument - Call hFileOpen (gOfficepath & "user\work\i75027.html") + hFileOpenLocally( gOfficepath & "user\work\i75027.html") '/// Check that the numbering is still the same. printlog "- check numbering (previous saved)" Call wTypeKeys ( "<MOD1 A>" ) @@ -444,8 +444,8 @@ testcase i103265 printlog "ODF Hyperlinks in TOCs" Call hNewDocument printlog "- Open test document" - Call hFileOpen ( gTesttoolPath + "writer\optional\input\regression\issuezilla\i103265.odt" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\regression\issuezilla\i103265.odt" ) + printlog "- Update TOC" ToolsUpdateAllIndexes @@ -482,7 +482,7 @@ testcase i103265 Call hCloseDocument printlog "- Reload" - Call hFileOpen ( gOfficePath + "user\work\ODFHyperlinksInTOCs.html" ) + hFileOpenLocally( gOfficePath + "user\work\ODFHyperlinksInTOCs.html" ) printlog "Check that every hyperlink jumps correctly to its target" For i = 1 to 3 ' point cursor to beginning of document diff --git a/testautomation/writer/optional/includes/section/w_section_3.inc b/testautomation/writer/optional/includes/section/w_section_3.inc index 6dc00cd5c0f3..72963282511e 100755..100644 --- a/testautomation/writer/optional/includes/section/w_section_3.inc +++ b/testautomation/writer/optional/includes/section/w_section_3.inc @@ -1064,7 +1064,7 @@ testcase tPasswordProtectSection_2 Call hCloseDocument PrintLog " Reload the file" - Call hFileOpen (gOfficePath + "user\work\tPasswordProtectSection_2.odt") + hFileOpenLocally( gOfficePath + "user\work\tPasswordProtectSection_2.odt") FormatSections Kontext "BereicheBearbeiten" @@ -1200,7 +1200,7 @@ testcase tPasswordProtectSection_4 Call hCloseDocument PrintLog " Reload the file" - Call hFileOpen (gOfficePath + "user\work\tPasswordProtectSection_4.odt") + hFileOpenLocally( gOfficePath + "user\work\tPasswordProtectSection_4.odt") PrintLog " In format/section, PW-Dialogue should appear when clicking 'option' button" FormatSections diff --git a/testautomation/writer/optional/includes/section/w_section_4.inc b/testautomation/writer/optional/includes/section/w_section_4.inc index 2c811268f93b..632956e92d17 100755..100644 --- a/testautomation/writer/optional/includes/section/w_section_4.inc +++ b/testautomation/writer/optional/includes/section/w_section_4.inc @@ -856,8 +856,8 @@ testcase tParagraphSection_1 PrintLog " - Keep paragraphs together" '/// Open a file with 4 paragraphs, the 4th paragraph is crossing the page - Call hFileOpen(documentName) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( documentName) + EditSelectAll Call fInsertSection(sectionName) @@ -1198,8 +1198,8 @@ testcase tScenarioSection_1 next i '/// open testdocument (tScenarioSection_1.sxw) /// - Call hFileOpen ( gTesttoolpath + "writer\optional\input\section\tScenarioSection_1.sxw") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolpath + "writer\optional\input\section\tScenarioSection_1.sxw") + '/// Select 'File /Send -> Create Masterdocument /// FileSendCreateMasterdocument @@ -1318,8 +1318,8 @@ testcase tScenarioSection_2 next i '/// open testdocument (tScenarioSection_2.sxw) /// - Call hFileOpen ( gTesttoolpath + "writer\optional\input\section\tScenarioSection_2.sxw") - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolpath + "writer\optional\input\section\tScenarioSection_2.sxw") + '/// Select 'File -> Send -> Create Masterdocument /// FileSendCreateMasterdocument diff --git a/testautomation/writer/optional/includes/sorting/w_sorting1.inc b/testautomation/writer/optional/includes/sorting/w_sorting1.inc index d4cb27449cba..ae6fae7345d7 100755..100644 --- a/testautomation/writer/optional/includes/sorting/w_sorting1.inc +++ b/testautomation/writer/optional/includes/sorting/w_sorting1.inc @@ -243,11 +243,11 @@ testcase tToolsSort3 Trennzeichen = "|" end select if gApplication = "WRITER" then - Call hFileOpen ( gTesttoolPath + "writer\optional\input\sorting\sort2.odt" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\sorting\sort2.odt" ) + else - Call hFileOpen ( gTesttoolPath + "writer\optional\input\sorting\sort2.odm" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\sorting\sort2.odm" ) + end if if i <> 1 then TrennzeichenSetzen ( Trennzeichen ) @@ -319,11 +319,11 @@ endcase testcase tToolsSort4 PrintLog "- Tools / Sorting in table with header" if gApplication = "WRITER" then - Call hFileOpen ( gTesttoolPath + "writer\optional\input\sorting\sort1.odt" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\sorting\sort1.odt" ) + else - Call hFileOpen ( gTesttoolPath + "writer\optional\input\sorting\sort1.odm" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\sorting\sort1.odm" ) + end if Call wTypeKeys "<Mod1 a>", 2 @@ -444,11 +444,11 @@ endcase testcase tToolsSort5 PrintLog "- Tools / Sorting in table without header" if gApplication = "WRITER" then - Call hFileOpen ( gTesttoolPath + "writer\optional\input\sorting\sort1.odt" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\sorting\sort1.odt" ) + else - Call hFileOpen ( gTesttoolPath + "writer\optional\input\sorting\sort1.odm" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\sorting\sort1.odm" ) + end if Call wNavigatorAuswahl (2, 2) @@ -574,11 +574,11 @@ testcase tToolsSort6 PrintLog "- Tools / Sort a sorted table and copy in another one" if gApplication = "WRITER" then - Call hFileOpen ( gTesttoolPath + "writer\optional\input\sorting\sort3.odt" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\sorting\sort3.odt" ) + else - Call hFileOpen ( gTesttoolPath + "writer\optional\input\sorting\sort3.odm" ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( gTesttoolPath + "writer\optional\input\sorting\sort3.odm" ) + end if Call wTypeKeys "<Mod1 a>", 2 diff --git a/testautomation/writer/optional/includes/sorting/w_sorting2.inc b/testautomation/writer/optional/includes/sorting/w_sorting2.inc index d5d3b49ea61f..c716b597126b 100755..100644 --- a/testautomation/writer/optional/includes/sorting/w_sorting2.inc +++ b/testautomation/writer/optional/includes/sorting/w_sorting2.inc @@ -93,8 +93,8 @@ testcase tSort_1 printlog " open a test file" - Call hFileOpen ( TestFile ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( TestFile ) + printlog " select all table" Call wTypeKeys "<Mod1 a>", 2 @@ -187,8 +187,8 @@ testcase tSort_2 end select printlog " open a test file" - Call hFileOpen ( TestFile ) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( TestFile ) + printlog " select all table" Call wTypeKeys "<Mod1 a>", 2 diff --git a/testautomation/writer/optional/includes/spellcheck/w_spellcheck.inc b/testautomation/writer/optional/includes/spellcheck/w_spellcheck.inc index 886f7fa91967..bc73cd945b95 100644 --- a/testautomation/writer/optional/includes/spellcheck/w_spellcheck.inc +++ b/testautomation/writer/optional/includes/spellcheck/w_spellcheck.inc @@ -59,7 +59,7 @@ testcase tToolsSpellcheckWithShortcut end if call hFileOpen (TheFile,false) - Call sMakeReadOnlyDocumentEditable + printlog " Insert some faulty text" select case iSprache @@ -150,7 +150,7 @@ testcase tToolsSpellcheckCorrect printlog " Open document where the formatting is set to the language we wish to test." call hFileOpen (TheFile,false) - Call sMakeReadOnlyDocumentEditable + printlog " Insert some faulty text" Sleep 1 @@ -285,7 +285,7 @@ testcase tToolsSpellcheck1Mistake printlog " Open document where the formatting is set to the language we wish to test." call hFileOpen (TheFile,false) - Call sMakeReadOnlyDocumentEditable + '/// Insert a sentence with one definded mistake and execute spellcheck /// Call wTypeKeys sErrorSampleText @@ -387,8 +387,8 @@ testcase tToolsSpellcheckForward if wInsertDocumentinMasterDoc(InsFile) = False then goto endsub EditPaste else - Call hFileOpen(InsFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( InsFile) + end if '/// point cursor to beginning of document and execute spellcheck /// Call wTypeKeys "<Mod1 Home>" @@ -561,8 +561,8 @@ testcase tToolsSpellcheckOnlyOneWord if wInsertDocumentinMasterDoc(InsFile) = False then goto endsub EditPaste else - Call hFileOpen(InsFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( InsFile) + end if Call wTypeKeys "<Mod1 Home>" @@ -742,7 +742,7 @@ testcase tToolsSpellcheckAutomatic PrintLog "- Tools / Spellcheck / AutoSpellcheck" printlog " Open document where the formatting is set to the language we wish to test." call hFileOpen (TheFile,false) - Call sMakeReadOnlyDocumentEditable + '/// Enable Auto-Spellcheck in options Call wEnableAutoSpellcheck ( true ) @@ -937,8 +937,8 @@ testcase tToolsSpellcheckChangeLanguageAttribute if wInsertDocumentinMasterDoc(InsFile) = False then goto endsub EditPaste else - Call hFileOpen(InsFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( InsFile) + end if Call wTypeKeys "<Mod1 Home>" @@ -1135,8 +1135,8 @@ testcase tToolsSpellcheckButtonChange if wInsertDocumentinMasterDoc(InsFile) = False then goto endsub EditPaste else - Call hFileOpen(InsFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( InsFile) + end if Call wTypeKeys "<Mod1 Home>" @@ -1202,8 +1202,8 @@ testcase tToolsSpellcheckButtonChangeAll if wInsertDocumentinMasterDoc(InsFile) = False then goto endsub EditPaste else - Call hFileOpen(InsFile) - Call sMakeReadOnlyDocumentEditable + hFileOpenLocally( InsFile) + end if Call wTypeKeys "<Mod1 Home>" @@ -1289,7 +1289,7 @@ testcase tToolsThesaurus printlog "Open new preformatted-writerdocument" call hFileOpen (TheFile,false) - Call sMakeReadOnlyDocumentEditable + printlog "- Thesaurus without a word" '/// Call Thesaurus without a written word /// @@ -1323,7 +1323,7 @@ testcase tToolsThesaurus printlog " Open new preformatted-document where the formatting is set to the language we wish to test." call hFileOpen (TheFile,false) - Call sMakeReadOnlyDocumentEditable + Call wTypeKeys sWordInitial Call wTypeKeys "<Home><Right><Right>" @@ -1445,7 +1445,7 @@ testcase tToolsThesaurusSynonyms printlog "Open new preformatted-writerdocument" call hFileOpen (TheFile,false) - Call sMakeReadOnlyDocumentEditable + Call wTypeKeys sWordInitial Call wTypeKeys "<Shift Home>" diff --git a/testautomation/writer/optional/includes/spellcheck/w_spellcheck1.inc b/testautomation/writer/optional/includes/spellcheck/w_spellcheck1.inc index 069b133700bd..d2df892a3bc5 100755..100644 --- a/testautomation/writer/optional/includes/spellcheck/w_spellcheck1.inc +++ b/testautomation/writer/optional/includes/spellcheck/w_spellcheck1.inc @@ -50,7 +50,7 @@ DIM WordLanguageTemp AS string 'variable for checking if Office language is a '///Load test document/// call hFileOpen (ConvertPath ( gTesttoolPath + "writer\optional\input\spellcheck\Language_Guessing_Sample_Texts.odt")) 'loading Test-Doc - Call sMakeReadOnlyDocumentEditable + sleep(5) '---------------------------------------------------------------- '///Enable auto spellcheck/// diff --git a/testautomation/writer/optional/includes/textframes/w_textframes1.inc b/testautomation/writer/optional/includes/textframes/w_textframes1.inc index a3d284438643..ed3ee9b2dd5e 100644 --- a/testautomation/writer/optional/includes/textframes/w_textframes1.inc +++ b/testautomation/writer/optional/includes/textframes/w_textframes1.inc @@ -852,7 +852,7 @@ testcase tTextframes_10 '/// Open a test file '/// + This test file is designed for Anchor in gathering pages&columns test. '/// + There are 2 columns in the page. And the frame is in the second column. - Call hFileOpen(sTestFile1,false) + hFileOpenLocally( sTestFile1,false) 'Press return to ensure the frame is in 2nd column @@ -888,7 +888,7 @@ testcase tTextframes_10 '/// + This test file is designed for Anchor in seperating '/// + pages&columns test. '/// + There are 2 pages. And the frame is in the second page. - Call hFileOpen(sTestFile2,false) + hFileOpenLocally( sTestFile2,false) 'check if the frame is in the 2nd page diff --git a/testautomation/writer/optional/includes/undo/w_undo_history_4.inc b/testautomation/writer/optional/includes/undo/w_undo_history_4.inc index e1370f29e541..506c1e1e4335 100755 --- a/testautomation/writer/optional/includes/undo/w_undo_history_4.inc +++ b/testautomation/writer/optional/includes/undo/w_undo_history_4.inc @@ -291,7 +291,7 @@ testcase tUndoSpellcheck printlog "- Spellcheck: Autocheck" '/// new document /// hfileOpen (gTesttoolpath + "writer\optional\input\undo\spellcheck_undo.odt") - Call sMakeReadOnlyDocumentEditable + '/// Type "This is a testp<End>" Call wTypeKeys ( "<End>" ) 'This is a testp '/// Select word' testp' diff --git a/testautomation/writer/required/includes/w_001_.inc b/testautomation/writer/required/includes/w_001_.inc index 00f7bc4ce77d..b5b6b88d1640 100644 --- a/testautomation/writer/required/includes/w_001_.inc +++ b/testautomation/writer/required/includes/w_001_.inc @@ -1027,7 +1027,7 @@ testcase tFileReload Wait (500) PrintLog "Open previous saved document" - Call hFileOpen ( gOfficePath + "user\work\" + sFile$ ) + hFileOpenLocally( gOfficePath + "user\work\" + sFile$ ) PrintLog "Insert a table in document" Call hTabelleEinfuegen PrintLog "File / Reload" diff --git a/testautomation/writer/required/includes/w_001b_.inc b/testautomation/writer/required/includes/w_001b_.inc index e20d497482f0..992396377ba4 100644 --- a/testautomation/writer/required/includes/w_001b_.inc +++ b/testautomation/writer/required/includes/w_001b_.inc @@ -125,7 +125,7 @@ testcase tFileSendOutlineToPresentation goto endsub end select PrintLog "Open file ( gTesttoolPath + writer\required\input\ + htmltest.sxw )" - Call hFileOpen ( gTesttoolPath + "writer\required\input\" + sFile$ ) + hFileOpenLocally( gTesttoolPath + "writer\required\input\" + sFile$ ) Kontext "Navigator" if Navigator.Exists then Navigator.Close Sleep 1 @@ -176,7 +176,7 @@ testcase tFileSendOutlineToClipboard end select PrintLog "Open file ( gTesttoolPath + writer\required\input\ + htmltest.sxw )" - Call hFileOpen ( gTesttoolPath + "writer\required\input\" + sFile$ ) + hFileOpenLocally( gTesttoolPath + "writer\required\input\" + sFile$ ) Sleep 1 PrintLog "File / Send / Outline to Clipboard" try @@ -223,7 +223,7 @@ testcase tFileSendCreateAutoabstract end select PrintLog "Open file ( gTesttoolPath + writer\required\input\ + htmltest.sxw )" - Call hFileOpen ( gTesttoolPath + "writer\required\input\" + sFile$ ) + hFileOpenLocally( gTesttoolPath + "writer\required\input\" + sFile$ ) Kontext "Navigator" if Navigator.Exists then Navigator.Close Sleep 1 @@ -274,7 +274,7 @@ testcase tFileSendAutoabstractToPresentation end select PrintLog "Open file ( gTesttoolPath + writer\required\input\ + htmltest.sxw )" - Call hFileOpen ( gTesttoolPath + "writer\required\input\" + sFile$ ) + hFileOpenLocally( gTesttoolPath + "writer\required\input\" + sFile$ ) Kontext "Navigator" if Navigator.Exists then Navigator.Close Sleep 1 @@ -399,7 +399,7 @@ testcase tMasterDocFileSaveWithPassword FileClose WaitSlot(2000) PrintLog "Open previous saved document" - Call hFileOpen(Datei$) + hFileOpenLocally( Datei$) Kontext "PasswordFileOpen" PrintLog "Enter a wrong password." @@ -427,7 +427,7 @@ testcase tMasterDocFileSaveWithPassword Sleep 1 PrintLog "File / Open again your previous saved document" - Call hFileOpen(Datei$) + hFileOpenLocally( Datei$) PrintLog "Enter your password in password dialog" Kontext "PasswordFileOpen" if PasswordFileOpen.Exists then @@ -468,7 +468,7 @@ testcase tMasterDocFileSaveWithPassword Sleep 1 FileClose PrintLog "File / Close and open your document again" - Call hFileOpen(Datei$) + hFileOpenLocally( Datei$) Sleep 1 Kontext "PasswordFileOpen" PrintLog "Now the passwort dialog should come up" @@ -517,7 +517,7 @@ testcase tMasterDocFileReload endif PrintLog "Open previous saved document" - Call hFileOpen ( sDocumentPath ) + hFileOpenLocally( sDocumentPath ) PrintLog "Insert a table in document" Call hTabelleEinfuegen @@ -652,7 +652,7 @@ testcase tMasterDocFileSendOutlineToPresentation gApplication = "MASTERDOCUMENT" - Call hFileOpen ( gTesttoolPath + "writer\required\input\" + sFile ) + hFileOpenLocally( gTesttoolPath + "writer\required\input\" + sFile ) Kontext "Navigator" if ( Navigator.Exists ) then @@ -698,7 +698,7 @@ testcase tMasterDocFileSendOutlineToClipboard Dim sFile as string : sFile = "htmltest.sxg" PrintLog "- File / Send / Outline to Clipboard" - Call hFileOpen ( gTesttoolPath + "writer\required\input\" + sFile ) + hFileOpenLocally( gTesttoolPath + "writer\required\input\" + sFile ) PrintLog "File / Send / Outline to Clipboard" try @@ -738,7 +738,7 @@ testcase tMasterDocFileSendCreateAutoabstract Dim sFile as string : sFile = "htmltest.sxg" PrintLog "- File / Send / Create Autoabstract" - Call hFileOpen ( gTesttoolPath + "writer\required\input\" + sFile ) + hFileOpenLocally( gTesttoolPath + "writer\required\input\" + sFile ) Kontext "Navigator" hCloseDialog( Navigator, "Close,optional" ) @@ -788,7 +788,7 @@ testcase tMasterDocFileSendAutoabstractToPresentation PrintLog "- File / Send / Autoabstract to Presentation" PrintLog "Open file ( gTesttoolPath + writer\required\input\ + htmltest.sxw )" - Call hFileOpen ( gTesttoolPath + "writer\required\input\" + sFile ) + hFileOpenLocally( gTesttoolPath + "writer\required\input\" + sFile ) Kontext "Navigator" hCloseDialog( Navigator, "Close,optional" ) diff --git a/testautomation/writer/required/includes/w_007_.inc b/testautomation/writer/required/includes/w_007_.inc index e562736b5329..20b468c9605c 100644 --- a/testautomation/writer/required/includes/w_007_.inc +++ b/testautomation/writer/required/includes/w_007_.inc @@ -1233,7 +1233,7 @@ testcase tMasterDocToolsHyphenation hUseAsyncSlot( "EditPaste" ) end if - Call sMakeReadOnlyDocumentEditable + printlog " Insert file 'writer\required\input\linguistik\0 + [OfficeLanguage] + '.odt'" Sleep 1 Call wTypeKeys ("<Mod1 Home>") diff --git a/testautomation/writer/tools/includes/w_tool3.inc b/testautomation/writer/tools/includes/w_tool3.inc index 16fd825f6447..5aa58e2f967c 100755..100644 --- a/testautomation/writer/tools/includes/w_tool3.inc +++ b/testautomation/writer/tools/includes/w_tool3.inc @@ -270,7 +270,7 @@ sub UndoRichtigBeiSortierung if Fehler = TRUE then Warnlog "Undo after sorting has not been functioned correctly" Call hCloseDocument - Call hFileOpen ( gTesttoolPath + "writer\optional\input\st1_5.sdw" ) + hFileOpenLocally( gTesttoolPath + "writer\optional\input\st1_5.sdw" ) end if Call wTypeKeys "<End>" Call wTypeKeys "<Down>",6 diff --git a/testautomation/writer/tools/includes/w_tools.inc b/testautomation/writer/tools/includes/w_tools.inc index 27b9526bb0de..e6bd4f92afa0 100755 --- a/testautomation/writer/tools/includes/w_tools.inc +++ b/testautomation/writer/tools/includes/w_tools.inc @@ -1042,7 +1042,7 @@ end sub function wInsertDocumentinMasterDoc(DocumentName as string) as boolean Call hNewDocument - Call hFileOpen(DocumentName) + hFileOpenLocally( DocumentName) Sleep 2 Call wTypeKeys "<Mod1 A>" Sleep 2 |