1 'encoding UTF-8 Do not remove or change this line!
2 '**************************************************************************
3 '* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 '* Copyright 2008 by Sun Microsystems, Inc.
7 '* OpenOffice.org - a multi-platform office productivity suite
9 '* $RCSfile: w_redlining2.inc,v $
13 '* last change: $Author: vg $ $Date: 2008-08-18 12:34:05 $
15 '* This file is part of OpenOffice.org.
17 '* OpenOffice.org is free software: you can redistribute it and/or modify
18 '* it under the terms of the GNU Lesser General Public License version 3
19 '* only, as published by the Free Software Foundation.
21 '* OpenOffice.org is distributed in the hope that it will be useful,
22 '* but WITHOUT ANY WARRANTY; without even the implied warranty of
23 '* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 '* GNU Lesser General Public License version 3 for more details
25 '* (a copy is included in the LICENSE file that accompanied this code).
27 '* You should have received a copy of the GNU Lesser General Public License
28 '* version 3 along with OpenOffice.org. If not, see
29 '* <http://www.openoffice.org/license.html>
30 '* for a copy of the LGPLv3 License.
32 '/************************************************************************
34 '* owner : helge.delfs@sun.com
36 '* short description : Test of the Redlinig function - 2
38 '************************************************************************
40 ' #1 tAcceptReject_1 'Test Default settings
41 ' #1 tAcceptReject_2 'Test Accept in Edit / Changes / Accept or Reject
42 ' #1 tAcceptReject_3 'Test Reject in Edit / Changes / Accept or Reject
43 ' #1 tAcceptReject_4 'Test Accept All in Edit / Changes / Accept or Reject
44 ' #1 tAcceptReject_5 'Test Reject All in Edit / Changes / Accept or Reject
45 ' #1 tAcceptReject_6 'Test filter changes by author
46 ' #1 tAcceptReject_7 'Test filter changes by time
47 ' #1 tAcceptReject_8 'Test filter changes by action
48 ' #1 tAcceptReject_9 'Test filter changes by comment
49 ' #1 tAcceptReject_10 'Adding a comment to a change over the context menu
50 ' #1 tAcceptReject_11 'Sort the list of changes over context menu -- action
51 ' #1 tAcceptReject_12 'Sort the list of changes over context menu -- author
52 ' #1 tAcceptReject_13 'Sort the list of changes over context menu -- date
53 ' #1 tAcceptReject_14 'Sort the list of changes over context menu -- comment
54 ' #1 tAcceptReject_15 'Sort the list of changes over context menu -- document position
56 '\***********************************************************************
58 testcase tAcceptReject_1
60 '/// Test focus -- the focus must be set in the document on the change pointed in the dialog.
61 printlog "Test focus -- the focus must be set in the document on the change pointed in the dialog"
66 'Insert some test sentences
67 Call wTypeKeys "Redlining test => OK_1<Return><Return>"
68 Call wTypeKeys "Redlining test => OK_2"
71 '/// Edit / Changes / Record
74 '/// Multi operations : Insert a new sentence , and delete some test text
76 Call wTypeKeys "Focus Test"
77 Call wTypeKeys "<Down><End>"
78 Call wTypeKeys "<Backspace>" , 3
80 '/// Set the focus to the Start
81 Call wTypeKeys "<Up>" , 3
82 Call wTypeKeys "<Home>"
84 '/// Edit / Changes / Accept or Reject
85 EditChangesAcceptOrReject
90 '/// + Select tabpage 'List' ///
91 TabControl.SetPage TabListe
94 '/// Select the 1st -- insertion
95 ListItem.TypeKeys "<Up>"
98 Kontext "DocumentWriter"
99 Call wTypeKeys "<Shift Home>"
102 if GetClipboardText <> "Focus Test" then Warnlog "The inserted focus location is incorrect! Getting " +GetClipboardText
105 '/// Select the 2nd -- deletion
106 ListItem.TypeKeys "<Down>"
109 Kontext "DocumentWriter"
110 Call wTypeKeys "<End>"
111 Call wTypeKeys "<Shift Left>" , 4
115 if GetClipboardText <> "O" then Warnlog "The deleted focus location is incorrect! Getting " +GetClipboardText
117 '/// Close Redlining dialog
121 '/// Close the document
126 '----------------------------------------------------------------------------
128 testcase tAcceptReject_2
130 '/// Test Accept in Edit / Changes / Accept or Reject
131 printlog "Test Accept in Edit / Changes / Accept or Reject "
136 'Insert some test sentences
137 Call wTypeKeys "Redlining test => OK_1<Return><Return>"
138 Call wTypeKeys "Redlining test => OK_2"
141 '/// Edit / Changes / Record
144 '/// Multi operations : Insert a new sentence , and
145 '/// + delete some test text
146 Call wTypeKeys "<Up>"
147 Call wTypeKeys "Focus Test"
148 Call wTypeKeys "<Down><End>"
149 Call wTypeKeys "<Backspace>" , 1
150 Call wTypeKeys "<Up>"
152 '/// Edit / Changes / Accept or Reject
153 EditChangesAcceptOrReject
157 '/// + Select tabpage 'List' ///
158 TabControl.SetPage TabListe
160 '/// + Select 'Accept'
163 '/// + Close Redlining dialog
167 '/// Check if the configuration is all right
168 Call wTypeKeys "<Up>" , 3
170 Call wTypeKeys "<Down><Home><Shift End>"
174 if GetClipboardText <> "Focus Test" then Warnlog "The inserted text is incorrect! Getting" + GetClipboardText
176 Call wTypeKeys "<Down><End>"
178 Call wTypeKeys "<Shift Left>" , 4
182 if GetClipboardText <> " OK_" then Warnlog "The deleted text is incorrect! Getting" + GetClipboardText
184 '/// Close the document
189 '----------------------------------------------------------------------------
191 testcase tAcceptReject_3
193 '/// Test Reject in Edit / Changes / Accept or Reject
194 printlog "Test Reject in Edit / Changes / Accept or Reject "
199 'Insert some test sentences
200 Call wTypeKeys "Redlining test => OK_1<Return><Return>"
201 Call wTypeKeys "Redlining test => OK_2"
204 '/// Edit / Changes / Record
207 '/// Multi operations : Insert a new sentence , and delete some test text
208 Call wTypeKeys "<Up>"
209 Call wTypeKeys "Focus Test"
210 Call wTypeKeys "<Down><End>"
211 Call wTypeKeys "<Backspace>" , 3
212 Call wTypeKeys "<Up>" , 3
213 Call wTypeKeys "<Home>"
215 '/// Edit / Changes / Accept or Reject
216 EditChangesAcceptOrReject
219 '/// + Select tabpage 'List' ///
220 TabControl.SetPage TabListe
223 ListItem.TypeKeys "<Up>"
226 '/// + Select 'Reject'
230 '/// + Close Redlining dialog
233 '/// Check if the configuration is all right
234 Call wTypeKeys "<Up>" , 3
235 Call wTypeKeys "<Down><Home><Shift End>"
239 Warnlog "The inserted text should be rejected , so EditCopy shouldn't be actived!"
243 Call wTypeKeys "<Down><End>"
244 Call wTypeKeys "<Shift Left>" , 4
246 if GetClipboardText <> "O" then Warnlog "The deleted text should be deleted and their location should be still reserved! Getting " + GetClipboardText
248 '/// Close the document
253 '----------------------------------------------------------------------------
255 testcase tAcceptReject_4
257 '/// Test Accept All in Edit / Changes / Accept or Reject
258 printlog "Test Accept All in Edit / Changes / Accept or Reject "
263 'Insert some test sentences
264 Call wTypeKeys "Redlining test => OK_1<Return><Return>"
265 Call wTypeKeys "Redlining test => OK_2"
268 '/// Edit / Changes / Record
271 '/// Multi operations : Insert a new sentence , and delete some test text
272 Call wTypeKeys "<Up>"
274 Call wTypeKeys "Focus Test"
276 Call wTypeKeys "<Down><End>"
278 Call wTypeKeys "<Backspace>" , 3
280 Call wTypeKeys "<Up>" , 3
282 Call wTypeKeys "<Home>"
285 '/// Edit / Changes / Accept or Reject
286 EditChangesAcceptOrReject
289 '/// + Select tabpage 'List' ///
290 TabControl.SetPage TabListe
292 '/// + Select 'Accept All'
293 AlleAkzeptieren.Click
295 '/// + Close Redlining dialog
299 '/// Check if the configuration is all right
300 Call wTypeKeys "<Up>" , 3
302 Call wTypeKeys "<Down><Home><Shift End>"
306 if GetClipboardText <> "Focus Test" then Warnlog "The inserted text is incorrect! Getting " + GetClipboardText
308 Call wTypeKeys "<Down><End>"
310 Call wTypeKeys "<Shift Left>" , 4
313 if GetClipboardText <> "=> O" then Warnlog "The deleted text is incorrect! Getting " + GetClipboardText
315 '/// Close the document
320 '----------------------------------------------------------------------------
322 testcase tAcceptReject_5
324 '/// Test Reject all in Edit / Changes / Accept or Reject
325 printlog "Test Reject all in Edit / Changes / Accept or Reject "
330 'Insert some test sentences
331 Call wTypeKeys "Redlining test => OK_1<Return><Return>"
332 Call wTypeKeys "Redlining test => OK_2"
335 '/// Edit / Changes / Record
338 '/// Multi operations : Insert a new sentence , and delete some test text
339 Call wTypeKeys "<Up>"
340 Call wTypeKeys "Focus Test"
341 Call wTypeKeys "<Down><End>"
342 Call wTypeKeys "<Backspace>" , 3
344 Call wTypeKeys "<Up>" , 3
346 Call wTypeKeys "<Home>"
348 '/// Edit / Changes / Accept or Reject
349 EditChangesAcceptOrReject
351 '/// + Select tabpage 'List' ///
352 TabControl.SetPage TabListe
354 '/// + Select 'Reject All'
357 '/// + Close Redlining dialog
360 '/// Check if the configuration is all right
361 Call wTypeKeys "<Up>" , 3
363 Call wTypeKeys "<Down><Home><Shift End>"
367 Warnlog "The inserted text should be rejected , so EditCopy shouldn't be actived!"
371 Call wTypeKeys "<Down><End>"
372 Call wTypeKeys "<Shift Left>" , 4
374 if GetClipboardText <> "OK_2" then Warnlog "The deleted text should not be deleted! Getting " + GetClipboardText
376 '/// Close the document
381 '----------------------------------------------------------------------------
383 testcase tAcceptReject_6
385 Dim sFirstName , sLastName as String
386 Dim sFirstName1 , sLastName1 as String
387 Dim sFirstName2 , sLastName2 as String
389 sFirstName1 = "Test1" : sLastName1 = "Test1"
390 sFirstName2 = "Test2" : sLastName2 = "Test2"
392 '/// Test filter changes by author
393 printlog "Test filter changes by author"
398 'Insert some test sentences
399 Call wTypeKeys "Redlining test => OK_1<Return>"
400 Call wTypeKeys "Redlining test => OK_2"
402 '/// Change author to author1 :Test1 Test1
404 Call hToolsOptions("STAROFFICE","USERDATA")
405 sFirstName = VorName.GetText
406 sLastName = ZuName.GetText
407 VorName.SetText sFirstName1
408 ZuName.SetText sLastName1
409 Kontext "ExtrasOptionenDlg"
413 '/// Edit / Changes / Record
416 '/// author1 : delete some text
417 Call wTypeKeys "<Up><End>"
419 Call wTypeKeys "<Backspace>" , 3
422 '/// Change author to author2 :Test2 Test2
424 Call hToolsOptions("STAROFFICE","USERDATA")
425 VorName.SetText sFirstName2
426 ZuName.SetText sLastName2
427 Kontext "ExtrasOptionenDlg"
430 '/// author2 : delete some other text
431 Call wTypeKeys "<Down><End>"
433 Call wTypeKeys "<Backspace>" , 4
436 '/// Edit / Changes / Accept or Reject
437 EditChangesAcceptOrReject
439 '/// + Select tabpage 'Filter' ///
440 TabControl.SetPage TabFilter
442 '/// + Check 'Author'
445 '/// + Select Author2
449 QAErrorlog "#i99937#Change of author (User name) disregarded when changed during Office session"
455 '/// + Select tabpage 'List' ///
456 TabControl.SetPage TabListe
458 '/// + Select 'Accept All'///
459 AlleAkzeptieren.Click
462 '/// + Close Redlining dialog
466 '/// + Check if Filter works well
467 Call wTypeKeys "<Up>" , 2
469 Call wTypeKeys "<End>"
471 Call wTypeKeys "<Shift Left>" , 6
475 if GetClipboardText <> "> O" then Warnlog "The deleted text by author1 is incorrect! Getting " + GetClipboardText
477 Call wTypeKeys "<Down><End>"
479 Call wTypeKeys "<Shift Left>" , 6
483 if GetClipboardText <> "st => " then Warnlog "The deleted text by author2 is incorrect! Getting " + GetClipboardText
485 'Change author to default
487 Call hToolsOptions("STAROFFICE","USERDATA")
488 VorName.SetText sFirstName
489 ZuName.SetText sLastName
490 Kontext "ExtrasOptionenDlg"
493 '/// + Close the document
498 '----------------------------------------------------------------------------
500 testcase tAcceptReject_7
504 '/// Test filter changes by date
505 printlog "Test filter changes by date"
510 '/// Insert some test sentences
511 Call wTypeKeys "Redlining test => OK_1<Return>"
512 Call wTypeKeys "Redlining test => OK_2"
515 '/// Edit / Changes / Record
518 '/// delete some text in first line
519 Call wTypeKeys "<Up><End>"
520 Call wTypeKeys "<Backspace>" , 3
522 sTime = Str ( Format( Now ) )
523 sTime = Mid ( sTime , 12 , 5 )
528 '/// delete some text in second line
529 Call wTypeKeys "<Down><End>"
530 Call wTypeKeys "<Backspace>" , 2
532 '/// Edit / Changes / Accept or Reject
533 EditChangesAcceptOrReject
535 '/// + Select tabpage 'Filter' ///
536 TabControl.SetPage TabFilter
541 '/// + Select earlier than
547 '/// + Select tabpage 'List' ///
548 TabControl.SetPage TabListe
550 '/// + Select 'Accept All'///
551 AlleAkzeptieren.Click
553 '/// + Close Redlining dialog
556 '/// + Check if Filter works well
557 Call wTypeKeys "<Up>" , 2
558 Call wTypeKeys "<End>"
559 Call wTypeKeys "<Shift Left>" , 4
561 if GetClipboardText <> "=> O" then Warnlog "The deleted text in first line is incorrect!"
563 Call wTypeKeys "<Down><End>"
564 Call wTypeKeys "<Shift Left>" , 4
566 if GetClipboardText <> "OK" then Warnlog "The deleted text in second line is incorrect!"
568 '/// + Close the document
573 '----------------------------------------------------------------------------
575 testcase tAcceptReject_8
577 Dim iComparison1$,iComparison2$,iComparison3$,iComparison4$
579 '/// Test filter changes by action
580 printlog "Test filter changes by action"
585 'Insert some test sentences
586 Call wTypeKeys "Redlining test => OK_1<Return>"
587 Call wTypeKeys "Redlining test => OK_2"
590 '/// Edit / Changes / Record
593 '/// Change the first line's attribute .
594 Call wTypeKeys "<Up><Home><Shift End>"
598 Active.SetPage TabFont
601 if gAsianSup = True then
603 iComparison1$ = FontWest.GetSelText
607 StyleWest.Select StyleWest.GetItemCount
609 iComparison2$ = StyleWest.GetSelText
611 iComparison3$ = SizeWest.GetSelText
614 iComparison1$ = Font.GetSelText
618 Style.Select Style.GetItemCount
620 iComparison2$ = Style.GetSelText
622 iComparison3$ = Size.GetSelText
627 Active.Setpage TabHyperlinkZeichen
628 Kontext "TabHyperlinkZeichen"
629 UrlName.Settext "http://www.sun.com/"
633 iComparison4$ = TargetFrame.GetSelText
635 TabHyperlinkZeichen.Ok
637 '/// Delete some text in second line
638 Call wTypeKeys "<Down><End>"
639 Call wTypeKeys "<Backspace>" , 3
641 '/// Edit / Changes / Accept or Reject
642 EditChangesAcceptOrReject
644 '/// + Select tabpage 'Filter' ///
645 TabControl.SetPage TabFilter
647 '/// + Check 'Action' , select format
650 Aktionsliste.Select 3
652 '/// + Select tabpage 'List' ///
653 TabControl.SetPage TabListe
655 '/// + Select 'Accept All'///
656 AlleAkzeptieren.Click
658 '/// + Close Redlining dialog
661 '/// Check if Filter works well
662 Call wTypeKeys "<Up><Home><Right>"
665 Active.SetPage TabFont
667 if gAsianSup = True then
668 if iComparison1$ <> FontWest.GetSelText then Warnlog "Wrong Font in first line!"
669 if iComparison2$ <> StyleWest.GetSelText then Warnlog "Wrong Fontstyle in first line!"
670 if iComparison3$ <> SizeWest.GetSelText then QAErrorlog "#108881#Wrong Fontsize in first line!"
672 if iComparison1$ <> Font.GetSelText then Warnlog "Wrong Font in first line!"
673 if iComparison2$ <> Style.GetSelText then Warnlog "Wrong Fontstyle in first line!"
674 if iComparison3$ <> Size.GetSelText then Warnlog "Wrong Fontsize in first line!"
678 Active.Setpage TabHyperlinkZeichen
679 Kontext "TabHyperlinkZeichen"
680 if UrlName.Gettext <> "http://www.sun.com/" then Warnlog "Wrong hyperlink has been added to text!"
681 if iComparison4$ <> TargetFrame.GetSelText then Warnlog "Wrong targetFrame has been added to text!"
682 TabHyperlinkZeichen.Cancel
684 Call wTypeKeys "<Down><End>"
685 Call wTypeKeys "<Shift Left>" , 4
687 if GetClipboardText <> "O" then Warnlog "The deleted text is incorrect!"
689 '/// Close the document
694 '----------------------------------------------------------------------------
696 testcase tAcceptReject_9
698 '/// Test filter changes by comments
699 printlog "Test filter changes by comments"
704 '/// Insert some test sentences
705 Call wTypeKeys "Redlining test => OK_1<Return>"
706 Call wTypeKeys "Redlining test => OK_2"
709 '/// Edit / Changes / Record
712 '/// delete some text in first line .
713 Call wTypeKeys "<Up><End>"
714 Call wTypeKeys "<Backspace>" , 3
716 '/// insert comment1: Edit / Changes / Comment
719 KommentarText.SetText "Comment1"
722 '/// delete some text in second line .
723 Call wTypeKeys "<Down><End>"
724 Call wTypeKeys "<Backspace>" , 2
726 '/// insert comment2: Edit / Changes / Comment
729 KommentarText.SetText "Comment2"
732 '/// Edit / Changes / Accept or Reject
733 EditChangesAcceptOrReject
735 '/// + Select tabpage 'Filter' ///
736 TabControl.SetPage TabFilter
738 '/// + Check 'comment' , and input comment1 in the relevant editbox
740 CommentText.SetText "Comment1"
741 '/// + Select tabpage 'List' ///
742 TabControl.SetPage TabListe
744 '/// + Select 'Accept All'///
745 AlleAkzeptieren.Click
747 '/// + Close Redlining dialog
750 '/// Check if the configuration is all right
751 Call wTypeKeys "<Up><End>"
752 Call wTypeKeys "<Shift Left>" , 4
754 if GetClipboardText <> "=> O" then Warnlog "The deleted text in first line is incorrect!"
756 Call wTypeKeys "<Down><End>"
757 Call wTypeKeys "<Shift Left>" , 4
759 if GetClipboardText <> "OK" then Warnlog "The deleted text in second line is incorrect!"
761 '/// Close the document
766 '----------------------------------------------------------------------------
768 testcase tAcceptReject_10
770 '/// Adding a comment to a change over the context menu.
771 printlog "Adding a comment to a change over the context menu."
776 '/// Insert some test sentences
777 Call wTypeKeys "Redlining test => O1<Return>"
778 Call wTypeKeys "Redlining test => K2"
781 '/// Edit / Changes / Record
784 '/// delete some text in first line .
785 Call wTypeKeys "<Up><End>"
786 Call wTypeKeys "<Backspace>"
788 '/// delete some text in second line .
789 Call wTypeKeys "<Down><End>"
790 Call wTypeKeys "<Backspace>"
792 '/// Edit / Changes / Accept or Reject
793 EditChangesAcceptOrReject
796 '/// + Select tabpage 'List'
797 TabControl.SetPage TabListe
800 '/// + insert comment with context menu
801 '/// + insert comment for first line
802 ListItem.TypeKeys "<Up>"
803 ListItem.OpenContextMenu
807 Kontext "NotizBearbeiten"
808 Texteingabe.SetText "Comment1"
811 '/// + insert comment for second line
813 ListItem.TypeKeys "<Down>"
814 ListItem.OpenContextMenu
817 Kontext "NotizBearbeiten"
818 Texteingabe.SetText "Comment2"
823 '/// + Select tabpage 'Filter' ///
824 TabControl.SetPage TabFilter
826 '/// + Check 'comment' , and input comment1 in the relevant editbox
828 CommentText.SetText "Comment1"
829 '/// + Select tabpage 'List' ///
830 TabControl.SetPage TabListe
832 '/// + Select 'Accept All'///
833 AlleAkzeptieren.Click
835 '/// + Close Redlining dialog
838 '/// Check if the configuration is all right
839 Call wTypeKeys "<Up><End>"
840 Call wTypeKeys "<Shift Left>" , 2
842 if GetClipboardText <> " O" then Warnlog "The deleted text in first line is incorrect!"
844 Call wTypeKeys "<Down><End>"
845 Call wTypeKeys "<Shift Left>" , 2
847 if GetClipboardText <> "K" then Warnlog "The deleted text in second line is incorrect!"
849 '/// Close the document
854 '----------------------------------------------------------------------------
856 testcase tAcceptReject_11
858 '/// Sort the list of changes over context menu -- action.
859 '/// Action sort depends on not only StarOffice/StarSuite , but also system language.
860 printlog "Sort the list of changes over context menu -- action."
865 '/// Insert some test sentences
866 Call wTypeKeys "Redlining_11_test<Return>"
869 '/// Edit / Changes / Record
872 '/// Insert some test sentences
875 '/// delete some text in first line .
876 Call wTypeKeys "<Up><End>"
877 Call wTypeKeys "<Backspace>"
879 'This step to ensure the 1st list is deletion , the 2nd list is insertion
880 Call wTypeKeys "<Home>"
882 '/// Edit / Changes / Accept or Reject
883 EditChangesAcceptOrReject
886 '/// + Select tabpage 'List'
887 TabControl.SetPage TabListe
890 'Sort the list of changes with their position
891 ListItem.TypeKeys "<Up>"
892 ListItem.OpenContextMenu
893 Call hMenuSelectNr(2)
895 Call hMenuSelectNr(5)
898 '/// + Sort the list of changes over context menu -- action
899 ListItem.TypeKeys "<Up>"
900 ListItem.OpenContextMenu
901 Call hMenuSelectNr(2)
903 Call hMenuSelectNr(1)
910 '/// + Close Redlining dialog
913 '/// Check if the configuration is all right
914 Call wTypeKeys "<Up><End>"
915 Call wTypeKeys "<Shift Left>"
917 if GetClipboardText <> "s" then Warnlog "The deleted text in first line is incorrect!"
919 Call wTypeKeys "<Down><End>"
920 Call wTypeKeys "<Shift Home>"
922 if GetClipboardText <> "A" then Warnlog "The inserted text in second line is incorrect!"
928 '----------------------------------------------------------------------------
930 testcase tAcceptReject_12
932 Dim sFirstName , sLastName as String
933 Dim sFirstName1 , sLastName1 as String
934 Dim sFirstName2 , sLastName2 as String
936 sFirstName1 = "ATest1" : sLastName1 = "ATest1"
937 sFirstName2 = "BTest2" : sLastName2 = "BTest2"
939 '/// Sort the list of changes over context menu -- author.
940 printlog "Sort the list of changes over context menu -- author."
945 'Insert some test sentences
946 Call wTypeKeys "Redlining test => O1<Return>"
947 Call wTypeKeys "Redlining test => K2"
949 '/// Change author to author1 :ATest1 ATest1
951 Call hToolsOptions("STAROFFICE","USERDATA")
952 sFirstName = VorName.GetText
953 sLastName = ZuName.GetText
954 VorName.SetText sFirstName1
955 ZuName.SetText sLastName1
956 Kontext "ExtrasOptionenDlg"
960 '/// Edit / Changes / Record
963 '/// author1 : delete some text in 2nd line
964 Call wTypeKeys "<Backspace>"
966 '/// Change author to author2 :BTest2 BTest2
968 Call hToolsOptions("STAROFFICE","USERDATA")
969 VorName.SetText sFirstName2
970 ZuName.SetText sLastName2
971 Kontext "ExtrasOptionenDlg"
974 '/// author2 : delete some text in 1st line
975 Call wTypeKeys "<Up><End>"
976 Call wTypeKeys "<Backspace>"
978 Call wTypeKeys "<Home>"
980 '/// Edit / Changes / Accept or Reject
981 EditChangesAcceptOrReject
984 '/// + Select tabpage 'List'
985 TabControl.SetPage TabListe
988 'Sort the list of changes with their position
989 ListItem.TypeKeys "<Up>"
990 ListItem.OpenContextMenu
996 '/// + Sort the list of changes over context menu - author
997 ListItem.TypeKeys "<Up>"
998 ListItem.OpenContextMenu
1004 '/// + Select author 1
1005 ListItem.TypeKeys "<Up>"
1012 '/// + Close Redlining dialog
1015 '/// Check if Filter works well
1016 Call wTypeKeys "<Up>" , 2
1017 Call wTypeKeys "<End>"
1018 Call wTypeKeys "<Shift Left>" , 2
1020 if GetClipboardText <> "O" then Warnlog "The deleted text by author1 is incorrect!"
1022 Call wTypeKeys "<Down><End>"
1023 Call wTypeKeys "<Shift Left>" , 2
1025 if GetClipboardText <> " K" then Warnlog "The deleted text by author2 is incorrect!"
1027 'Change author to default
1029 Call hToolsOptions("STAROFFICE","USERDATA")
1030 VorName.SetText sFirstName
1031 ZuName.SetText sLastName
1032 Kontext "ExtrasOptionenDlg"
1033 ExtrasOptionenDlg.OK
1035 '/// + Close the document
1040 '----------------------------------------------------------------------------
1042 testcase tAcceptReject_13
1044 '/// Sort the list of changes over context menu -- date.
1045 printlog "Sort the list of changes over context menu -- date."
1050 '/// Insert some test sentences
1051 Call wTypeKeys "Redlining test => O1<Return>"
1052 Call wTypeKeys "Redlining test => K2"
1055 '/// Edit / Changes / Record
1058 '/// delete some text in 2nd line .
1059 Call wTypeKeys "<Backspace>"
1061 '/// wait 70 seconds
1064 '/// delete some text in 1st line .
1065 Call wTypeKeys "<Up><End>"
1066 Call wTypeKeys "<Backspace>"
1068 '/// Edit / Changes / Accept or Reject
1069 EditChangesAcceptOrReject
1072 '/// + Select tabpage 'List'
1073 TabControl.SetPage TabListe
1076 'Sort the list of changes with their position
1077 ListItem.TypeKeys "<Up>"
1078 ListItem.OpenContextMenu
1084 '/// + Sort the list of changes over context menu -- date
1085 ListItem.TypeKeys "<Up>"
1086 ListItem.OpenContextMenu
1092 '/// + Select 2nd item (it should be the 2nd deletion operation)
1093 ListItem.TypeKeys "<Down>"
1099 '/// + Close Redlining dialog
1102 '/// Check if the configuration is all right
1103 Call wTypeKeys "<Up><End>"
1104 Call wTypeKeys "<Shift Left>" , 2
1106 if GetClipboardText <> " O" then Warnlog "The deleted text in first line is incorrect!"
1108 Call wTypeKeys "<Down><End>"
1109 Call wTypeKeys "<Shift Left>" , 2
1111 if GetClipboardText <> "K" then Warnlog "The deleted text in second line is incorrect!"
1113 '/// + Close the document
1118 '----------------------------------------------------------------------------
1120 testcase tAcceptReject_14
1122 '/// Sort the list of changes over context menu -- comment.
1123 printlog "Sort the list of changes over context menu -- comment"
1128 '/// Insert some test sentences
1129 Call wTypeKeys "Redlining test => O1<Return>"
1130 Call wTypeKeys "Redlining test => K2"
1133 '/// Edit / Changes / Record
1136 '/// delete some text in 2nd line .
1137 Call wTypeKeys "<Backspace>"
1139 '/// insert comment1: Edit / Changes / Comment
1142 KommentarText.SetText "Comment1"
1145 '/// delete some text in 1st line .
1146 Call wTypeKeys "<Up><End>"
1147 Call wTypeKeys "<Backspace>"
1149 '/// insert comment2: Edit / Changes / Comment
1152 KommentarText.SetText "Comment2"
1155 '/// Edit / Changes / Accept or Reject
1156 EditChangesAcceptOrReject
1159 '/// + Select tabpage 'List'
1160 TabControl.SetPage TabListe
1163 'Sort the list of changes with their position
1164 ListItem.TypeKeys "<Up>"
1165 ListItem.OpenContextMenu
1171 '/// + Sort the list of changes over context menu -- comment
1172 ListItem.TypeKeys "<Up>"
1173 ListItem.OpenContextMenu
1179 '/// + Select 2nd item
1180 ListItem.TypeKeys "<Down>"
1186 '/// + Close Redlining dialog
1189 '/// Check if the configuration is all right
1190 Call wTypeKeys "<Up><End>"
1191 Call wTypeKeys "<Shift Left>" , 2
1193 if GetClipboardText <> " O" then Warnlog "The deleted text in first line is incorrect!"
1195 Call wTypeKeys "<Down><End>"
1196 Call wTypeKeys "<Shift Left>" , 2
1198 if GetClipboardText <> "K" then Warnlog "The deleted text in second line is incorrect!"
1200 '/// + Close the document
1205 '----------------------------------------------------------------------------
1207 testcase tAcceptReject_15
1209 '/// Sort the list of changes over context menu -- document position.
1210 printlog "Sort the list of changes over context menu -- document position"
1215 '/// Insert some test sentences
1216 Call wTypeKeys "Redlining test => O1<Return>"
1217 Call wTypeKeys "Redlining test => K2"
1220 '/// Edit / Changes / Record
1223 '/// delete some text in 2nd line .
1224 Call wTypeKeys "<Backspace>"
1226 '/// delete some text in 1st line .
1227 Call wTypeKeys "<Up><End>"
1228 Call wTypeKeys "<Backspace>"
1230 Call wTypeKeys "<Home>"
1232 '/// Edit / Changes / Accept or Reject
1233 EditChangesAcceptOrReject
1236 '/// + Select tabpage 'List'
1237 TabControl.SetPage TabListe
1240 '/// + Sort the list of changes over context menu -- document position
1241 ListItem.TypeKeys "<Up>"
1242 ListItem.OpenContextMenu
1248 '/// + Select 2nd item
1249 ListItem.TypeKeys "<Down>"
1256 '/// + Close Redlining dialog
1259 '/// Check if the configuration is all right
1260 Call wTypeKeys "<Up><End>"
1261 Call wTypeKeys "<Shift Left>" , 2
1263 if GetClipboardText <> "O" then Warnlog "The deleted text in first line is incorrect!"
1265 Call wTypeKeys "<Down><End>"
1266 Call wTypeKeys "<Shift Left>" , 2
1268 if GetClipboardText <> " K" then Warnlog "The deleted text in second line is incorrect!"
1270 '/// Close the document