1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
|
'encoding UTF-8 Do not remove or change this line!
'**************************************************************************
'* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
'*
'* Copyright 2008 by Sun Microsystems, Inc.
'*
'* OpenOffice.org - a multi-platform office productivity suite
'*
'* $RCSfile: im_011_.inc,v $
'*
'* $Revision: 1.1 $
'*
'* last change: $Author: jsi $ $Date: 2008-06-16 10:43:01 $
'*
'* This file is part of OpenOffice.org.
'*
'* OpenOffice.org is free software: you can redistribute it and/or modify
'* it under the terms of the GNU Lesser General Public License version 3
'* only, as published by the Free Software Foundation.
'*
'* OpenOffice.org is distributed in the hope that it will be useful,
'* but WITHOUT ANY WARRANTY; without even the implied warranty of
'* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
'* GNU Lesser General Public License version 3 for more details
'* (a copy is included in the LICENSE file that accompanied this code).
'*
'* You should have received a copy of the GNU Lesser General Public License
'* version 3 along with OpenOffice.org. If not, see
'* <http://www.openoffice.org/license.html>
'* for a copy of the LGPLv3 License.
'*
'/************************************************************************
'*
'* Owner : wolfram.garten@sun.com
'*
'* short description : Impress Required Test Library (11)
'*
'\*****************************************************************
testcase tiDiaLeiste
' only in IMPRESS
dim sTemp as string
Dim i,x as integer
printlog " open application "
Call hNewDocument
sleep 1
printlog " Change options so the presentation won't start from the current, but the first slide. "
ToolsOptions
hToolsOptions ( "IMPRESS", "General" )
MitAktuellerSeite.Uncheck
Kontext "ExtrasOptionenDlg"
ExtrasOptionenDlg.OK
printlog " insert a graphic: global\input\graf_inp\desp.bmp) "
Printlog "- Insert graphic from file so there is something for the slide mode"
hGrafikEinfuegen ConvertPath (gTesttoolPath + "global\input\graf_inp\desp.bmp")
sleep 3
printlog "+ Insert->Slide "
InsertSlide
sleep 2
hTypekeys "<Pagedown>"
sleep 2
printlog "+ insert a graphic: "global\input\graf_inp\desp.bmp") "
hGrafikeinfuegen ConvertPath (gTesttoolPath + "global\input\graf_inp\desp.bmp")
sleep 3
printlog "+ View->Master View->Slides View "
ViewWorkspaceSlidesView
sleep 2
'-------------------------------- Ueberblendeffekt ----------------------------------------
Printlog "- Test blend effect"
Kontext "SlideViewObjectbar" ' CORRECT
sleep 5
if Ueberblendeffekt.GetItemCount <> 57 then warnlog "these are not 57: " + Ueberblendeffekt.GetItemCount
printlog " select last entry 'Automatic (random)' in listbox 'Slide Effects' on object toolbar "
Ueberblendeffekt.Select (Ueberblendeffekt.GetItemCount)
Printlog " select last effect (random effect): " + Ueberblendeffekt.GetSelText
' Printlog Geschwindigkeit.GetRT ' 341 listbox
' Printlog Diawechsel.GetRT ' 341 listbox
' Printlog Zeit.GetRT ' 353 spinfield
' Printlog DiasProReihe.GetRT ' 353 spinfield
' Printlog PraesentationMitZeitnahme.GetRT doesn't work, but behave as button
' Printlog DiaAnzeigen.GetRT doesn't work, but behave as button
'-------------------------------- Geschwindigkeit -----------------------------------------
Printlog "- Check different speed settings"
Kontext "SlideViewObjectbar"
printlog " select every item in list 'Transition Speed' "
x = Geschwindigkeit.GetItemCount
for i = 1 to x
Geschwindigkeit.Select i
Printlog " changed to: " + Geschwindigkeit.GetSelText
next i
'-------------------------------- Diawechsel ----------------------------------------------
Printlog "- Style of slide change"
Kontext "SlideViewObjectbar"
printlog " select every item in list 'Auto Transition' "
x = Diawechsel.GetItemCount
for i = 1 to x
Diawechsel.Select i
Printlog " Changed to: " + Diawechsel.GetSelText + "; is time enabled ?: "+Zeit.IsEnabled
next i
'-------------------------------- Diawechsel Zeitintervall --------------------------------
Printlog "- Zeitintervall testen"
Kontext "SlideViewObjectbar"
printlog " select last entry 'Automatic' in listbox 'Auto Transition' "
Diawechsel.Select (Diawechsel.GetItemCount) ' automatic is usually the last one
sleep 1
if (Zeit.IsEnabled = FALSE) Then Warnlog "- Time should be editable, if automatic is chosen"
printlog " type "15" into the field 'Time' "
Zeit.SetText "15"
sleep 1
Printlog " Time set to: " + Zeit.GetText
'-------------------------------- Praesentation mit Zeitnahme ------------------------------
Printlog "- Presentation with rehearsed timings"
Kontext "SlideViewObjectbar"
printlog " click button 'Rehearse Timings' "
PraesentationMitZeitnahme.Click
sleep 2
Kontext "DocumentPresentation"
if DocumentPresentation.exists (5) then
sleep 5
printlog " wait some seconds and click with mouse "
DocumentPresentation.MouseDown 50,50
DocumentPresentation.MouseUp 50,50
sleep 2
printlog " wait some seconds and click with mouse "
DocumentPresentation.MouseDown 50,50
DocumentPresentation.MouseUp 50,50
sleep 3
else
warnlog "Didn't switch into presentation mode :-("
endif
Kontext "DocumentPresentation"
if DocumentPresentation.exists (5) then
warnlog "We are still in presentation mode :-( WHY!!!!???"
endif
'------------------------------- Dia anzeigen ja/nein --------------------------------------
Printlog "- Show slide yes/no"
Kontext "SlideViewObjectbar"
printlog " click button 'Show/Hide Slide' "
DiaAnzeigen.Click
sleep 3
printlog " click button 'Show/Hide Slide' "
DiaAnzeigen.Click
'------------------------------- Dias pro Reihe --------------------------------------------
Printlog "- Presentation with rehearsed timings"
Kontext "SlideViewObjectbar"
sTemp = DiasProReihe.GetText
printlog " press button 'less' in field 'Slides Per Row' "
DiasProReihe.Less
if sTemp = DiasProReihe.GetText then warnlog " nothing changed (less)"
sTemp = DiasProReihe.GetText
printlog " press button 'more' in field 'Slides Per Row' "
DiasProReihe.more
if sTemp = DiasProReihe.GetText then warnlog " nothing changed (more 1)"
sTemp = DiasProReihe.GetText
printlog " press button 'more' in field 'Slides Per Row' "
DiasProReihe.more
if sTemp = DiasProReihe.GetText then warnlog " nothing changed (more 2)"
kontext
if active.exists then
warnlog "active (1): '"+active.gettext+"'"
endif
printlog " Restore default settings in ToolsOptions "
ToolsOptions
hToolsOptions ( "IMPRESS", "General" )
MitAktuellerSeite.Check
Kontext "ExtrasOptionenDlg"
ExtrasOptionenDlg.OK
printlog " close application "
Call hCloseDocument
sleep 2
endcase 'tiDiaLeiste
|