summaryrefslogtreecommitdiff
path: root/testautomation/writer/optional/includes/textframes
diff options
context:
space:
mode:
Diffstat (limited to 'testautomation/writer/optional/includes/textframes')
-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
5 files changed, 84 insertions, 100 deletions
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>" )