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: i_pengine1.inc,v $
13 '* last change: $Author: rt $ $Date: 2008-08-28 11:43:41 $
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 : wolfram.garten@sun.com
36 '* short description : Tests the Engine for Presentation
38 '*******************************************************************
40 ' #1 tiPengineTabEntrance
41 ' #1 tiPengineTabEmphasis
43 ' #1 tiPengineTabMotionPaths
44 ' #1 tiPengineSlideTransition
45 ' #1 tiPengineTabpageEntrance2
46 ' #1 tiPengineTabPageEmphasis2
47 ' #1 tiPengineTabPageExit2
48 ' #1 tiPengineTabPageMotionPaths2
50 '\*******************************************************************
52 testcase tiPengineTabEntrance
65 dim Effectname1 as string
66 dim StartName1 as string
67 dim PropertyName1 as string
68 dim UsedEffect as string
69 dim NewEffect as string
71 '/// open application ///'
73 '/// create textbox with text ///'
74 Call hTextrahmenErstellen ("Test text to test text effects", 35, 35, 70, 70 )
75 '/// Slide Show->Custom Animation... ///'
76 SlideShowCustomAnimation
78 '/// click button 'Add...' ///'
80 '/// Dialog 'Custom Animation' comes up ///'
83 '/// Switch to TabPage: Entrance ///'
84 active.setPage(TabEntrance)
86 if TabEntrance.exists(5) then
87 DialogTest(TabEntrance)
88 AutomaticPreview.UnCheck
89 Printlog "Testing effects in - TabEntrance"
90 i = Effects.GetItemCount
93 Effects.TypeKeys "<HOME>"
96 Printlog "Effect Nr: " + (Effects.GetSelIndex -1) + ". Name: " + Effects.GetSelText
97 Effectname1 = Effects.GetSelText
98 NewEffect = Effectname1
100 if UsedEffect = NewEffect then
101 Warnlog "Wrong effect? The recently tested Effect was: " + Effects.GetSelIndex + ": " + UsedEffect + " and the new one: " + Effects.GetSelIndex + ": " + NewEffect
103 UsedEffect = NewEffect
105 if AutomaticPreview.IsChecked = TRUE then sleep 1
106 d = Effects.GetSelIndex
109 if EffectStart.isEnabled then
110 t = EffectStart.GetItemCount
113 printlog "EffectStart selected " + EffectStart.GetSelText
114 StartName1 = EffectStart.GetSelText
115 if EffectProperty.Exists then
116 if EffectProperty.isEnabled then
117 if EffectProperty.isVisible then
118 printlog "EffectProperty.!"
119 w = EffectProperty.GetItemCount
122 EffectProperty.Select l
124 PropertyName1 = EffectProperty.GetSelText
125 printlog "Properties for the effect: " + PropertyName1
126 ' EffectSlideShow.Click
128 ' kontext "DocumentPresentation"
129 ' if DocumentPresentation.Exists (15) then
130 ' DocumentPresentation.TypeKeys "<Space>"
131 ' if DocumentPresentation.Exists (15) then
132 ' DocumentPresentation.TypeKeys "<Space>"
135 ' if DocumentPresentation.Exists (15) then
136 ' DocumentPresentation.TypeKeys "<Escape>"
139 ' Warnlog "Effect: " + Effectname1 + " didn't work when it started with: " + StartName1 + "and ended with: " + PropertyName1
147 elseif EffectDirection.Exists then
148 if EffectDirection.isEnabled then
149 if EffectDirection.isVisible then
150 w = EffectDirection.GetItemCount
153 EffectDirection.Select l
154 PropertyName1 = EffectDirection.GetSelText
155 printlog "Properties for the effect: " + PropertyName1
157 ' EffectSlideShow.Click
159 ' kontext "DocumentPresentation"
160 ' if DocumentPresentation.Exists (15) then
161 ' DocumentPresentation.TypeKeys "<Space>"
162 ' if DocumentPresentation.Exists (15) then
163 ' DocumentPresentation.TypeKeys "<Space>"
166 ' if DocumentPresentation.Exists (15) then
167 ' DocumentPresentation.TypeKeys "<Escape>"
170 ' warnlog "Effect: " + Effectname1 + " didn't work when it started with: " + StartName1 + "and ended with: " + PropertyName1
176 warnlog "EffectDirection.isEnabled AND EffectDirection.isVisible, but no items selectable? Effect was: " + Effectname1
181 kontext "EffectProperty"
189 Printlog "Presentation didn't end. Error?"
191 kontext "TabEntrance"
192 Effects.TypeKeys "<DOWN>", e '/// Select the next entry ///'
193 p = Effects.GetSelIndex
196 kontext "TabEntrance"
199 if Speed.GetItemCount = 0 then
200 warnlog " 'Speed' has 0 entries. Check it."
203 e = Int(Speed.GetItemCount * Rnd)
208 qaerrorlog "#i89498, Custom animation speed field is greyed out"
211 Printlog "Test of Entrance-list ended."
215 '/// Switch to TabPage: Entrance ///'
216 active.setPage(TabEntrance)
217 kontext "TabEntrance"
218 if TabEntrance.exists(5) then
220 '/// Close dialog 'Custom Animation' with 'OK' ///'
223 warnlog "Error when switching Tab"
228 warnlog "Impress:Tasks Pane:Custom Animation:Add... button didnt work."
231 EffectAutomaticPreview.Check
232 '/// click button 'Remove' ///'
234 '/// close application ///'
238 '------------------------------------------------------------------------------------------------------------------------------------------------------------------------
240 testcase tiPengineTabEmphasis
241 dim bError as boolean
253 dim Effectname1 as string
254 dim StartName1 as string
255 dim PropertyName1 as string
256 dim UsedEffect as string
257 dim NewEffect as string
259 '/// open application ///'
261 '/// create textbox with text ///'
262 Call hTextrahmenErstellen ("Test text to test text effects", 35, 35, 70, 70 )
263 '/// Slide Show->Custom Animation... ///'
264 SlideShowCustomAnimation
266 '/// click button 'Add...' ///'
268 '/// Dialog 'Custom Animation' comes up ///'
271 '/// Switch to TabPage: Emphasis ///'
273 active.setPage(TabEmphasis)
274 kontext "TabEmphasis"
275 if TabEmphasis.exists(10) then
276 Printlog "Testing effects in - TabEmphasis"
277 i = Effects.GetItemCount
280 Effects.TypeKeys "<HOME>"
283 Printlog "Effect Nr: " + (Effects.GetSelIndex -1) + ". Name: " + Effects.GetSelText
284 Effectname1 = Effects.GetSelText
285 if AutomaticPreview.IsChecked = TRUE then sleep 1
286 d = Effects.GetSelIndex
289 if EffectStart.isEnabled then
290 t = EffectStart.GetItemCount
293 StartName1 = EffectStart.GetSelText
294 printlog "EffectStart selected " + StartName1
296 if EffectProperty.Exists then
297 if EffectProperty.isEnabled then
298 if EffectProperty.isVisible then
299 w = EffectProperty.GetItemCount
302 EffectProperty.Select l
303 PropertyName1 = EffectProperty.GetSelText
304 printlog "Properties for the effect: " + PropertyName1
306 ' EffectSlideShow.Click
308 ' kontext "DocumentPresentation"
309 ' if DocumentPresentation.Exists (15) then
310 ' DocumentPresentation.TypeKeys "<Space>"
311 ' if DocumentPresentation.Exists (15) then
312 ' DocumentPresentation.TypeKeys "<Space>"
315 ' if DocumentPresentation.Exists (15) then
316 ' DocumentPresentation.TypeKeys "<Escape>"
319 ' Warnlog "Effect: " + Effectname1 + " didn't work when it started with: " + StartName1 + "and ended with: " + PropertyName1
326 Printlog "No effect properties for " + StartName1
328 ' EffectSlideShow.Click
330 ' kontext "DocumentPresentation"
331 ' if DocumentPresentation.Exists (15) then
332 ' DocumentPresentation.TypeKeys "<Space>"
333 ' if DocumentPresentation.Exists (15) then
334 ' DocumentPresentation.TypeKeys "<Space>"
337 ' if DocumentPresentation.Exists (15) then
338 ' DocumentPresentation.TypeKeys "<Escape>"
341 ' Warnlog "Effect: " + Effectname1 + " didn't work when it started with: " + StartName1
354 Printlog "Presentation didn't end. Error?"
356 '/// Switch to TabPage: Emphasis ///'
358 active.setPage(TabEmphasis)
359 kontext "TabEmphasis"
360 Effects.TypeKeys "<DOWN>", e + 1 '/// Select the next entry ///'
361 p = Effects.GetSelIndex
364 kontext "TabEmphasis"
367 if Speed.GetItemCount = 0 then
368 warnlog " 'Speed' has 0 entries. Check it."
371 e = Int(Speed.GetItemCount * Rnd)
376 Printlog "Test of Entrance-list ended."
380 warnlog "Impress:Tasks Pane:Custom Animation:TabExit tabPage doesnt work."
384 '/// Switch to TabPage: Entrance ///'
385 active.setPage(TabEntrance)
386 kontext "TabEntrance"
387 if TabEntrance.exists(5) then
389 '/// Close dialog 'Custom Animation' with 'OK' ///'
392 warnlog "Error when switching Tab"
396 EffectAutomaticPreview.Check
397 '/// click button 'Remove' ///'
399 '/// close application ///'
403 '------------------------------------------------------------------------------------------------------------------------------------------------------------------------
405 testcase tiPengineTabExit
406 dim bError as boolean
418 dim Effectname1 as string
419 dim StartName1 as string
420 dim PropertyName1 as string
421 dim UsedEffect as string
422 dim NewEffect as string
424 '/// open application ///'
426 '/// create textbox with text ///'
427 Call hTextrahmenErstellen ("Test text to test text effects", 35, 35, 70, 70 )
428 '/// Slide Show->Custom Animation... ///'
429 SlideShowCustomAnimation
431 '/// click button 'Add...' ///'
433 '/// Dialog 'Custom Animation' comes up ///'
436 '/// Switch to TabPage: Exit ///'
437 active.setPage(TabExit)
439 if TabExit.exists(5) then
440 Printlog "Testing effects in - TabExit"
441 i = Effects.GetItemCount
444 Effects.TypeKeys "<HOME>"
447 Printlog "Effect Nr: " + (Effects.GetSelIndex -1) + ". Name: " + Effects.GetSelText
448 Effectname1 = Effects.GetSelText
449 if AutomaticPreview.IsChecked = TRUE then sleep 1
450 d = Effects.GetSelIndex
454 if EffectStart.isEnabled then
455 t = EffectStart.GetItemCount
458 StartName1 = EffectStart.GetSelText
459 printlog "EffectStart selected " + StartName1
461 if EffectProperty.isEnabled then
462 if EffectProperty.isVisible then
463 if EffectProperty.isVisible then
464 w = EffectProperty.GetItemCount
467 EffectProperty.Select l
468 PropertyName1 = EffectProperty.GetSelText
469 printlog "Properties for the effect: " + PropertyName1
471 ' EffectSlideShow.Click
473 ' kontext "DocumentPresentation"
474 ' if DocumentPresentation.Exists (5) then
475 ' DocumentPresentation.TypeKeys "<Space>"
476 ' if DocumentPresentation.Exists (15) then
477 ' DocumentPresentation.TypeKeys "<Space>"
479 ' if DocumentPresentation.Exists (15) then
480 ' DocumentPresentation.TypeKeys "<Escape>"
483 ' Warnlog "Effect: " + Effectname1 + " didn't work when it started with: " + StartName1 + "and ended with: " + PropertyName1
490 ' Printlog "No effect properties for " + StartName1
492 ' EffectSlideShow.Click
494 ' kontext "DocumentPresentation"
495 ' if DocumentPresentation.Exists (5) then
496 ' DocumentPresentation.TypeKeys "<Space>"
498 ' DocumentPresentation.TypeKeys "<Space>"
499 ' DocumentPresentation.TypeKeys "<Escape>"
501 ' Warnlog "Effect: " + Effectname1 + " didn't work when it started with: " + StartName1
515 Printlog "Presentation didn't end. Error?"
518 '/// Switch to TabPage: Exit ///'
519 active.setPage(TabExit)
521 Effects.TypeKeys "<DOWN>", e + 1 '/// Select the next entry ///'
522 p = Effects.GetSelIndex
523 If p = d Then e = i 'p > 2 AND
528 Speed.Typekeys "<DOWN>", (Int(Speed.GetItemCount * Rnd) + 1)
529 Printlog "Test of Entrance-list ended."
534 warnlog "Impress:Tasks Pane:Custom Animation:TabExit tabPage doesnt work."
538 '/// Switch to TabPage: Entrance ///'
539 active.setPage(TabEntrance)
540 kontext "TabEntrance"
541 if TabEntrance.exists(5) then
543 '/// Close dialog 'Custom Animation' with 'OK' ///'
546 warnlog "Error when switching Tab"
550 EffectAutomaticPreview.Check
551 '/// click button 'Remove' ///'
553 '/// close application ///'
557 '------------------------------------------------------------------------------------------------------------------------------------------------------------------------
559 testcase tiPengineTabMotionPaths
560 dim bError as boolean
572 dim Effectname1 as string
573 dim StartName1 as string
574 dim PropertyName1 as string
575 dim UsedEffect as string
576 dim NewEffect as string
578 '/// open application ///'
580 '/// create textbox with text ///'
581 Call hTextrahmenErstellen ("Test text to test text effects", 35, 35, 70, 70 )
582 '/// Slide Show->Custom Animation... ///'
583 SlideShowCustomAnimation
585 '/// click button 'Add...' ///'
587 '/// Dialog 'Custom Animation' comes up ///'
590 '/// Switch to TabPage: Motion Paths ///'
591 active.setPage(TabMotionPaths)
592 kontext "TabMotionPaths"
593 if TabMotionPaths.exists(5) then
594 Printlog "Testing effects in - TabMotionPaths"
595 i = Effects.GetItemCount
598 Effects.TypeKeys "<DOWN>",4
601 Printlog "Effect Nr: " + (Effects.GetSelIndex -1) + ". Name: " + Effects.GetSelText
602 Effectname1 = Effects.GetSelText
603 if AutomaticPreview.IsChecked = TRUE then sleep 1
604 d = Effects.GetSelIndex
608 if EffectStart.isEnabled then
609 t = EffectStart.GetItemCount
612 StartName1 = EffectStart.GetSelText
613 printlog "EffectStart selected " + StartName1
614 if EffectProperty.isEnabled then
615 if EffectProperty.isVisible then
616 if EffectProperty.isVisible then
617 w = EffectProperty.GetItemCount
620 EffectProperty.Select l
621 PropertyName1 = EffectProperty.GetSelText
623 printlog "Properties for the effect: " + PropertyName1
624 ' EffectSlideShow.Click
626 ' kontext "DocumentPresentation"
627 ' if DocumentPresentation.Exists (15) then
628 ' DocumentPresentation.TypeKeys "<Space>"
630 ' if DocumentPresentation.Exists (15) then
631 ' DocumentPresentation.TypeKeys "<Space>"
633 ' if DocumentPresentation.Exists (15) then
634 ' DocumentPresentation.TypeKeys "<Escape>"
637 ' Warnlog "Effect: " + Effectname1 + " didn't work when it started with: " + StartName1 + "and ended with: " + PropertyName1
644 ' Printlog "No effect properties for " + StartName1
646 ' EffectSlideShow.Click
648 ' kontext "DocumentPresentation"
649 ' if DocumentPresentation.Exists (15) then
650 ' DocumentPresentation.TypeKeys "<Space>"
652 ' if DocumentPresentation.Exists (15) then
653 ' DocumentPresentation.TypeKeys "<Space>"
655 ' if DocumentPresentation.Exists (15) then
656 ' DocumentPresentation.TypeKeys "<Escape>"
659 ' Warnlog "Effect: " + Effectname1 + " didn't work when it started with: " + StartName1
668 kontext "DocumentImpress"
669 if DocumentImpress.Exists (15) then
670 printlog "Returned to the Impress Edit-mode."
677 Printlog "Presentation didn't end. Error?"
680 '/// Switch to TabPage: Motion Paths ///'
681 active.setPage(TabMotionPaths)
682 kontext "TabMotionPaths"
683 Effects.TypeKeys "<DOWN>", e + 1 '/// Select the next entry ///'
684 ' if p = 2 then Effects.TypeKeys "<DOWN>"
685 p = Effects.GetSelIndex
686 If p = d Then e = i 'p > 2 AND
689 kontext "TabMotionPaths"
690 Speed.Typekeys "<DOWN>", (Int(Speed.GetItemCount * Rnd) + 1)
691 Printlog "Test of Entrance-list ended."
696 warnlog "Impress:Tasks Pane:Custom Animation:TabMotionPaths tabPage doesn't work."
700 '/// Switch to TabPage: Entrance ///'
701 active.setPage(TabEntrance)
702 kontext "TabEntrance"
703 if TabEntrance.exists(5) then
705 '/// Close dialog 'Custom Animation' with 'OK' ///'
708 warnlog "Error when switching Tab"
712 EffectAutomaticPreview.Check
713 '/// click button 'Remove' ///'
715 '/// close application ///'
719 '--------------------------------------------------------------------------------------------------------------------------------------------------
721 testcase tiPengineSlideTransition
726 dim iCount as integer
727 dim Soundposition as integer
729 '/// open application ///'
731 '/// create rectangle ///'
732 Call hRechteckErstellen ( 10, 10, 20, 40 )
734 '/// Insert a second slide ///'
737 hTypekeys "<Pagedown>"
739 '/// create textframe with quotes; Simple: 39; Double: 34; ///'
740 hTextrahmenErstellen ( "Hallo",20,20,60,30)
741 '/// Insert a third slide ///'
744 hTypekeys "<Pagedown>"
746 '/// Slide Show->Slide Transition ///'
747 SlideShowSlideTransition
749 '/// The 'Slide Transition' in the right 'Tasks' Pane has to come up ///'
751 '/// Select every entry in the Listbox 'Apply to Selected Slides' ///'
752 '/// Then select the next Speed for Transition and retest all the effects ///'
753 '/// Redo until all effects has been tested with all speeds ///'
754 lala = TransitionApplyToSelectedSlide.GetItemCount
755 Printlog "Count of effects : " + TransitionApplyToSelectedSlide.GetItemCount
756 Printlog "Count of Speeds : " + TransitionSpeed.GetItemCount
758 TransitionSpeed.Typekeys "<DOWN>", (Int(TransitionSpeed.GetItemCount * Rnd))
759 Printlog "Current speed is: " + TransitionSpeed.GetSelText
760 For iCount = 50 to lala
761 TransitionApplyToSelectedSlide.Select (iCount)
763 sleep 5 ' takes some time, until it is running
764 Printlog "Selected effect is: " + TransitionApplyToSelectedSlide.GetSelText
767 Printlog "Count of Sounds : " + TransitionSound.GetItemCount
768 '/// One Entry of the Listbox 'Sound' is 'Other sound...', select it ///'
769 ' iCount = TransitionSound.GetItemCount
770 TransitionSound.TypeKeys "<HOME>"
773 ' for a = 1 to 1 'iCount
774 TransitionSound.Select (Int(TransitionSound.GetItemCount * Rnd) + 1)
775 Printlog "The Transition Sound tested is: " + TransitionSound.GetSelText + " ( " + TransitionSound.GetSelIndex + " )."
776 Soundposition = TransitionSound.GetSelIndex
778 if (OeffnenDlg.Exists (5)) then
779 '/// Read all entries in Listbox 'File type' ///'
780 for i = 1 to Dateityp.getItemCount
781 printlog "" + i + ":" + Dateityp.getItemText(i)
783 '/// cancel dialog 'Open' ///'
787 if TransitionSound.GetSelIndex <> 1 then
788 Warnlog "TransitionSound didn't go back to the " + Soundposition + " position after pressing cancel in dialogue"
792 ' the Checkbox is disabled on the first three entries: <No Sound>, <Stop previous sound>...
793 if (TransitionLoopUntilNextSound.IsEnabled AND (TransitionSound.GetSelIndex<4)) then
794 qaErrorLog "May be Language specific -> Evaluation of TBO; " + TransitionSound.GetSelText + "( " + TransitionSound.GetSelIndex + " )."
801 '/// check checkbox 'Automatically after' ///'
802 TransitionAutomaticallyAfter.Check
804 '/// press key 'Page Up' in box ///'
805 TransitionAutomaticallyAfterTime.TypeKeys "<PageUp>"
807 '/// check the standard checkbox 'On mouse click' ///'
808 TransitionOnMouseClick.Check
810 '/// press button 'Apply to All Slides' ///'
811 TransitionApplyToAllSlides.Click
813 '/// press button 'Play' ///'
815 '/// press button 'Slide Show' ///'
817 TransitionSlideShow.Click
819 kontext "DocumentPresentation"
820 if DocumentPresentation.Exists (5) then
821 printlog "Presentation started :-)"
822 if DocumentPresentation.Exists (15) then
823 DocumentPresentation.TypeKeys "<Space>"
825 if DocumentPresentation.Exists (15) then
826 DocumentPresentation.TypeKeys "<Space>"
828 if DocumentPresentation.Exists (15) then
829 DocumentPresentation.TypeKeys "<Escape>"
832 warnlog "Impress:Tasks Pane:Slide Transition:Slide Show button doesn't start slideshow!"
836 '/// uncheck and check Checkbox 'Automatic Preview' ///'
837 '/// default is checked ///'
838 if (NOT TransitionAutomaticPreview.IsChecked) then
839 warnlog "Impress:Tasks Pane:Slide Transition: Automatic preview has to be checked by default, wasn't!"
841 TransitionAutomaticPreview.UnCheck
843 TransitionAutomaticPreview.Check
844 '/// close application ///'
849 ' Two different objects for two different effects. Does it work?
853 'testcase tipEngineUserFunctionTest
854 ' Insert some extra slides and see if they changes on themselves. (chain-reaction)
855 ' Save file, close, open again and see if everything is as it were. (Random effects)
858 '########################################################################
860 testcase tiPengineTabpageEntrance2
861 dim bError as boolean
873 dim Effectname1 as string
874 dim StartName1 as string
875 dim PropertyName1 as string
877 '/// open application ///'
879 '/// create textbox with text ///'
880 Call hTextrahmenErstellen ("Test text to test text effects", 35, 35, 70, 70 )
881 '/// Slide Show->Custom Animation... ///'
882 SlideShowCustomAnimation
884 '/// Uncheck AutomaticPreview ///'
885 EffectAutomaticPreview.UnCheck
886 '/// click button 'Add...' ///'
888 '/// Dialog 'Custom Animation' comes up ///'
891 '/// Switch to TabPage: Entrance ///'
892 active.setPage(TabEntrance)
893 kontext "TabEntrance"
894 if TabEntrance.exists(5) then
895 DialogTest(TabEntrance)
896 AutomaticPreview.UnCheck
897 Printlog "Testing effects in - TabEntrance"
898 i = Effects.GetItemCount
901 Effects.TypeKeys "<HOME>"
904 Printlog "Effect Nr: " + (Effects.GetSelIndex -1) + ". Name: " + Effects.GetSelText
905 Effectname1 = Effects.GetSelText
906 if AutomaticPreview.IsChecked = TRUE then sleep 1
907 d = Effects.GetSelIndex
912 ' EffectSlideShow.Click
914 ' kontext "DocumentPresentation"
915 ' if DocumentPresentation.Exists (15) then
916 ' DocumentPresentation.TypeKeys "<Space>"
918 ' DocumentPresentation.TypeKeys "<Space>"
919 ' if DocumentPresentation.Exists (15) then
920 ' DocumentPresentation.TypeKeys "<Space>"
922 ' if DocumentPresentation.Exists (15) then
923 ' DocumentPresentation.TypeKeys "<Escape>"
926 ' Warnlog "Effect: " + Effectname1 + " didn't work when it started with: " + StartName1 + "and ended with: " + PropertyName1
930 if Tasks.Exists(5) then
933 Printlog "Presentation didn't end. Error?"
935 kontext "TabEntrance"
936 Effects.TypeKeys "<DOWN>", e '/// Select the next entry ///'
937 p = Effects.GetSelIndex
941 kontext "DocumentPresentation"
943 kontext "TabEntrance"
945 Speed.Typekeys "<DOWN>", (Int(Speed.GetItemCount * Rnd))
947 printlog "Speed doesn't seem to work with the effect: " + Effectname1 + ". Check if this is ok."
950 Printlog "Test of Entrance-list ended."
954 '/// Switch to TabPage: Entrance ///'
955 active.setPage(TabEntrance)
956 kontext "TabEntrance"
957 if TabEntrance.exists(5) then
959 '/// Close dialog 'Custom Animation' with 'OK' ///'
962 warnlog "Error when switching Tab"
967 warnlog "Impress:Tasks Pane:Custom Animation:Add... button didnt work."
970 EffectAutomaticPreview.Check
971 '/// click button 'Remove' ///'
973 '/// close application ///'
977 '------------------------------------------------------------------------------------------------------------------------------------------------------
979 testcase tiPengineTabPageEmphasis2
980 dim bError as boolean
992 dim Effectname1 as string
993 dim StartName1 as string
994 dim PropertyName1 as string
996 '/// open application ///'
998 '/// create textbox with text ///'
999 Call hTextrahmenErstellen ("Test text to test text effects", 35, 35, 70, 70 )
1000 '/// Slide Show->Custom Animation... ///'
1001 SlideShowCustomAnimation
1003 '/// Uncheck AutomaticPreview ///'
1004 EffectAutomaticPreview.UnCheck
1005 '/// click button 'Add...' ///'
1007 '/// Dialog 'Custom Animation' comes up ///'
1010 '/// Switch to TabPage: Emphasis ///'
1012 active.setPage(TabEmphasis)
1013 kontext "TabEmphasis"
1014 if TabEmphasis.exists(5) then
1016 active.setPage(TabEmphasis)
1017 Printlog "Testing effects in - TabEmphasis"
1018 kontext "TabEmphasis"
1019 i = Effects.GetItemCount
1022 Effects.TypeKeys "<HOME>"
1025 Printlog "Effect Nr: " + (Effects.GetSelIndex -1) + ". Name: " + Effects.GetSelText
1026 Effectname1 = Effects.GetSelText
1027 if AutomaticPreview.IsChecked = TRUE then sleep 1
1028 d = Effects.GetSelIndex
1031 ' EffectSlideShow.Click
1033 ' kontext "DocumentPresentation"
1034 ' if DocumentPresentation.Exists (15) then
1035 ' DocumentPresentation.TypeKeys "<Space>"
1037 ' if DocumentPresentation.Exists (10) then
1038 ' DocumentPresentation.TypeKeys "<Space>"
1041 ' if DocumentPresentation.Exists (10) then
1042 ' DocumentPresentation.TypeKeys "<Escape>"
1045 ' Warnlog "Effect: " + Effectname1 + " didn't work when it started with: " + StartName1 + "and ended with: " + PropertyName1
1049 if Tasks.Exists then
1052 Printlog "Presentation didn't end. Error?"
1055 active.setPage(TabEmphasis)
1056 Printlog "Testing effects in - TabEmphasis"
1057 kontext "TabEmphasis"
1058 Effects.TypeKeys "<DOWN>", e + 1 '/// Select the next entry ///'
1059 p = Effects.GetSelIndex
1060 If p = d Then e = i 'p > 2 AND
1063 active.setPage(TabEmphasis)
1064 kontext "TabEmphasis"
1067 if Speed.GetItemCount = 0 then
1068 warnlog " 'Speed' has 0 entries. Check it."
1071 e = Int(Speed.GetItemCount * Rnd)
1075 Printlog "Test of Entrance-list ended."
1079 warnlog "Impress:Tasks Pane:Custom Animation:TabExit tabPage doesnt work."
1083 '/// Switch to TabPage: Entrance ///'
1084 active.setPage(TabEntrance)
1085 kontext "TabEntrance"
1086 if TabEntrance.exists(5) then
1088 '/// Close dialog 'Custom Animation' with 'OK' ///'
1091 warnlog "Error when switching Tab"
1095 EffectAutomaticPreview.Check
1096 '/// click button 'Remove' ///'
1098 '/// close application ///'
1102 '------------------------------------------------------------------------------------
1104 testcase tiPengineTabPageExit2
1105 dim bError as boolean
1117 dim Effectname1 as string
1118 dim StartName1 as string
1119 dim PropertyName1 as string
1121 '/// open application ///'
1123 '/// create textbox with text ///'
1124 Call hTextrahmenErstellen ("Test text to test text effects", 35, 35, 70, 70 )
1125 '/// Slide Show->Custom Animation... ///'
1126 SlideShowCustomAnimation
1128 '/// Uncheck AutomaticPreview ///'
1129 EffectAutomaticPreview.UnCheck
1130 '/// click button 'Add...' ///'
1132 '/// Dialog 'Custom Animation' comes up ///'
1135 '/// Switch to TabPage: Exit ///'
1136 active.setPage(TabExit)
1138 if TabExit.exists(5) then
1139 Printlog "Testing effects in - TabExit"
1140 i = Effects.GetItemCount
1143 Effects.TypeKeys "<HOME>"
1146 Printlog "Effect Nr: " + (Effects.GetSelIndex -1) + ". Name: " + Effects.GetSelText
1147 Effectname1 = Effects.GetSelText
1148 if AutomaticPreview.IsChecked = TRUE then sleep 1
1149 d = Effects.GetSelIndex
1152 ' EffectSlideShow.Click
1154 ' kontext "DocumentPresentation"
1155 ' if DocumentPresentation.Exists (15) then
1156 ' DocumentPresentation.TypeKeys "<Space>"
1158 ' if DocumentPresentation.Exists (15) then
1159 ' DocumentPresentation.TypeKeys "<Space>"
1161 ' if DocumentPresentation.Exists (15) then
1162 ' DocumentPresentation.TypeKeys "<Escape>"
1164 ' if DocumentPresentation.Exists (15) then
1165 ' DocumentPresentation.TypeKeys "<Escape>"
1168 ' Warnlog "Effect: " + Effectname1 + " didn't work when it started with: " + StartName1 + "and ended with: " + PropertyName1
1171 kontext "DocumentImpress"
1172 if DocumentImpress.Exists (15) then
1173 printlog "Returned to the Impress Edit-mode."
1175 kontext "DocumentPresentation"
1176 DocumentPresentation.TypeKeys "<Escape>"
1181 if Tasks.Exists then
1184 Printlog "Presentation didn't end. Error?"
1187 '/// Switch to TabPage: Exit ///'
1188 active.setPage(TabExit)
1190 Effects.TypeKeys "<DOWN>", e + 1 '/// Select the next entry ///'
1191 p = Effects.GetSelIndex
1192 If p = d Then e = i 'p > 2 AND
1195 '/// Switch to TabPage: Exit ///'
1196 active.setPage(TabExit)
1199 if Speed.GetItemCount = 0 then
1200 warnlog " 'Speed' has 0 entries. Check it."
1203 e = Int(Speed.GetItemCount * Rnd)
1208 Printlog "Test of Entrance-list ended."
1213 warnlog "Impress:Tasks Pane:Custom Animation:TabExit tabPage doesnt work."
1217 '/// Switch to TabPage: Entrance ///'
1218 active.setPage(TabEntrance)
1219 kontext "TabEntrance"
1220 if TabEntrance.exists(5) then
1222 '/// Close dialog 'Custom Animation' with 'OK' ///'
1225 warnlog "Error when switching Tab"
1229 EffectAutomaticPreview.Check
1230 '/// click button 'Remove' ///'
1232 '/// close application ///'
1236 '--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1238 testcase tiPengineTabPageMotionPaths2
1239 dim bError as boolean
1251 dim Effectname1 as string
1252 dim StartName1 as string
1253 dim PropertyName1 as string
1255 '/// open application ///'
1257 '/// create textbox with text ///'
1258 Call hTextrahmenErstellen ("Test text to test text effects", 35, 35, 70, 70 )
1259 '/// Slide Show->Custom Animation... ///'
1260 SlideShowCustomAnimation
1262 '/// Uncheck AutomaticPreview ///'
1263 EffectAutomaticPreview.UnCheck
1264 '/// click button 'Add...' ///'
1266 '/// Dialog 'Custom Animation' comes up ///'
1269 '/// Switch to TabPage: Motion Paths ///'
1270 active.setPage(TabMotionPaths)
1271 kontext "TabMotionPaths"
1272 if TabMotionPaths.exists(5) then
1273 Printlog "Testing effects in - TabMotionPaths"
1274 i = Effects.GetItemCount
1277 Effects.TypeKeys "<DOWN>",4
1278 For e = 4 to i '1 when adepted.
1280 Printlog "Effect Nr: " + (Effects.GetSelIndex -1) + ". Name: " + Effects.GetSelText
1281 Effectname1 = Effects.GetSelText
1282 if AutomaticPreview.IsChecked = TRUE then sleep 1
1283 d = Effects.GetSelIndex
1286 ' EffectSlideShow.Click
1288 ' kontext "DocumentPresentation"
1289 ' if DocumentPresentation.Exists (15) then
1290 ' DocumentPresentation.TypeKeys "<Space>"
1292 ' if DocumentPresentation.Exists (15) then
1293 ' DocumentPresentation.TypeKeys "<Space>"
1295 ' if DocumentPresentation.Exists (15) then
1296 ' DocumentPresentation.TypeKeys "<Escape>"
1299 ' Warnlog "Effect: " + Effectname1 + " didn't work when it started with: " + StartName1 + "and ended with: " + PropertyName1
1302 kontext "DocumentPresentation"
1303 EditSelectAll ' (Select the text again)
1305 if Tasks.Exists then
1308 Printlog "Presentation didn't end. Error?"
1311 '/// Switch to TabPage: Motion Paths ///'
1312 active.setPage(TabMotionPaths)
1313 kontext "TabMotionPaths"
1314 Effects.TypeKeys "<DOWN>", e + 1 '/// Select the next entry ///'
1315 p = Effects.GetSelIndex
1316 If p = d Then e = i 'p > 2 AND
1319 '/// Switch to TabPage: Motion Paths ///'
1320 active.setPage(TabMotionPaths)
1321 kontext "TabMotionPaths"
1324 if Speed.GetItemCount = 0 then
1325 warnlog " 'Speed' has 0 entries. Check it."
1328 e = Int(Speed.GetItemCount * Rnd)
1333 Printlog "Test of Entrance-list ended."
1338 warnlog "Impress:Tasks Pane:Custom Animation:TabMotionPaths tabPage doesn't work."
1341 '/// Switch to TabPage: Entrance ///'
1342 active.setPage(TabEntrance)
1343 kontext "TabEntrance"
1344 if TabEntrance.exists(5) then
1346 '/// Close dialog 'Custom Animation' with 'OK' ///'
1349 warnlog "Error when switching Tab"
1353 EffectAutomaticPreview.Check
1354 '/// click button 'Remove' ///'
1356 '/// close application ///'
1360 '--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------