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 2000, 2010 Oracle and/or its affiliates.
7 ' OpenOffice.org - a multi-platform office productivity suite
9 ' This file is part of OpenOffice.org.
11 ' OpenOffice.org is free software: you can redistribute it and/or modify
12 ' it under the terms of the GNU Lesser General Public License version 3
13 ' only, as published by the Free Software Foundation.
15 ' OpenOffice.org is distributed in the hope that it will be useful,
16 ' but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ' GNU Lesser General Public License version 3 for more details
19 ' (a copy is included in the LICENSE file that accompanied this code).
21 ' You should have received a copy of the GNU Lesser General Public License
22 ' version 3 along with OpenOffice.org. If not, see
23 ' <http://www.openoffice.org/license.html>
24 ' for a copy of the LGPLv3 License.
26 '/***********************************************************************
28 '* owner : oliver.craemer@oracle.com
30 '* short description : Resource Test - Format Menu Part III
32 '\***********************************************************************
36 Printlog Chr(13) + "--------- Format Menu Part III (c_upd_formatmenu3.inc) ---------"
38 call tFormatGraphicPositionAndSize
39 call tFormatGraphicLine
40 call tFormatGraphicArea
41 call tFormatGraphicText
42 call tFormatGraphicPoints
46 '-----------------------------------------------------------
48 testcase tFormatGraphicPositionAndSize
49 '///<u><b>Format - Graphic – Position and Size</b></u>
51 '/// Load document from 'gTesttoolPath + "spreadsheet\required\input\twoobjects.ods"'
52 printlog " Load document from 'gTesttoolPath + spreadsheet\required\input\twoobjects.ods"
53 hFileOpenLocally( gTesttoolPath + "spreadsheet\required\input\twoobjects.ods" )
54 '/// Select first object by Navigator
55 printlog " Select first object by Navigator"
56 Call fNavigatorSelectObject ("drawing objects", 1)
57 '/// Open 'Position and Size' – dialog by 'Format – Graphic – Position and Size'
58 printlog " Open 'Position and Size' – dialog by 'Format – Graphic – Position and Size'"
62 '/// Switch to tabpage 'Position and Size'
63 printlog " Switch to tabpage 'Position and Size'"
65 Active.SetPage TabPositionAndSize
66 Kontext "TabPositionAndSize"
67 Call DialogTest ( TabPositionAndSize )
68 '/// Uncheck 'Position'
69 printlog " Uncheck 'Position'"
70 ProtectPosition.Uncheck
72 printlog " Uncheck 'Size'"
74 '/// Increase 'Position X'
75 printlog " Increase 'Position X'"
77 '/// Decrease 'Position Y'
78 printlog " Decrease 'Position Y'"
81 printlog " Increase 'Width'"
83 '/// Decrease 'Height'
84 printlog " Decrease 'Height'"
86 '/// Check 'Keep ratio'
87 printlog " Check 'Keep ratio'"
91 '/// Switch to tabpage 'Rotation'
92 printlog " Switch to tabpage 'Rotation'"
94 Active.SetPage TabDrehung
96 Call DialogTest ( TabDrehung )
97 '/// Increase 'Position X'
98 printlog " Increase 'Position X'"
100 '/// Decrease 'Position Y'
101 printlog " Decrease 'Position Y'"
103 '/// Increase 'Angle'
104 printlog " Increase 'Angle'"
106 '/// Switch to tabpage 'Slant & Corner Radius'
107 printlog " Switch to tabpage 'Slant & Corner Radius'"
109 Active.SetPage TabSchraegstellen
110 Kontext "TabSchraegstellen"
111 Call DialogTest ( TabSchraegstellen )
113 printlog " Increase radius"
116 printlog " Increase angle"
118 '/// Close 'Position and Size' – dialog by 'Cancel'
119 printlog " Close 'Position and Size' – dialog by 'Cancel'"
120 TabSchraegstellen.Close
122 printlog " Close document"
124 hFileDelete( gLastWorkFile )
128 '-----------------------------------------------------------
130 testcase tFormatGraphicLine
131 '///<u><b>Format - Graphic - Line</b></u>
135 '/// Load document from 'gTesttoolPath + "spreadsheet\required\input\twoobjects.ods"'
136 printlog " Load document from 'gTesttoolPath + spreadsheet\required\input\twoobjects.ods"
137 hFileOpenLocally( gTesttoolPath & "spreadsheet\required\input\twoobjects.ods" )
139 '/// Select first object by Navigator
140 printlog " Select first object by Navigator"
141 Call fNavigatorSelectObject ("drawing objects", 1)
142 '/// Open 'Format – Line' dialog by 'Format – Graphic – Line'
143 printlog " Open 'Format – Line' dialog by 'Format – Graphic – Line'"
145 '/// Switch to tabpage 'Line'
146 printlog " Switch to tabpage 'Line'"
148 active.setpage TabLinie
150 Call DialogTest ( TabLinie )
151 '/// Verify that the 'Style' listbox for 'Line properties' is not empty
152 printlog " Verify that the 'Style' listbox for 'Line properties' is not empty"
153 If Stil.GetItemCount < 1 then
154 warnlog "The listbox for styles is empty"
156 '/// Verify that the 'Color' listbox for 'Line properties' is not empty
157 printlog " Verify that the 'Color' listbox for 'Line properties' is not empty"
158 If Farbe.GetItemCount < 1 then
159 warnlog "The listbox for colors is empty"
161 '/// Increase 'Width'
162 printlog " Increase 'Width'"
164 '/// Increase 'Transparency'
165 printlog " Increase 'Transparency'"
167 '/// Uncheck 'Synchronize ends'
168 printlog " Uncheck 'Synchronize ends'"
169 EndenSynchronisieren.Uncheck
170 '/// Verify that the left 'Style' listbox for 'Arrow Styles' is not empty
171 printlog " Verify that the left 'Style' listbox for 'Arrow Styles' is not empty"
172 If StilLinks.GetItemCount < 1 then
173 warnlog "The listbox for styles is empty"
175 printlog "Choose second entry"
177 '/// Verify that the right 'Style' listbox for 'Arrow Styles' is not empty
178 printlog " Verify that the right 'Style' listbox for 'Arrow Styles' is not empty"
179 If StilRechts.GetItemCount < 1 then
180 warnlog "The listbox for styles is empty"
182 printlog "Choose second entry"
184 '/// Check the left 'Center' checkbox
185 printlog " Check the left 'Center' checkbox"
187 '/// Check the right 'Center' checkbox
188 printlog " Check the right 'Center' checkbox"
189 ZentriertRechts.Check
190 '/// Verify that the 'Style' listbox for 'Corner Style' is not empty
191 printlog " Verify that the 'Style' listbox for 'Corner Style' is not empty"
192 If CornerStyle.GetItemCount < 1 then
193 warnlog "The listbox for styles is empty"
197 '/// Switch to tabpage 'Line Styles'
198 printlog " Switch to tabpage 'Line Styles'"
200 active.setpage TabLinienstile
201 Kontext "TabLinienstile"
202 Call DialogTest ( TabLinienstile )
203 '/// Verify that the 'Line Style' listbox is not empty
204 printlog " Verify that the 'Line Style' listbox is not empty"
205 If Linienstil.GetItemCount < 1 then
206 warnlog "The listbox for styles is empty"
208 '/// Choose first entry in left 'Type' listbox
209 printlog " Choose second entry in left 'Type' listbox"
211 '/// Choose second entry in right 'Type' listbox
212 printlog " Choose second entry in right 'Type' listbox"
214 '/// Increase left 'Number'
215 printlog " Increase left 'Number'"
217 '/// Decrease right 'Number'
218 printlog " Decrease right 'Number'"
220 '/// Increase left 'Length'
221 printlog " Increase left 'Length'"
223 '/// Decrease right 'Length'
224 printlog " Decrease right 'Length'"
226 '/// Increase 'Spacing'
227 printlog " Increase 'Spacing'"
229 '/// Check 'Fit to line width'
230 printlog " Check 'Fit to line width'"
232 '/// Press 'Add' button
233 printlog " Press 'Add' button"
236 Call DialogTest ( NameDlg )
237 '/// Enter string 'Testlinestyle'
238 printlog " Enter string 'Testlinestyle'"
239 Eingabefeld.SetText "Testlinestyle"
240 '/// Close 'Name' dialog with 'Cancel'
241 printlog " Close 'Name' dialog with 'Cancel'"
243 Kontext "TabLinienstile"
244 '/// Press 'Modify' button
245 printlog " Press 'Modify' button"
248 '/// Close 'Name' dialog with 'Cancel'
249 printlog " Close 'Name' dialog with 'Cancel'"
251 Kontext "TabLinienstile"
252 '/// Press 'Delete' button
253 printlog " Press 'Delete' button"
256 '/// Close messagebox with 'No'
257 printlog " Close messagebox with 'No'"
259 Kontext "TabLinienstile"
260 '/// Press 'Open' button
261 printlog " Press 'Open' button"
264 '/// Close 'Open' dialog with 'Cancel'
265 printlog " Close 'Open' dialog with 'Cancel'"
267 Kontext "TabLinienstile"
268 '/// Press 'Save' button
269 printlog " Press 'Save' button"
271 Kontext "SpeichernDlg"
272 '/// Close 'Save' dialog with 'Cancel'
273 printlog " Close 'Save' dialog with 'Cancel'"
275 Kontext "TabLinienstile"
278 '/// Switch to tabpage 'Arrow Styles'
279 printlog " Switch to tabpage 'Arrow Styles'"
281 active.setpage TabLinienenden
283 If Active.Exists then
287 Kontext "TabLinienenden"
288 Call DialogTest ( TabLinienenden )
289 '/// Set 'Titel' to 'Test'
290 printlog " Set 'Titel' to 'Test'"
291 'To get the Office back to the default the title must be memorized for restoring
292 sTitle = Textfeld.GetText
293 Textfeld.SetText "Test"
294 '/// Verify that the 'Arrow style' listbox is not empty
295 printlog " Verify that the 'Arrow style' listbox is not empty"
296 If Liste.GetItemCount < 1 then
297 warnlog "The style listbox is empty"
299 '/// Press 'Add' button
300 printlog " Press 'Add' button"
303 '/// Enter string 'Testlinestyle'
304 printlog " Enter string 'Testlinestyle'"
305 Eingabefeld.SetText "Testlinestyle"
306 '/// Close 'Name' dialog with 'Cancel'
307 printlog " Close 'Name' dialog with 'Cancel'"
309 Kontext "TabLinienenden"
310 '/// Press 'Modify' button
311 printlog " Press 'Modify' button"
313 '/// Press 'Modify' button again
314 printlog " Press 'Modify' button again"
316 '/// Close messagebox with 'OK'
317 printlog " Close messagebox with 'OK'"
319 if Active.exists (2) then
323 '/// Enter original title to restore defaults
324 printlog " Enter original title to restore defaults"
325 Eingabefeld.SetText sTitle
326 '/// Close 'Name' dialog with 'OK'
327 printlog " Close 'Name' dialog with 'OK'"
329 Kontext "TabLinienenden"
330 '/// Press 'Delete' button
331 printlog " Press 'Delete' button"
334 '/// Close messagebox with 'No'
335 printlog " Close messagebox with 'No'"
337 Kontext "TabLinienenden"
338 '/// Press 'Open' button
339 printlog " Press 'Open' button"
343 If Active.Exists then
347 '/// Close 'Open' dialog with 'Cancel'
348 printlog " Close 'Open' dialog with 'Cancel'"
350 Kontext "TabLinienenden"
351 '/// Press 'Save' button
352 printlog " Press 'Save' button"
354 Kontext "SpeichernDLG"
355 '/// Close 'Save' dialog with 'Cancel'
356 printlog " Close 'Save' dialog with 'Cancel'"
358 Kontext "TabLinienenden"
359 '/// Close dialog with 'Cancel'
360 printlog " Close dialog with 'Cancel'"
361 TabLinienenden.Cancel
363 printlog " Close document"
365 hFileDelete( gLastWorkFile )
369 '-----------------------------------------------------------
371 testcase tFormatGraphicArea
372 '///<u><b>Format - - Graphic - Area</b></u>
374 '/// Load document from 'gTesttoolPath + "spreadsheet\required\input\twoobjects.ods"'
375 printlog " Load document from 'gTesttoolPath + spreadsheet\required\input\twoobjects.ods"
376 hFileOpenLocally( gTesttoolPath & "spreadsheet\required\input\twoobjects.ods" )
377 '/// Select first object by Navigator
378 printlog " Select first object by Navigator"
379 Call fNavigatorSelectObject ("drawing objects", 1)
380 '/// Open 'Format – Area' dialog by 'Format – Area'
381 printlog " Open 'Format – Area' dialog by 'Format – Area'"
385 '/// Switch to tabpage 'Area'
386 printlog " Switch to tabpage 'Area'"
388 active.SetPage TabArea
390 '/// Choose first entry (None) in 'Fill' listbox
391 printlog " Choose first entry (None) in 'Fill' listbox"
393 Call DialogTest ( TabArea,1 )
394 '/// Choose second entry (Color) in 'Fill' listbox
395 printlog " Choose second entry (Color) in 'Fill' listbox"
397 Call DialogTest ( TabArea,2 )
398 '/// Verify that the 'Color' listbox has items
399 printlog " Verify that the 'Color' listbox has items"
400 If ColourList.GetItemCount < 1 then
401 warnlog "The color list is empty"
403 '/// Choose third entry (Gradient) in 'Fill' listbox
404 printlog " Choose third entry (Gradient) in 'Fill' listbox"
406 Call DialogTest ( TabArea,3 )
407 '/// Verify that the 'Gradient' listbox has items
408 printlog " Verify that the 'Gradient' listbox has items"
409 If GradientList.GetItemCount < 1 then
410 warnlog "The gradient list is empty"
412 '/// Uncheck 'Automatic'
413 printlog " Uncheck 'Automatic'"
415 '/// Increase 'Increments'
416 printlog " Increase 'Increments'"
418 '/// Choose fourth entry (Hatching) in 'Fill' listbox
419 printlog " Choose fourth entry (Hatching) in 'Fill' listbox"
421 Call DialogTest ( TabArea,4 )
422 '/// Verify that the 'Hatching' listbox has items
423 printlog " Verify that the 'Hatching' listbox has items"
424 If HatchingList.GetItemCount < 1 then
425 warnlog "The hatching list is empty"
427 '/// Check 'Background color'
428 printlog " Check 'Background color'"
429 BackgroundColour.Check
430 '/// Verify that the 'Color' listbox has items
431 printlog " Verify that the 'Color' listbox has items"
432 If BackgroundColourList.GetItemCount < 1 then
433 warnlog "The color list is empty"
435 '/// Choose fifth entry (Bitmaps) in 'Fill' listbox
436 printlog " Choose fifth entry (Bitmaps) in 'Fill' listbox"
438 Call DialogTest ( TabArea,5 )
439 '/// Verify that the 'Bitmap' listbox has items
440 printlog " Verify that the 'Bitmap' listbox has items"
441 If BitmapList.GetItemCount < 1 then
442 warnlog "The bitmap list is empty"
444 '/// Uncheck 'Original'
445 printlog " Uncheck 'Original'"
447 '/// Increase 'Width'
448 printlog " Increase 'Width'"
450 '/// Check 'Relative'
451 printlog " Check 'Relative'"
453 '/// Decrease 'Height'
454 printlog " Decrease 'Height'"
457 printlog " Check 'Tile'"
459 '/// Increase 'X Offset'
460 printlog " Increase 'X Offset'"
462 '/// Increase 'Y Offset'
463 printlog " Increase 'Y Offset'"
466 printlog " Uncheck 'Tile'"
468 '/// Uncheck 'AutoFit'
469 printlog " Uncheck 'AutoFit'"
472 printlog " Check 'Tile'"
475 printlog " Check 'Row'"
478 printlog " Check 'Column'"
480 '/// Increase percentvalue
481 printlog " Increase percentvalue"
485 '/// Switch to tabpage 'Shadow'
486 printlog " Switch to tabpage 'Shadow'"
488 active.SetPage TabSchatten
489 kontext "TabSchatten"
490 Call DialogTest ( TabSchatten )
491 '/// Check 'Use shadow'
492 printlog " Check 'Use shadow'"
494 '/// Increase 'Distance'
495 printlog " Increase 'Distance'"
497 '/// Verify that the 'Color' listbox has items
498 printlog " Verify that the 'Color' listbox has items"
499 if Farbe.getItemCount < 1 then
500 warnlog "The listbox for colors is empty"
502 '/// Increase 'Transparency'
503 printlog " Increase 'Transparency'"
507 '/// Switch to tabpage 'Transparency'
508 printlog " Switch to tabpage 'Transparency'"
510 active.SetPage TabTransparenz
511 Kontext "TabTransparenz"
512 Call DialogTest ( TabTransparenz )
513 '/// Check 'Transparency'
514 printlog " Check 'Transparency'"
515 LineareTransparenz.Check
516 '/// Increase percentvalue
517 printlog " Increase percentvalue"
518 MFLinTransparenz.More
519 '/// Check 'Gradient'
520 printlog " Check 'Gradient'"
521 Transparenzverlauf.Check
522 '/// Choose last entry (Square) for 'Type'
523 printlog " Choose last entry (Square) for 'Type'"
524 TransparenzverlaufTyp.Select 6
525 '/// Increase 'Center X'
526 printlog " Increase 'Center X'"
528 '/// Decrease 'Center Y'
529 printlog " Decrease 'Center Y'"
531 '/// Increase 'Angle'
532 printlog " Increase 'Angle'"
534 '/// Increase 'Border'
535 printlog " Increase 'Border'"
537 '/// Increase 'Start value'
538 printlog " Increase 'Start value'"
540 '/// Decrease 'End value'
541 printlog " Decrease 'End value'"
545 '/// Switch to tabpage 'Colors'
546 printlog " Switch to tabpage 'Colors'"
548 active.SetPage TabFarben
550 Call DialogTest ( TabFarben )
551 '/// Enter colorname 'Color_added_by_Testtool'
552 printlog " Enter colorname 'Color_added_by_Testtool'"
553 FarbName.SetText "Color_added_by_Testtool"
554 '/// Verify that the color listbox is not empty
555 printlog " Verify that the color listbox is not empty"
556 if Farbe.getItemCount < 1 then
557 warnlog "The listbox for colors is empty"
560 printlog " Choose RGB"
563 printlog " Increase 'R'"
566 printlog " Decrease 'G'"
569 printlog " Increase 'B'"
572 printlog " Choose 'CMYK'"
575 printlog " Increase 'C'"
578 printlog " Decrease 'M'"
581 printlog " Increase 'Y'"
584 printlog " Decrease 'K'"
586 '/// Press 'Add' button
587 printlog " Press 'Add' button"
589 '/// Press 'Modify' button
590 printlog " Press 'Modify' button"
592 '/// Press 'Edit' button
593 printlog " Press 'Edit' button"
596 Call DialogTest ( FarbeDlg )
598 printlog " Increase 'Cyan'"
600 '/// Decrease 'Magenta'
601 printlog " Decrease 'Magenta'"
603 '/// Increase 'Yellow'
604 printlog " Increase 'Yellow'"
607 printlog " Decrease 'Key'"
610 printlog " Increase 'Red'"
612 '/// Decrease 'Green'
613 printlog " Decrease 'Green'"
616 printlog " Increase 'Blue'"
619 printlog " Increase 'Hue'"
621 '/// Decrease 'Saturation'
622 printlog " Decrease 'Saturation'"
624 '/// Increase 'Brightness'
625 printlog " Increase 'Brightness'"
627 '/// Press left arrow button
628 printlog " Press left arrow button"
630 '/// Press right arrow button
631 printlog " Press right arrow button"
633 '/// Close dialog with 'Cancel'
634 printlog " Close dialog with 'Cancel'"
637 '/// Press 'Delete' button
638 printlog " Press 'Delete' button"
640 '/// Close messagebox with 'Yes'
641 printlog " Close messagebox with 'Yes'"
645 '/// Press 'Open' button to open 'File open' dialog
646 printlog " Press 'Open' button to open 'File open' dialog"
648 '/// A messagebox that the modified list is not saved appears. Click 'No'
649 printlog " A messagebox that the modified list is not saved appears. Click 'No'"
652 '/// Close 'Open' dialog with 'Cancel'
653 printlog " Close 'Open' dialog with 'Cancel'"
657 '/// Press 'Save' button to open 'Save as' dialog
658 printlog " Press 'Save' button to open 'Save as' dialog"
660 Kontext "SpeichernDLG"
661 '/// Close 'Save' dialog with 'Cancel'
662 printlog " Close 'Save' dialog with 'Cancel'"
666 '/// Switch to tabpage 'Gradients'
667 printlog " Switch to tabpage 'Gradients'"
669 active.SetPage TabFarbverlaeufe
670 Kontext "TabFarbverlaeufe"
671 '/// Choose last entry (Rectangular) in 'Type' listbox
672 printlog " Choose last entry (Rectangular) in 'Type' listbox"
674 '/// Increase 'Center X'
675 printlog " Increase 'Center X'"
677 '/// Decrease 'Center Y'
678 printlog " Decrease 'Center Y'"
680 '/// Increase 'Angle'
681 printlog " Increase 'Angle'"
683 '/// Increase 'Border'
684 printlog " Increase 'Border'"
686 '/// Choose second entry in 'From' listbox
687 printlog " Choose second entry in 'From' listbox"
689 '/// Decrease percentvalue
690 printlog " Decrease percentvalue"
692 '/// Choose fifth entry in 'To' listbox
693 printlog " Choose fifth entry in 'To' listbox"
695 '/// Decrease percentvalue
696 printlog " Decrease percentvalue"
698 '/// Press 'Add' button to open 'Name' dialog
699 printlog " Press 'Add' button to open 'Name' dialog"
702 '/// Close 'name' dialog with 'Cancel'
703 printlog " Close 'name' dialog with 'Cancel'"
705 Kontext "TabFarbverlaeufe"
706 '/// Press 'Modify' button to open 'Name' dialog
707 printlog " Press 'Modify' button to open 'Name' dialog"
710 '/// Close 'name' dialog with 'Cancel'
711 printlog " Close 'name' dialog with 'Cancel'"
713 Kontext "TabFarbverlaeufe"
714 '/// Press 'Delete' button
715 printlog " Press 'Delete' button"
717 '/// Close messagebox with 'No'
718 printlog " Close messagebox with 'No'"
721 Kontext "TabFarbverlaeufe"
722 '/// Press 'Open' button to open 'File open' dialog
723 printlog " Press 'Open' button to open 'File open' dialog"
726 '/// Close 'Open' dialog with 'Cancel'
727 printlog " Close 'Open' dialog with 'Cancel'"
729 Kontext "TabFarbverlaeufe"
730 '/// Press 'Save' button to open 'Save as' dialog
731 printlog " Press 'Save' button to open 'Save as' dialog"
733 Kontext "SpeichernDLG"
734 '/// Close 'Save' dialog with 'Cancel'
735 printlog " Close 'Save' dialog with 'Cancel'"
739 '/// Switch to tabpage 'Hatching'
740 printlog " Switch to tabpage 'Hatching'"
742 active.SetPage TabSchraffuren
743 Kontext "TabSchraffuren"
744 '/// If a messagebox appears, close messagebox with 'Cancel'
745 printlog " If a messagebox appears, close messagebox with 'Cancel'"
748 If Active.Exists then
752 Kontext "TabSchraffuren"
753 '/// Verify that there are sample hatchings
754 printlog " Verify that there are sample hatchings"
755 If Tabelle.GetItemCount < 1 then
756 warnlog "There are no hatchings available"
758 '/// Decrease 'Spacing'
759 printlog " Decrease 'Spacing'"
761 '/// Increase 'Angle'
762 printlog " Increase 'Angle'"
764 '/// Verify that the 'Line type' listbox has three entries
765 printlog " Verify that the 'Line type' listbox has three entries"
766 If Linientyp.GetItemCount < 1 then
767 warnlog "There are no linetypes available"
769 '/// Verify that the color listbox is not empty
770 printlog " Verify that the color listbox is not empty"
771 If Linienfarbe.GetItemCount < 1 then
772 warnlog "There are no linecolors available"
774 '/// Press 'Add' button to open 'Name' dialog
775 printlog " Press 'Add' button to open 'Name' dialog"
777 '/// Close 'name' dialog with 'Cancel'
778 printlog " Close 'name' dialog with 'Cancel'"
781 Kontext "TabSchraffuren"
782 '/// Press 'Modify' button to open 'Name' dialog
783 printlog " Press 'Modify' button to open 'Name' dialog"
785 '/// Close 'name' dialog with 'Cancel'
786 printlog " Close 'name' dialog with 'Cancel'"
789 Kontext "TabSchraffuren"
790 '/// Press 'Delete' button
791 printlog " Press 'Delete' button"
793 '/// Close messagebox with 'No'
794 printlog " Close messagebox with 'No'"
796 if Active.exists then
799 Kontext "TabSchraffuren"
800 '/// Press 'Open' button to open 'File open' dialog
801 printlog " Press 'Open' button to open 'File open' dialog"
804 '/// Close 'Open' dialog with 'Cancel'
805 printlog " Close 'Open' dialog with 'Cancel'"
807 Kontext "TabSchraffuren"
808 '/// Press 'Save' button to open 'Save as' dialog
809 printlog " Press 'Save' button to open 'Save as' dialog"
811 '/// Close 'Save' dialog with 'Cancel'
812 printlog " Close 'Save' dialog with 'Cancel'"
813 Kontext "SpeichernDLG"
817 '/// Switch to tabpage 'Bitmaps'
818 printlog " Switch to tabpage 'Bitmaps'"
820 active.SetPage TabBitmap
822 '/// If a messagebox appears, close messagebox with 'Cancel'
823 printlog " If a messagebox appears, close messagebox with 'Cancel'"
826 If Active.Exists then
831 Call DialogTest ( TabBitmap )
832 '/// Verify that the listbox for 'Foreground color' is not empty
833 printlog " Verify that the listbox for 'Foreground color' is not empty"
834 If Vordergrund.GetItemCount < 1 then
835 warnlog "There are no colors available"
837 '/// Verify that the listbox for Background color' is not empty
838 printlog " Verify that the listbox for Background color' is not empty"
839 If Hintergrund.GetItemCount < 1 then
840 warnlog "There are no colors available"
842 '/// Verify that the listbox for Bitmaps is not empty
843 printlog " Verify that the listbox for Bitmaps is not empty"
844 If Tabelle.GetItemCount < 1 then
845 warnlog "There are no Bitmaps available"
847 '/// Press 'Add' button to open 'Name' dialog
848 printlog " Press 'Add' button to open 'Name' dialog"
850 '/// Close 'name' dialog with 'Cancel'
851 printlog " Close 'name' dialog with 'Cancel'"
855 '/// Press 'Modify' button to open 'Name' dialog
856 printlog " Press 'Modify' button to open 'Name' dialog"
858 '/// Close 'name' dialog with 'Cancel'
859 printlog " Close 'name' dialog with 'Cancel'"
863 '/// Press 'Import' button to open 'Import' dialog
864 printlog " Press 'Import' button to open 'Import' dialog"
866 Kontext "GrafikEinfuegenDlg"
867 '/// Close 'Import' dialog with 'Cancel'
868 printlog " Close 'Import' dialog with 'Cancel'"
869 GrafikEinfuegenDlg.Cancel
871 '/// Press 'Delete' button
872 printlog " Press 'Delete' button"
874 '/// Close messagebox with 'No'
875 printlog " Close messagebox with 'No'"
877 if Active.exists then
881 '/// Press 'Open' button to open 'File open' dialog
882 printlog " Press 'Open' button to open 'File open' dialog"
884 '/// If a messagebox appears, close messagebox with 'No'
885 printlog " If a messagebox appears, close messagebox with 'No'"
887 '/// Close 'Open' dialog with 'Cancel'
888 printlog " Close 'Open' dialog with 'Cancel'"
891 '/// Press 'Save' button to open 'Save as' dialog
892 printlog " Press 'Save' button to open 'Save as' dialog"
894 Kontext "SpeichernDLG"
895 '/// Close 'Save' dialog with 'Cancel'
896 printlog " Close 'Save' dialog with 'Cancel'"
900 '/// Close 'Area' dialog with 'Cancel'
901 printlog " Close 'Area' dialog with 'Cancel'"
906 printlog " Close document"
908 hFileDelete( gLastWorkFile )
912 '-----------------------------------------------------------
914 testcase tFormatGraphicText
915 '///<u><b>Format - Graphic - Text</b></u>
917 '/// Load document from 'gTesttoolPath + "spreadsheet\required\input\twoobjects.ods"'
918 printlog " Load document from 'gTesttoolPath + spreadsheet\required\input\twoobjects.ods"
919 hFileOpenLocally( gTesttoolPath & "spreadsheet\required\input\twoobjects.ods" )
920 '/// Select first object by Navigator
921 printlog " Select first object by Navigator"
922 Call fNavigatorSelectObject ("drawing objects", 1)
923 '/// Open 'Format – Line' dialog by 'Format – Graphic – Line'
924 printlog " Open 'Format – Text' dialog by 'Format – Graphic – Text'"
926 '/// Switch to tabpage 'Text'
927 printlog " Switch to tabpage 'Text'"
929 Active.SetPage TabText
931 Call DialogTest ( TabText )
932 '/// Verify that 'Fit width to text' is disabled
933 printlog " Verify that 'Fit width to text' is disabled"
934 If BreiteAnTextAnpassen.IsEnabled then
935 warnlog "Fit width to text is enabled"
937 '/// Verify that 'Fit heights to text' is disabled
938 printlog " Verify that 'Fit heights to text' is disabled"
939 If HoeheAnTextAnpassen.IsEnabled then
940 warnlog "Fit heights to text is enabled"
942 '/// Verify that 'Word wrap text in shape' is disabled
943 printlog " Verify that 'Word wrap text in shape' is disabled"
944 If WordWrap.IsEnabled then
945 warnlog "Word wrap text in shape is enabled"
947 '/// Verify that 'Resize shape to fit text' is disabled
948 printlog " Verify that 'Resize shape to fit text' is disabled"
949 If ResizeShape.IsEnabled then
950 warnlog "Resize shape to fit textt is enabled"
952 '/// Uncheck 'Fit to frame'
953 printlog " Uncheck 'Fit to frame'"
954 AmRahmenAnpassen.UnCheck
955 '/// Uncheck 'Adjust to contour'
956 printlog " Uncheck 'Adjust to contour'"
958 '/// Increase 'Spacing Left'
959 printlog " Increase 'Spacing Left'"
961 '/// Increase 'Spacing Right'
962 printlog " Increase 'Spacing Right'"
964 '/// Increase 'Spacing Top'
965 printlog " Increase 'Spacing Top'"
967 '/// Increase 'Spacing Bottom'
968 printlog " Increase 'Spacing Bottom'"
970 '/// Check 'Full Width'
971 printlog " Check 'Full Width'"
974 '/// Switch to tabpage 'Text Animation'
975 printlog " Switch to tabpage 'Text Animation'"
977 Active.SetPage TabLauftext
978 Kontext "TabLauftext"
979 Call DialogTest ( TabLauftext )
980 '/// Choose 'Effect' 4 (Scroll back and forth)
982 '/// Click button 'Up'
983 printlog " Click button 'Up'"
985 '/// Click button 'Left'
986 printlog " Click button 'Left'"
988 '/// Click button 'Down'
989 printlog " Click button 'Down'"
991 '/// Click button 'Right'
992 printlog " Click button 'Right'"
994 '/// UnCheck 'Start inside'
995 printlog " UnCheck 'Start inside'"
996 TextSichtbarBeimStarten.UnCheck
997 '/// UnCheck 'Text visible when exiting'
998 printlog " UnCheck 'Text visible when exiting'"
999 TextSichtbarBeimBeenden.UnCheck
1000 '/// Uncheck 'Continous'
1001 printlog " Uncheck 'Continous'"
1003 '/// Increase number
1004 printlog " Increase number"
1007 printlog " Check 'Pixels'"
1009 '/// Increase number
1010 printlog " Increase number"
1012 '/// Uncheck 'Automatic'
1013 printlog " Uncheck 'Automatic'"
1016 printlog " Increase time"
1019 '/// Close dialog with 'Cancel'
1020 printlog " Close dialog with 'Cancel'"
1023 printlog " Close document"
1025 hFileDelete( gLastWorkFile )
1029 '-----------------------------------------------------------
1031 testcase tFormatGraphicPoints
1032 '///<u><b>Format - Graphic - Points</b></u>
1034 '/// Load document from 'gTesttoolPath + "spreadsheet\required\input\twoobjects.ods"'
1035 printlog " Load document from 'gTesttoolPath + spreadsheet\required\input\twoobjects.ods"
1036 hFileOpenLocally( gTesttoolPath & "spreadsheet\required\input\twoobjects.ods" )
1037 '/// Select first object by Navigator
1038 printlog " Select first object by Navigator"
1039 Call fNavigatorSelectObject ("drawing objects", 1)
1040 '/// Toggle 'Points' by 'Format - Graphic - Points
1044 printlog " Close document"
1046 hFileDelete( gLastWorkFile )
1050 '-----------------------------------------------------------