summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--[-rwxr-xr-x]testautomation/writer/optional/includes/formatparagraph/w_formatparagraph2.inc107
-rw-r--r--[-rwxr-xr-x]testautomation/writer/optional/includes/hangulhanjaonversion/hhConversion1.inc42
-rw-r--r--[-rwxr-xr-x]testautomation/writer/optional/includes/hangulhanjaonversion/hhConversion2.inc60
-rw-r--r--[-rwxr-xr-x]testautomation/writer/optional/includes/hangulhanjaonversion/hhConversion3.inc39
-rw-r--r--[-rwxr-xr-x]testautomation/writer/optional/includes/textframes/w_textframes1.inc32
-rw-r--r--[-rwxr-xr-x]testautomation/writer/optional/includes/textframes/w_textframes2.inc20
-rw-r--r--[-rwxr-xr-x]testautomation/writer/optional/includes/textframes/w_textframes3.inc12
-rw-r--r--[-rwxr-xr-x]testautomation/writer/optional/includes/textframes/w_textframes4.inc80
-rw-r--r--[-rwxr-xr-x]testautomation/writer/optional/includes/textframes/w_textframes5.inc40
9 files changed, 174 insertions, 258 deletions
diff --git a/testautomation/writer/optional/includes/formatparagraph/w_formatparagraph2.inc b/testautomation/writer/optional/includes/formatparagraph/w_formatparagraph2.inc
index dccebdcf930e..d204f8f2e02c 100755..100644
--- a/testautomation/writer/optional/includes/formatparagraph/w_formatparagraph2.inc
+++ b/testautomation/writer/optional/includes/formatparagraph/w_formatparagraph2.inc
@@ -29,31 +29,6 @@
'*
'* short description : Test the functionality of Paragraph Formatting - 2
'*
-'************************************************************************
-'*
-' #1 tParagraphAlignment1 'Test 'Left' alignment
-' #1 tParagraphAlignment2 'Test 'Right' alignment
-' #1 tParagraphAlignment3 'Test 'Center' alignment
-' #1 tParagraphAlignment4 'Test 'Justified' alignment - Default
-' #1 tParagraphAlignment5 'Test 'Justified' alignment - Centered
-' #1 tParagraphAlignment6 'Test 'Justified' alignment - Justified
-' #1 tParagraphAlignment7 'Test 'Expand single word'
-' #1 tParagraphAlignment8 'Test Uncheck 'Snap to text grid(if active)'
-' #1 tParagraphAlignment9 'Test Check 'Snap to text grid(if active)'
-' #1 tParagraphTextFlow1 'Hyphenation must be processed while entering text WITHOUT inquiry
-' #1 tParagraphTextFlow2 'Hyphenation - Characters at line end
-' #1 tParagraphTextFlow3 'Hyphenation - Characters at line begin
-' #1 tParagraphTextFlow4 'Hyphenation - maxinum number of consecutive typhens
-' #1 tParagraphTextFlow5 'Paragraph break before Column
-' #1 tParagraphTextFlow6 'Paragraph break after Column
-' #1 tParagraphTextFlow7 'Paragraph break before Page
-' #1 tParagraphTextFlow8 'Paragraph break after Page
-' #1 tParagraphTextFlow9 'Do not split paragraph
-' #1 tParagraphTextFlow10 'Keep with next paragraph
-' #1 tParagraphTextFlow11 'Orphan control
-' #1 tParagraphTextFlow12 'widow control
-' #1 tParagraphTextFlow13 'Special test for Hyphenation
-'*
'\***********************************************************************
testcase tParagraphAlignment1
@@ -70,8 +45,7 @@ testcase tParagraphAlignment1
'/// + Open the test file
'/// + This file includes 1 paragraphs , and a pic is anchored to the character
- Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
'Get the original coordinate-X
Call wTypeKeys ( "<Shift F4>" )
@@ -119,8 +93,7 @@ testcase tParagraphAlignment2
'/// + Open the test file
'/// + This file includes 1 paragraphs , and a pic is anchored to the laste character
- Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
'/// + Format/Paragraph / Alignment , choose Right/Bottom option
Call fFormatParagraph("TabAusrichtungAbsatz")
@@ -156,8 +129,7 @@ testcase tParagraphAlignment3
'/// + Open the test file
'/// + This file includes 1 paragraphs , and a pic is anchored to the character
- Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
'/// + Format/Paragraph / Alignment , choose Center option
Call fFormatParagraph("TabAusrichtungAbsatz")
@@ -196,8 +168,7 @@ testcase tParagraphAlignment4
'/// Open the test file
'/// + This file includes 1 paragraphs , and a pic is anchored to the last character
- Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
Call wTypeKeys ( "<Shift F4>" )
Sleep 1
@@ -264,8 +235,7 @@ testcase tParagraphAlignment5
'/// Open the test file
'/// + This file includes 1 paragraphs , and a pic is anchored to the last character
- Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
'/// Format/Paragraph / Alignment ,
'/// + choose Justified option , and select centered in last line
@@ -307,8 +277,7 @@ testcase tParagraphAlignment6
'/// Open the test file
'/// + This file includes 1 paragraphs,
'/// + and 2 pics are in 2nd line
- Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
Call wTypeKeys ( "<Shift F4>" )
Call wTypeKeys "<TAB>"
@@ -374,8 +343,7 @@ testcase tParagraphAlignment7
'/// + This file includes 1 paragraphs ,
'/// + there is only 1 word - "That" in last line ,
'/// + and a drawring object is anchored as character after "That"
- Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
printlog "Select the object."
Sleep 1
@@ -441,8 +409,7 @@ testcase tParagraphAlignment8
'/// Open the test file
'/// + This file includes 1 paragraphs ,
'/// + and a drawring object is anchored as character after "That"
- Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
'/// Get the drawing object original position ///
Call wTypeKeys ( "<Shift F4>" )
@@ -512,8 +479,7 @@ testcase tParagraphAlignment9
'/// Open the test file
'/// + This file includes 1 paragraphs ,
'/// + and a drawring object is anchored as character after "That"
- Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
'/// Get the drawing object original position ///
Call wTypeKeys ( "<Shift F4>" )
@@ -578,8 +544,7 @@ testcase tParagraphTextFlow1
'/// Open the test file
'/// + This file includes 2 words : AAA and Kilometerhigh
- Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
'the focus is in front of Kilometerhigh
Call wTypeKeys "<Home>"
@@ -607,8 +572,7 @@ testcase tParagraphTextFlow1
Call hCloseDocument
Call hNewDocument
- Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
'/// 2. Test there is the Hyphenation configuratioin
'/// + Format/Paragraph / Text Flow ,
@@ -657,8 +621,7 @@ testcase tParagraphTextFlow2
'/// Open the test file
'/// + This file includes 2 words : AAA and Kilometerhigh
- Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
'/// 1.Test Characters at line end ==> 6
'/// + Format/Paragraph / Text Flow ,
@@ -689,8 +652,7 @@ testcase tParagraphTextFlow2
Call hNewDocument
- Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
'/// 2.Test Characters at line end ==> 8
'/// + Format/Paragraph / Text Flow ,
@@ -735,8 +697,7 @@ testcase tParagraphTextFlow3
'/// Open the test file
'/// + This file includes 2 words : AAA and Kilometerhigh
- Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
'/// 1.Test Characters at line begin ==> 4
'/// + Format/Paragraph / Text Flow ,
@@ -766,8 +727,8 @@ testcase tParagraphTextFlow3
Call hNewDocument
- Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
'/// 2.Test Characters at line end ==> 6
'/// + Format/Paragraph / Text Flow ,
@@ -817,8 +778,7 @@ testcase tParagraphTextFlow4
'/// Open the test file
'/// + This file includes 4 words : KiloAmterhigh1 kiloAmeterhigh2 kiloAmeterhigh3 kiloAmeterhigh4
'/// + the words' length is longer then page length
- Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
'/// 1.Test maxinum number of consecutive typhens (default => 0)
'/// + Format/Paragraph / Text Flow ,
@@ -935,8 +895,7 @@ testcase tParagraphTextFlow5
'/// + There are 2 columns/page ,includes 2 paragraph
'/// + the 1st paragraph is in 1st and 2nd column
'/// + the 2nd paragraph is is 2nd and 3rd column
- Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
'/// Set the focus to 2nd paragraph
Kontext
@@ -987,8 +946,7 @@ testcase tParagraphTextFlow6
'/// + There are 2 columns/page ,includes 1 paragraph
'/// + the paragraph is in 1st and 2nd column
'/// + and it is NOT full of 2nd column
- Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
'/// Format/Paragraph / Text Flow
'/// + Set 'Breaks' enable
@@ -1031,8 +989,7 @@ testcase tParagraphTextFlow7
'/// Open the test file
'/// + There are 2 paragraphs in 1 page
- Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
'/// Set the focus to 2nd paragraph
Kontext
@@ -1092,8 +1049,7 @@ testcase tParagraphTextFlow8
'/// Open the test file
'/// + There is 1 paragraph in the file
- Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
'/// Format/Paragraph / Text Flow
'/// + Set 'Breaks' enable
@@ -1139,8 +1095,7 @@ testcase tParagraphTextFlow9
'/// Open the test file
'/// + There is 1 paragraph which cross 2 pages
- Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<MOD1 Home>"
Call fFindWord("She")
@@ -1173,8 +1128,7 @@ testcase tParagraphTextFlow9
PrintLog "- Check Don't split paragraph"
Call hNewDocument
- Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<MOD1 Home>"
@@ -1225,8 +1179,7 @@ testcase tParagraphTextFlow10
'/// Open the test file
'/// There are 2 paragraphes in the file , 1st one crosses
'/// + 1st and 2nd page , 2nd one is in 2nd page
- Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
EditSearchAndReplace
Kontext "FindAndReplace"
SearchFor.SetText "He1"
@@ -1269,8 +1222,7 @@ testcase tParagraphTextFlow10
Call hNewDocument
- Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
PrintLog "- Check Keep with next paragraph"
'/// 2. Test checking "Keep with next paragraph"
@@ -1331,8 +1283,7 @@ testcase tParagraphTextFlow11
'/// Open the test file
'/// + There is 1 paragraph (8 lines) in the file
- Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
'/// Format/Paragraph / Text Flow
'/// + Check 'Orphan control' , set 3 in 'Lines'
@@ -1385,8 +1336,7 @@ testcase tParagraphTextFlow12
'/// Open the test file
'/// + There is 1 paragraph (8 lines) in the file
- Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
'/// Format/Paragraph / Text Flow
'/// + Check 'Widow control' , set 3 in 'Lines'
@@ -1436,8 +1386,7 @@ testcase tParagraphTextFlow13
'/// Open the test file
'/// + There is 1 word TABC in the end of the first line
- Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
'/// Press spaces in the head of the first line , we hope
'/// + the whole word - 'TABC' will go to 2nd line at one time
diff --git a/testautomation/writer/optional/includes/hangulhanjaonversion/hhConversion1.inc b/testautomation/writer/optional/includes/hangulhanjaonversion/hhConversion1.inc
index bacd2dd1d8af..a16949d37851 100755..100644
--- a/testautomation/writer/optional/includes/hangulhanjaonversion/hhConversion1.inc
+++ b/testautomation/writer/optional/includes/hangulhanjaonversion/hhConversion1.inc
@@ -67,8 +67,7 @@ testcase tHHNoSelction_1
'/// Open a test file , which includes some Korean characters
'/// + and some Chinese characters
- Call hFileOpen(sTestFile)
- sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally(sTestFile)
'/// Set focus before the 3rd character
Call wTypeKeys "<MOD1 Home>"
@@ -137,8 +136,7 @@ testcase tHHNoSelction_2
'/// Open a test file , which includes some English ,
'/// + Germany , French , Korean and Chinese characters
'/// + (Korean is before Chinese)
- Call hFileOpen(sTestFile)
- sMakeReadOnlyDocumentEditable()
+ Call hFileOpenLocally(sTestFile)
'/// Set focus to the beginning
Call wTypeKeys "<MOD1 Home>"
@@ -195,8 +193,8 @@ testcase tHHNoSelction_3
'/// Open a test file , which includes some English ,
'/// + Germany , French , Korean and Chinese characters
'/// + (Chinese is before Korean)
- Call hFileOpen(sTestFile)
- sMakeReadOnlyDocumentEditable()
+ Call hFileOpenLocally( sTestFile )
+ ()
'/// Set focus to the beginning
Call wTypeKeys "<MOD1 Home>"
@@ -250,8 +248,8 @@ testcase tHHNoSelction_4
'/// Open a test file , which includes some English ,
'/// + Germany , French characters .
'/// + There are no Chinese and Korean
- Call hFileOpen(sTestFile)
- sMakeReadOnlyDocumentEditable()
+ Call hFileOpenLocally( sTestFile )
+ ()
'/// Set focus to the beginning
Call wTypeKeys "<MOD1 Home>"
@@ -291,8 +289,8 @@ testcase tHHNoSelction_5
Call hNewDocument
'/// Open a test file , which includes some Chinese and Korean
- Call hFileOpen(sTestFile)
- sMakeReadOnlyDocumentEditable()
+ Call hFileOpenLocally( sTestFile )
+ ()
'/// Set focus to the end of the file
Call wTypeKeys "<MOD1 End>"
@@ -333,8 +331,8 @@ testcase tHHNoSelction_6
'/// Open a test file , which includes some Chinese and Korean,
'/// + the 3rd character in 1st line isn't convertible
- Call hFileOpen(sTestFile)
- sMakeReadOnlyDocumentEditable()
+ Call hFileOpenLocally( sTestFile )
+ ()
'/// Set focus to the 3rd character (korean)
Call wTypeKeys "<MOD1 Home>"
@@ -398,8 +396,8 @@ testcase tHHNoSelction_7
'/// Open a test file , which includes some Chinese and Korean,
'/// + the 3rd character in 2nd line isn't convertible
- Call hFileOpen(sTestFile)
- sMakeReadOnlyDocumentEditable()
+ Call hFileOpenLocally( sTestFile )
+ ()
'/// Set focus to the 3rd chinese character
Call wTypeKeys "<MOD1 Home><Down><Home>"
@@ -466,8 +464,8 @@ testcase tHHSingleSelction_1
Call hNewDocument
'/// Open a test file , which includes some Chinese and Korean
- Call hFileOpen(sTestFile)
- sMakeReadOnlyDocumentEditable()
+ Call hFileOpenLocally( sTestFile )
+ ()
'/// Select from 4th to 7th character
Call wTypeKeys "<MOD1 Home>"
@@ -527,8 +525,8 @@ testcase tHHMultiSelction_1
Call hNewDocument
'/// Open a test file , which includes some Korean chacters
- Call hFileOpen(sTestFile)
- sMakeReadOnlyDocumentEditable()
+ Call hFileOpenLocally( sTestFile )
+ ()
'/// Do a multi Selectiong to the charcters -- 입력
Call fFindWord(sMultiWord)
@@ -573,8 +571,8 @@ testcase tHHTextBox_1
'/// Open a test file , which includes a text box and
'/// + some Korean chacters in the text box
- Call hFileOpen(sTestFile)
- sMakeReadOnlyDocumentEditable()
+ Call hFileOpenLocally( sTestFile )
+ ()
'/// Tools / HangulHanjaConversion , the below 4 checkboxes ralated
'/// + ruby should be disabled .
@@ -645,8 +643,8 @@ testcase tHHDrawBox_1
'/// Open a test file , which includes a draw box and
'/// + some Korean chacters in the text box
- Call hFileOpen(sTestFile)
- sMakeReadOnlyDocumentEditable()
+ Call hFileOpenLocally( sTestFile )
+ ()
'/// Tools / HangulHanjaConversion , the below 4 checkboxes ralated
'/// + ruby should be disabled .
'/// -> 'Hanja As Ruby Above Hangul'
diff --git a/testautomation/writer/optional/includes/hangulhanjaonversion/hhConversion2.inc b/testautomation/writer/optional/includes/hangulhanjaonversion/hhConversion2.inc
index 26437f17f920..dface018692f 100755..100644
--- a/testautomation/writer/optional/includes/hangulhanjaonversion/hhConversion2.inc
+++ b/testautomation/writer/optional/includes/hangulhanjaonversion/hhConversion2.inc
@@ -80,7 +80,7 @@ testcase tHHConversion_1
'/// Open a test file , which includes some
'/// + Korean chacters and chinese character
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<MOD1 Home>"
'/// Tools / HangulHanjaConversion ,
@@ -129,7 +129,7 @@ testcase tHHConversion_2
'/// Open a test file , which includes some
'/// + Chinese character and Korean chacters
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<MOD1 Home>"
'/// Tools / HangulHanjaConversion , check hanja only .
@@ -180,7 +180,7 @@ testcase tHHConversion_3
'/// Open a test file , which includes some
'/// + Korean chacters and chinese character
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<MOD1 Home>"
'/// Tools / HangulHanjaConversion , check Hanja(Hangul)
@@ -232,7 +232,7 @@ testcase tHHConversion_4
'/// Open a test file , which includes some
'/// + Chinese character and Korean chacters
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<MOD1 Home>"
'/// Tools / HangulHanjaConversion , check Hanja(Hangul).
@@ -284,7 +284,7 @@ testcase tHHConversion_5
'/// Open a test file , which includes some
'/// + Korean chacters and chinese character
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<MOD1 Home>"
'/// Tools / HangulHanjaConversion , check Hangul(Hanja) ,
@@ -337,7 +337,7 @@ testcase tHHConversion_6
'/// Open a test file , which includes some
'/// + Chinese character and Korean chacters
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<MOD1 Home>"
'/// Tools / HangulHanjaConversion , check Hangul(Hanja),
@@ -390,7 +390,7 @@ testcase tHHConversion_7
Call hNewDocument
'/// Open a test file , which includes some Korean chacters
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<Home>"
'/// Tools / HangulHanjaConversion , check 'Hanja As Ruby Above Hangul' ,
@@ -450,7 +450,7 @@ testcase tHHConversion_8
Call hNewDocument
'/// Open a test file , which includes some Chinese chacters
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<Home>"
'/// Tools / HangulHanjaConversion , check 'Hanja As Ruby Above Hangul' ,
@@ -510,7 +510,7 @@ testcase tHHConversion_9
Call hNewDocument
'/// Open a test file , which includes some Korean chacters
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<Home>"
'/// Tools / HangulHanjaConversion , check 'Hanja As Ruby Below Hangul' ,
@@ -570,7 +570,7 @@ testcase tHHConversion_10
Call hNewDocument
'/// Open a test file , which includes some Chinese chacters
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<Home>"
'/// Tools / HangulHanjaConversion , check 'Hanja As Ruby Below Hangul' ,
@@ -630,7 +630,7 @@ testcase tHHConversion_11
Call hNewDocument
'/// Open a test file , which includes some Korean chacters
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<Home>"
'/// Tools / HangulHanjaConversion , check 'Hangul As Ruby Above Hanja' ,
@@ -690,7 +690,7 @@ testcase tHHConversion_12
Call hNewDocument
'/// Open a test file , which includes some Chinese chacters
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<Home>"
'/// Tools / HangulHanjaConversion , check 'Hangul As Ruby Above Hanja' ,
@@ -750,7 +750,7 @@ testcase tHHConversion_13
Call hNewDocument
'/// Open a test file , which includes some Korean chacters
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<Home>"
'/// Tools / HangulHanjaConversion , check 'Hangul As Ruby Below Hanja' ,
@@ -810,7 +810,7 @@ testcase tHHConversion_14
Call hNewDocument
'/// Open a test file , which includes some Chinese chacters
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<Home>"
'/// Tools / HangulHanjaConversion , check 'Hangul As Ruby Below Hanja' ,
@@ -865,7 +865,7 @@ testcase tHHConversion_15
'/// Open a test file , which includes some Korean chacters .
'/// + Set focus before Korean character
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<Home>"
'/// Tools / HangulHanjaConversion ,
@@ -913,7 +913,7 @@ testcase tHHConversion_16
'/// Open a test file , which includes some Chinese chacters .
'/// + Set focus before Chinese character
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<Home>"
'/// Tools / HangulHanjaConversion ,
@@ -964,7 +964,7 @@ testcase tHHConversion_17
Call hNewDocument
'/// Open a test file , which includes some Korean chacters .
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<Home>"
'/// Tools / HangulHanjaConversion , press Ignore ,
@@ -1015,7 +1015,7 @@ testcase tHHConversion_18
'/// Open a test file , which includes some Chinese chacters =>.
'/// + 山下 上山下乡 山下
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<Home>"
'/// Tools / HangulHanjaConversion , press Always Ignore ,
@@ -1046,7 +1046,7 @@ testcase tHHConversion_18
'/// So far , there is still a StarOffice session exists .
'/// Reopen the test file
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<Home>"
'/// Tools / HangulHanjaConversion ,
@@ -1097,7 +1097,7 @@ testcase tHHConversion_19
'/// Open a test file , which includes some Chinese chacters =>.
'/// + 山下 上山下乡 山下
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<Home>"
'/// Tools / HangulHanjaConversion , press Always Ignore ,
@@ -1120,7 +1120,7 @@ testcase tHHConversion_19
Call hNewDocument
'/// Reopen the test file
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<Home>"
'/// Tools / HangulHanjaConversion , 山下 should be selcted
@@ -1159,7 +1159,7 @@ testcase tHHConversion_20
Call hNewDocument
'/// Open a test file , which includes some Korean chacters
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<Home>"
'/// Tools / HangulHanjaConversion , select a word in selection
@@ -1225,7 +1225,7 @@ testcase tHHConversion_21
Call hNewDocument
'/// Open a test file , which includes some Korean chacters
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<Home>"
'/// Tools / HangulHanjaConversion , select a word in selection,
@@ -1267,7 +1267,7 @@ testcase tHHConversion_21
Call hNewDocument
'/// Reopen this test file
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<Home>"
'/// Tools / HangulHanjaConversion
@@ -1321,7 +1321,7 @@ testcase tHHConversion_22
Call hNewDocument
'/// Open a test file , which includes some Korean chacters
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<Home>"
'/// Tools / HangulHanjaConversion , select a word in selection,
@@ -1350,7 +1350,7 @@ testcase tHHConversion_22
Call hStartTheOffice
Call hNewDocument
'/// Reopen this test file
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<Home>"
'/// Tools / HangulHanjaConversion
@@ -1389,7 +1389,7 @@ testcase tHHConversion_23
Call hNewDocument
'/// Open a test file , which includes some Korean chacters
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<Home>"
'/// Tools / HangulHanjaConversion , select a word in selection,
@@ -1454,7 +1454,7 @@ testcase tHHConversion_24
Call hNewDocument
'/// Open a test file , which includes some Korean chacters
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<Home>"
'/// Tools / HangulHanjaConversion , the default for 'Replace by character'
@@ -1509,7 +1509,7 @@ testcase tHHConversion_25
'/// Open a test file , which includes some Chinese chacters =>.
'/// + 山下 上山下乡 山下
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<Home>"
'/// Tools / HangulHanjaConversion , Check 'Replace by character' ,
@@ -1573,7 +1573,7 @@ testcase tHHConversion_26
Call hNewDocument
'/// Open a test file , which includes some Korean chacters
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<Home>"
'/// Tools / HangulHanjaConversion , Check 'Replace by character' ,
diff --git a/testautomation/writer/optional/includes/hangulhanjaonversion/hhConversion3.inc b/testautomation/writer/optional/includes/hangulhanjaonversion/hhConversion3.inc
index 0808ccacb3bb..e7b89b0accf0 100755..100644
--- a/testautomation/writer/optional/includes/hangulhanjaonversion/hhConversion3.inc
+++ b/testautomation/writer/optional/includes/hangulhanjaonversion/hhConversion3.inc
@@ -29,21 +29,6 @@
'*
'* short description : Test of Hangul/Hanja Conversion - 3
'*
-'************************************************************************
-'*
-' #1 tHHOptions_1 'User defined dictionaries
-' #1 tHHOptions_2 'Options - New 1
-' #1 tHHOptions_3 'Options - New 2
-' #1 tHHOptions_4 'Options - New 3
-' #1 tHHOptions_5 'Options - Edit (Book)
-' #1 tHHOptions_6 'Options - Edit (Original) -1
-' #1 tHHOptions_7 'Options - Edit (Original) -2
-' #1 tHHOptions_8 'Options - Edit (Original) -3
-' #1 tHHOptions_9 'Options - Edit (Original) -4
-' #1 tHHOptions_10 'Options - Edit (Original) -5
-' #1 tHHOptions_11 'Options - Edit (Original) -6
-' #1 tHHOptions_12 'Options - Edit (Original) -7
-'*
'\***********************************************************************
testcase tHHOptions_1
@@ -62,7 +47,7 @@ testcase tHHOptions_1
'/// Open a test file , which includes some
'/// + Korean chacters and chinese character
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<MOD1 Home>"
@@ -107,7 +92,7 @@ testcase tHHOptions_2
'/// Open a test file , which includes some
'/// + Korean chacters and chinese character
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<MOD1 Home>"
'/// Tools / HangulHanjaConversion , Press Options button ,
@@ -189,7 +174,7 @@ testcase tHHOptions_3
'/// Open a test file , which includes some
'/// + Korean chacters and chinese characters
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<MOD1 Home>"
'/// Tools / HangulHanjaConversion , Press Options button ,
@@ -254,7 +239,7 @@ warnlog( "#i111911# - Test is broken beyond repait, please rewrite" )
'/// Open a test file , which includes some
'/// + Korean chacters and chinese character
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<MOD1 Home>"
'/// Tools / HangulHanjaConversion , Press Options button ,
@@ -321,7 +306,7 @@ testcase tHHOptions_5
'/// Open a test file , which includes some
'/// + Korean chacters and chinese character
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<MOD1 Home>"
'/// Tools / HangulHanjaConversion , Press Options button ,
@@ -396,7 +381,7 @@ testcase tHHOptions_6
'/// Open a test file , which includes some
'/// + Korean chacters and chinese character
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<MOD1 Home>"
'/// Tools / HangulHanjaConversion , Press Options button ,
@@ -507,7 +492,7 @@ testcase tHHOptions_7
'/// Open a test file , which includes some
'/// + Korean chacters and chinese character
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<MOD1 Home>"
'/// Tools / HangulHanjaConversion , Press Options button ,
@@ -615,7 +600,7 @@ testcase tHHOptions_8
'/// Open a test file , which includes some
'/// + Korean chacters and chinese character
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<MOD1 Home>"
'/// Tools / HangulHanjaConversion , Press Options button ,
@@ -705,7 +690,7 @@ testcase tHHOptions_9
'/// Open a test file , which includes some
'/// + Korean chacters and chinese character
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<MOD1 Home>"
'/// Tools / HangulHanjaConversion , Press Options button ,
@@ -791,7 +776,7 @@ testcase tHHOptions_10
'/// Open a test file , which includes some
'/// + Korean chacters and chinese character
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<MOD1 Home>"
'/// Tools / HangulHanjaConversion , Press Options button ,
@@ -879,7 +864,7 @@ testcase tHHOptions_11
'/// Open a test file , which includes some
'/// + Korean chacters and chinese character
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<MOD1 Home>"
'/// Tools / HangulHanjaConversion , Press Options button ,
@@ -962,7 +947,7 @@ testcase tHHOptions_12
'/// Open a test file , which includes some
'/// + Korean chacters and chinese character
- Call hFileOpen(sTestFile) : sMakeReadOnlyDocumentEditable()
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<MOD1 Home>"
'/// Tools / HangulHanjaConversion , Press Options button ,
diff --git a/testautomation/writer/optional/includes/textframes/w_textframes1.inc b/testautomation/writer/optional/includes/textframes/w_textframes1.inc
index 17eeff80ad95..a3d284438643 100755..100644
--- a/testautomation/writer/optional/includes/textframes/w_textframes1.inc
+++ b/testautomation/writer/optional/includes/textframes/w_textframes1.inc
@@ -408,8 +408,8 @@ testcase tTextframes_6
'/// + This test file is designed for Anchor To Page test.
'/// + There are 2 pages in the file , and the frame is in
'/// + the bottom of first page
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
Check1:
EditSearchAndReplace
@@ -506,8 +506,8 @@ testcase tTextframes_7
'/// + There are 2 paragraphs in the file , and the head of 2nd
'/// + paragraph is in the bottom of the first page .
'/// + The frame is in the first line of 2nd paragraph
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
'/// check if the frame is in the first page
Call wTypeKeys ( "<Shift F4>" )
@@ -586,8 +586,8 @@ testcase tTextframes_8
'/// + The frame is anchored to the character 't' of That .
'/// + The frame is in the bottom of the first page
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
'/// check if the frame is in the first page
Call wTypeKeys ( "<Shift F4>" )
@@ -643,8 +643,8 @@ testcase tTextframes_8
Call hCloseDocument
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
Call wTypeKeys ( "<Shift F4>" )
Sleep 1
@@ -718,8 +718,8 @@ testcase tTextframes_9
'/// + This test file is designed for Anchor as Character test.
'/// + The frame is anchored as the character.
'/// + The frame is in the right and bottom of the first page
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
'check if the frame is in the first page
Call wTypeKeys ( "<Shift F4>" )
@@ -775,8 +775,8 @@ testcase tTextframes_9
Call hCloseDocument
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
Check2:
Kontext
@@ -853,7 +853,7 @@ testcase tTextframes_10
'/// + 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)
- Call sMakeReadOnlyDocumentEditable
+
'Press return to ensure the frame is in 2nd column
Call wTypeKeys "<MOD1 Home>"
@@ -889,7 +889,7 @@ testcase tTextframes_10
'/// + pages&columns test.
'/// + There are 2 pages. And the frame is in the second page.
Call hFileOpen(sTestFile2,false)
- Call sMakeReadOnlyDocumentEditable
+
'check if the frame is in the 2nd page
Call wTypeKeys ( "<Shift F4>" )
@@ -957,8 +957,8 @@ testcase tTextframes_11
'/// + There are 2 paragraph in the file .
'/// + The 1st paragraph is in 1st page and the 2nd paragraph is in 2nd page
'/// + Two paragraphs, a frame is anchored to the second one. When deleting the paragraph mark, the anchor of the frame has to move the the first paragraph.
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
Check1:
'First check
diff --git a/testautomation/writer/optional/includes/textframes/w_textframes2.inc b/testautomation/writer/optional/includes/textframes/w_textframes2.inc
index a316cd19b49c..5f58ba252aa6 100755..100644
--- a/testautomation/writer/optional/includes/textframes/w_textframes2.inc
+++ b/testautomation/writer/optional/includes/textframes/w_textframes2.inc
@@ -212,8 +212,8 @@ testcase tTextframes_20
'/// + There are 1 page in the file.
'/// + The frame is ocupied in the whole 1st page and wraped as Through
'/// + Some text are behind the frame
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
'/// Set focus to frame
Call wTypeKeys ( "<Shift F4>" )
@@ -282,8 +282,8 @@ testcase tTextframes_21
'/// + The frame is ocupied in the whole 1st page and wraped as None
'/// + Some text are in the 2nd page
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
'/// Set focus to frame
Call wTypeKeys ( "<Shift F4>" )
@@ -353,8 +353,8 @@ testcase tTextframes_22
'/// + there are some space in the left of the frame.
'/// + Some text are in the 2nd page
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
printlog "- Test wrap - before"
@@ -472,8 +472,8 @@ testcase tTextframes_23
'/// + there are some space in the right of the frame.
'/// + Some text are in the 2nd page
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
printlog "- Test wrap - before"
@@ -1075,7 +1075,7 @@ testcase tTextframes_31
Sleep 2
'/// Check if the frame is non-editable
- Call hFileOpen(sTestFile,false)
+ hFileOpenLocally( sTestFile )
Call wTypeKeys ( "<Shift F4>" )
@@ -1132,7 +1132,7 @@ testcase tTextframes_32
Sleep 2
'/// Check if the text can be inputed into frame
- Call hFileOpen(sTestFile,false)
+ hFileOpenLocally( sTestFile )
Call wTypeKeys "<SHIFT F4><RETURN>"
Wait 500
diff --git a/testautomation/writer/optional/includes/textframes/w_textframes3.inc b/testautomation/writer/optional/includes/textframes/w_textframes3.inc
index 28e6f9b7f404..d9db6fa32253 100755..100644
--- a/testautomation/writer/optional/includes/textframes/w_textframes3.inc
+++ b/testautomation/writer/optional/includes/textframes/w_textframes3.inc
@@ -273,8 +273,8 @@ testcase tTextframes_36
'/// + This test file is designed for testing link
'/// + frames which are placed on different pages
'/// + There are 2 pages in the file and 1 frame/page
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
'Set focus to first frame
Call wTypeKeys ( "<Shift F4>" )
@@ -364,8 +364,8 @@ testcase tTextframes_37
'/// + frames which are placed on header
'/// + There are 2 frames in the header
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
'/// Set focus to first frame
Call wTypeKeys ( "<Shift F4>" )
@@ -427,8 +427,8 @@ testcase tTextframes_38
'/// + This test file is designed for testing link
'/// + frames which are placed on header
'/// + There are 2 frames in the header
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
'/// Set focus to first frame
Call wTypeKeys ( "<Shift F4>" )
diff --git a/testautomation/writer/optional/includes/textframes/w_textframes4.inc b/testautomation/writer/optional/includes/textframes/w_textframes4.inc
index 43af4c5bd532..6da21bcd513f 100755..100644
--- a/testautomation/writer/optional/includes/textframes/w_textframes4.inc
+++ b/testautomation/writer/optional/includes/textframes/w_textframes4.inc
@@ -95,8 +95,8 @@ testcase tTextframes_50
'/// Open a test file , which includes a frame and
'/// + it is StarOffice 7 format
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
'/// Set focus to frame
Call wTypeKeys ( "<Shift F4>" )
@@ -132,8 +132,8 @@ testcase tTextframes_51
'/// Open a test file , which is a Word file and includes
'/// + a frame that is in 'in front of text' mode
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
'/// Set focus to frame
Call wTypeKeys ( "<Shift F4>" )
@@ -169,8 +169,8 @@ testcase tTextframes_52
'/// Open a test file , which is a Word file and includes
'/// + a frame that is in 'behind text' mode
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
'/// Set focus to the frame
Call wTypeKeys ( "<Shift F4>" )
@@ -206,8 +206,8 @@ testcase tTextframes_53
'/// Open a test file , which is a Word file and includes
'/// + a frame that is in 'tight' mode
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
'/// Set focus to the frame
Call wTypeKeys ( "<Shift F4>" )
@@ -222,9 +222,7 @@ testcase tTextframes_53
TabType.Cancel
printlog " Close active document "
- Do Until GetDocumentCount = 0
- Call hCloseDocument
- Loop
+ hFileCloseAll()
endcase
@@ -243,8 +241,8 @@ testcase tTextframes_54
'/// Open a test file , which is a Word file and includes
'/// + a frame that is in 'square' mode
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
'/// Set focus to the frame
Call wTypeKeys ( "<Shift F4>" )
@@ -376,8 +374,8 @@ testcase tTextframes_57
'/// Open a test file , which includes a frame in header and
'/// + a picture which is anchored to frame
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
'Set focus to the picture
Call wTypeKeys ( "<Shift F4>" )
@@ -455,8 +453,8 @@ testcase tTextframes_58
'/// Open a test file , which includes a frame in header and
'/// + a picture which is anchored to frame
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
'Set focus to the picture
Call wTypeKeys ( "<Shift F4>" )
@@ -529,8 +527,8 @@ testcase tTextframes_59
'/// Open a test file , which includes a frame in table and
'/// + a picture which is anchored to frame
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
'Set focus to the picture
Call wTypeKeys ( "<Shift F4>" )
@@ -615,8 +613,8 @@ testcase tTextframes_60
'/// Open a test file , which includes a frame in table and
'/// + a picture which is anchored to frame
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
'Set focus to the frame
Call wTypeKeys ( "<Shift F4>" )
@@ -711,8 +709,8 @@ testcase tTextframes_61
'/// Open a test file , which includes a frame in footer and
'/// + a picture which is anchored to frame
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
'Set focus to the picture
Call wTypeKeys ( "<Shift F4>" )
@@ -789,8 +787,8 @@ testcase tTextframes_62
'/// Open a test file , which includes a frame in footer and
'/// + a picture which is anchored to frame
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
'Set focus to the picture
Call wTypeKeys ( "<Shift F4>" )
@@ -867,8 +865,8 @@ testcase tTextframes_63
'/// Open a test file , which includes a frame in table and
'/// + a picture which is anchored to frame
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
'Set focus to the picture
Call wTypeKeys ( "<Shift F4>" )
@@ -957,8 +955,8 @@ testcase tTextframes_64
'/// Open a test file , which includes a frame in table and
'/// + a picture which is anchored to frame
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
'Set focus to the picture
Call wTypeKeys ( "<Shift F4>" )
@@ -1048,8 +1046,8 @@ testcase tTextframes_65
'/// Open a test file , which includes 2 frames ,
'/// Frame A is anchored Frame B
'/// + a picture which is anchored to Frame A
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
'Set focus to the picture
Call wTypeKeys ( "<Shift F4>" )
@@ -1127,8 +1125,8 @@ testcase tTextframes_66
'/// Open a test file , which includes 2 frames ,
'/// Frame A is anchored Frame B
'/// + a picture which is anchored to Frame A
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
'Set focus to the picture
Call wTypeKeys ( "<Shift F4>" )
@@ -1205,8 +1203,8 @@ testcase tTextframes_67
'/// Open a test file , which includes a frame in table and
'/// + a picture which is anchored to frame
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
'Set focus to the picture
Call wTypeKeys ( "<Shift F4>" )
@@ -1295,8 +1293,8 @@ testcase tTextframes_68
'/// Open a test file , which includes a frame in table and
'/// + a picture which is anchored to frame
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
'Set focus to the picture
Call wTypeKeys ( "<Shift F4>" )
@@ -1386,8 +1384,8 @@ testcase tTextframes_69
'/// Open a test file , which includes 2 frames ,
'/// Frame A is anchored Frame B
'/// + a picture which is anchored to Frame A
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
'Set focus to the picture
Call wTypeKeys ( "<Shift F4>" )
@@ -1465,8 +1463,8 @@ testcase tTextframes_70
'/// Open a test file , which includes 2 frames ,
'/// Frame A is anchored Frame B
'/// + a picture which is anchored to Frame A
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
+
'Set focus to the picture
Call wTypeKeys ( "<Shift F4>" )
diff --git a/testautomation/writer/optional/includes/textframes/w_textframes5.inc b/testautomation/writer/optional/includes/textframes/w_textframes5.inc
index f9a9944b4333..7bcba8594a9c 100755..100644
--- a/testautomation/writer/optional/includes/textframes/w_textframes5.inc
+++ b/testautomation/writer/optional/includes/textframes/w_textframes5.inc
@@ -115,8 +115,7 @@ testcase tTextframes_72
'/// Open a test file , which includes 2 frames ,
'/// Frame A is anchored Frame B
- Call hFileOpen(( Convertpath (gTesttoolpath + "writer\optional\input\textframe\frameInFrame.sxw") ),false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( gTesttoolpath + "writer\optional\input\textframe\frameInFrame.sxw" )
'Set focus to Frame B
Call wTypeKeys ( "<Shift F4>" )
@@ -152,8 +151,7 @@ testcase tTextframes_73
Call hNewDocument
'/// Open a test file , which includes 1 frame in the document body
- Call hFileOpen((Convertpath (gTesttoolpath + "writer\optional\input\textframe\frame.sxw")),false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( gTesttoolpath & "writer\optional\input\textframe\frame.sxw" )
'/// Set focus to Frame
Call wTypeKeys ( "<Shift F4>" )
@@ -188,8 +186,7 @@ testcase tTextframes_74
Call hNewDocument
'/// Open a test file , which includes 1 frame in the document body
- Call hFileOpen((Convertpath (gTesttoolpath + "writer\optional\input\textframe\frameInTable.sxw")),false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( gTesttoolpath + "writer\optional\input\textframe\frameInTable.sxw" )
'/// Set focus to Frame
Call wTypeKeys ( "<Shift F4>" )
@@ -223,8 +220,7 @@ testcase tTextframes_75
Call hNewDocument
'/// Open a test file , which includes 1 frame in the header
- Call hFileOpen((Convertpath (gTesttoolpath + "writer\optional\input\textframe\Header.sxw")),false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( gTesttoolpath + "writer\optional\input\textframe\Header.sxw" )
'/// Set focus to Frame
Call wTypeKeys ( "<Shift F4>" )
@@ -259,8 +255,7 @@ testcase tTextframes_76
Call hNewDocument
'/// Open a test file , which includes 1 frame in the footer
- Call hFileOpen((gTesttoolpath + "writer\optional\input\textframe\Footer.sxw"),false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( gTesttoolpath + "writer\optional\input\textframe\Footer.sxw" )
'/// Set focus to Frame
Call wTypeKeys ( "<Shift F4>" )
@@ -295,8 +290,7 @@ testcase tTextframes_77
Call hNewDocument
'/// Open a test file , which includes 1 frame in the footnote
- Call hFileOpen((Convertpath(gTesttoolpath + "writer\optional\input\textframe\frameInFootnote.sxw")),false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpen( gTesttoolpath & "writer\optional\input\textframe\frameInFootnote.sxw" )
'/// Set focus to Frame
Call wTypeKeys ( "<Shift F4>" )
@@ -331,8 +325,7 @@ testcase tTextframes_78
Call hNewDocument
'/// Open a test file , which includes 1 frame in the endnote
- Call hFileOpen((Convertpath(gTesttoolpath + "writer\optional\input\textframe\frameInEndnote.sxw")),false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( gTesttoolpath & "writer\optional\input\textframe\frameInEndnote.sxw" )
'/// Set focus to Frame
Call wTypeKeys ( "<Shift F4>" )
@@ -379,8 +372,7 @@ testcase tTextframes_80
'/// Open a test file , which includes 1 frame which is
'/// + anchored 'To Character' and a picture which is anchored
'/// + in the frame
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
'/// Set focus to Frame
Call wTypeKeys ( "<Shift F4>" )
@@ -435,8 +427,7 @@ testcase tTextframes_81
'/// Open a test file , which includes 1 frame which is
'/// + anchored 'To Character' and a picture which is anchored
'/// + in the frame
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
'/// Set focus to Frame
Call wTypeKeys ( "<Shift F4>" )
@@ -491,8 +482,7 @@ testcase tTextframes_82
'/// Open a test file , which includes 1 frame which is
'/// + anchored 'To Character' and a picture which is anchored
'/// + in the frame
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
'/// Set focus to Frame
Call wTypeKeys ( "<Shift F4>" )
@@ -549,8 +539,7 @@ testcase tTextframes_83
'/// Open a test file , which includes 1 frame which is
'/// + anchored 'To Character' and a picture which is anchored
'/// + in the frame
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
'/// Set focus to Frame
Call wTypeKeys ( "<Shift F4>" )
@@ -615,8 +604,7 @@ testcase tTextframes_84
'/// Open a test file , which includes 1 frame which is
'/// + anchored 'To Character' and a picture which is anchored
'/// + in the frame
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
+ hFileOpenLocally( sTestFile )
'/// Set focus to Frame
Call wTypeKeys ( "<Shift F4>" )
@@ -683,9 +671,7 @@ testcase tTextframes_85
'/// + One is top to the line text ,
'/// + another one is center to the line text ,
'/// + the 3rd one is bottom to the line text
- Call hFileOpen(sTestFile,false)
- Call sMakeReadOnlyDocumentEditable
- Sleep (2)
+ hFileOpenLocally( sTestFile )
'/// Set focus to 1st Frame
Call wTypeKeys ( "<Shift F4>" )