summaryrefslogtreecommitdiff
path: root/testautomation/chart2/required/includes/ch2_format1.inc
blob: 5593fa883ba0d272a1ac448f0ef6a3439c956d5d (plain)
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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
'encoding UTF-8  Do not remove or change this line!
'**************************************************************************
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 * 
 * Copyright 2000, 2010 Oracle and/or its affiliates.
 *
 * OpenOffice.org - a multi-platform office productivity suite
 *
 * 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 : oliver.craemer@sun.com
'*
'* short description : Continue Chart resource test - Menu FORMAT
'*
'************************************************************************
'*
' #1 tFormatXAxisMainGrid
' #1 tFormatYAxisMainGrid
' #1 tFormatZAxisMainGrid
' #1 tFormatXAxisMinorGrid
' #1 tFormatYAxisMinorGrid
' #1 tFormatZAxisMinorGrid
' #1 tFormatAllAxesGrids
' #1 tFormatLegend
' #1 tFormatChartWall
' #1 tFormatChartFloor
' #1 tFormatChartArea
' #1 tFormatChartType
' #1 tFormatDataRanges
' #1 tFormat3DView
'*
'\************************************************************************

testcase tFormatXAxisMainGrid
'///<u><b>Dialog test after invoking Format::Grid::X Axis Main Grid</b></u>

'///<ul>
   '///+<li>Load simple chart document</li>
   if fLoadVerySimpleChartAndSaveLocal() > 0 then
       warnlog "Loading test document seems to have failed -> Check this out!"
       goto endsub
   endif
   '///+<li>Select chart using navigator</li>
   call fSelectFirstOLE
   '///+<li>Invoke Edit::Object::Edit to enter Inplace Mode</li>
   EditObjectEdit
   sleep(1)
   '///+<li>Invoke Format::Chart Type</li>
   if fInvokeChartTypeDialog() > 0 then
       warnlog "Something went wrong trying to invoke the Chart Types dialog -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '///+<li>Change Chart type to STOCK</li>
   if fSetChartType( "stock" ) > 0 then
       warnlog "Something went wrong setting chart type to STOCK -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '///+<li>Close Chart Type dialog</li>
   if fCloseChartTypeDialogOK() > 0 then
       warnlog "Something went wrong trying to close the Chart Type dialog -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '///+<li>Invoke Insert::Grids</li>
   if fInvokeGridsDialog() > 0 then
       warnlog "Something went wrong trying to invoke the Grids dialog -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   Kontext "InsertGridsDialog"
   '///+<li>Check Main Grid X Axis</li>
   if fSetGrid( MainGridXAxis , TRUE ) > 0 then
       warnlog "Something went wrong enabling Main Grid X Axis  -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '///+<li>Close Grids dialog</li>
   if fCloseGridsDialogOK() > 0 then
       warnlog "Something went wrong trying to close the Grids dialog -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '///+<li>Invoke Format::Grid::X Axis Main Grid</li>
   FormatGridXAxisMainGrid
   '///+<li>Check if tab-page Line exists</li>
   Kontext "TabFormatChartLine"
   call DialogTest ( TabFormatChartLine )
   '///+<li>Close dialog</li>
   TabFormatChartLine.Cancel
   '///+<li>Close document</li>
   Kontext "DocumentCalc"
   DocumentCalc.TypeKeys "<Escape>"
   Call hCloseDocument
'///</ul>

endcase
'-------------------------------------------------------------
testcase tFormatYAxisMainGrid
'///<u><b>Dialog test after invoking Format::Grid::Y Axis Main Grid</b></u>

'///<ul>
   '///+<li>Load simple chart document</li>
   if fLoadVerySimpleChartAndSaveLocal() > 0 then
       warnlog "Loading test document seems to have failed -> Check this out!"
       goto endsub
   endif
   '///+<li>Select chart using navigator</li>
   call fSelectFirstOLE
   '///+<li>Invoke Edit::Object::Edit to enter Inplace Mode</li>
   EditObjectEdit
   sleep(1)
   '///+<li>Invoke Format::Chart Type</li>
   if fInvokeChartTypeDialog() > 0 then
       warnlog "Something went wrong trying to invoke the Chart Types dialog -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '///+<li>Change Chart type to AREA</li>
   if fSetChartType( "area" ) > 0 then
       warnlog "Something went wrong setting chart type to AREA -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '///+<li>Close Chart Type dialog</li>
   if fCloseChartTypeDialogOK() > 0 then
       warnlog "Something went wrong trying to close the Chart Type dialog -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '///+<li>Invoke Format::Grid::Y Axis Main Grid</li>
   FormatGridYAxisMainGrid
   '///+<li>Check if tab-page Line exists</li>
   Kontext "TabFormatChartLine"
   call DialogTest ( TabFormatChartLine )
   '///+<li>Close dialog</li>
   TabFormatChartLine.Cancel
   '///+<li>Close document</li>
   Kontext "DocumentCalc"
   DocumentCalc.TypeKeys "<Escape>"
   Call hCloseDocument
'///</ul>

endcase
'-------------------------------------------------------------
testcase tFormatZAxisMainGrid
'///<u><b>Dialog test after invoking Format::Grid::Z Axis Main Grid</b></u>

'///<ul>
   '///+<li>Load simple chart document</li>
   if fLoadVerySimpleChartAndSaveLocal() > 0 then
       warnlog "Loading test document seems to have failed -> Check this out!"
       goto endsub
   endif
   '///+<li>Select chart using navigator</li>
   call fSelectFirstOLE
   '///+<li>Invoke Edit::Object::Edit to enter Inplace Mode</li>
   EditObjectEdit
   sleep(1)
   '///+<li>Invoke Format::Chart Type</li>
   if fInvokeChartTypeDialog() > 0 then
       warnlog "Something went wrong trying to invoke the Chart Types dialog -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '///+<li>Change Chart type to LINE</li>
   if fSetChartType( "line" ) > 0 then
       warnlog "Something went wrong setting chart type to LINE -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '///+<li>Change Chart type Variant to #4 (3D Variant)</li>
   if fSetChartTypeVariant( 4 ) > 0 then
       warnlog "Something went wrong selecting 4th chart type variant -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '///+<li>Close Chart Type dialog</li>
   if fCloseChartTypeDialogOK() > 0 then
       warnlog "Something went wrong trying to close the Chart Type dialog -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '///+<li>Invoke Insert::Grids</li>
   if fInvokeGridsDialog() > 0 then
       warnlog "Something went wrong trying to invoke the Grids dialog -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   Kontext "InsertGridsDialog"
   '///+<li>Check Main Grid Z Axis</li>
   if fSetGrid( MainGridZAxis , TRUE ) > 0 then
       warnlog "Something went wrong enabling Main Grid X Axis  -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '///+<li>Close Grids dialog</li>
   if fCloseGridsDialogOK() > 0 then
       warnlog "Something went wrong trying to close the Grids dialog -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '///+<li>Invoke Format::Grid::Z Axis Main Grid</li>
   FormatGridZAxisMainGrid
   '///+<li>Check if tab-page Line exists</li>
   Kontext "TabFormatChartLine"
   call DialogTest ( TabFormatChartLine )
   '///+<li>Close dialog</li>
   TabFormatChartLine.Cancel
   '///+<li>Close document</li>
   Kontext "DocumentCalc"
   DocumentCalc.TypeKeys "<Escape>"
   Call hCloseDocument
'///</ul>

endcase
'
'-------------------------------------------------------------------------------
'
testcase tFormatXAxisMinorGrid
'///<u><b>Dialog test after invoking Format::Grid::X Axis Minor Grid</b></u>
   '/// Load simple chart document
   if fLoadVerySimpleChartAndSaveLocal() > 0 then
       warnlog "Loading test document seems to have failed -> Check this out!"
       goto endsub
   endif
   '/// Select chart using navigator
   call fSelectFirstOLE
   '/// Invoke Edit::Object::Edit to enter Inplace Mode
   EditObjectEdit
   sleep(1)
   '/// Invoke Format::Chart Type
   if fInvokeChartTypeDialog() > 0 then
       warnlog "Something went wrong trying to invoke the Chart Types dialog -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '/// Change Chart type to xy chart
   if fSetChartType( "xy" ) > 0 then
       warnlog "Something went wrong setting chart type to xy chart -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '/// Close Chart Type dialog
   if fCloseChartTypeDialogOK() > 0 then
       warnlog "Something went wrong trying to close the Chart Type dialog -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '/// Invoke Insert::Grids
   if fInvokeGridsDialog() > 0 then
       warnlog "Something went wrong trying to invoke the Grids dialog -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   Kontext "InsertGridsDialog"
   '/// Check Minor Grid X Axis
   if fSetGrid( MinorGridXAxis , TRUE ) > 0 then
       warnlog "Something went wrong enabling Minor Grid Y Axis  -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '/// Close Grids dialog
   if fCloseGridsDialogOK() > 0 then
       warnlog "Something went wrong trying to close the Grids dialog -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '/// Invoke Format::Grid::X Axis Minor Grid
   FormatGridXAxisMinorGrid
   '/// Check if tab-page Line exists
   Kontext "TabFormatChartLine"
   call DialogTest ( TabFormatChartLine )
   '/// Close dialog
   TabFormatChartLine.Cancel
   '/// Close document
   Kontext "DocumentCalc"
   DocumentCalc.TypeKeys "<Escape>"
   Call hCloseDocument
endcase
'
'-------------------------------------------------------------------------------
'
testcase tFormatYAxisMinorGrid
'///<u><b>Dialog test after invoking Format::Grid::Y Axis Minor Grid</b></u>

'///<ul>
   '///+<li>Load simple chart document</li>
   if fLoadVerySimpleChartAndSaveLocal() > 0 then
       warnlog "Loading test document seems to have failed -> Check this out!"
       goto endsub
   endif
   '///+<li>Select chart using navigator</li>
   call fSelectFirstOLE
   '///+<li>Invoke Edit::Object::Edit to enter Inplace Mode</li>
   EditObjectEdit
   sleep(1)
   '///+<li>Invoke Format::Chart Type</li>
   if fInvokeChartTypeDialog() > 0 then
       warnlog "Something went wrong trying to invoke the Chart Types dialog -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '///+<li>Change Chart type to NET</li>
   if fSetChartType( "net" ) > 0 then
       warnlog "Something went wrong setting chart type to NET -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '///+<li>Close Chart Type dialog</li>
   if fCloseChartTypeDialogOK() > 0 then
       warnlog "Something went wrong trying to close the Chart Type dialog -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '///+<li>Invoke Insert::Grids</li>
   if fInvokeGridsDialog() > 0 then
       warnlog "Something went wrong trying to invoke the Grids dialog -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   Kontext "InsertGridsDialog"
   '///+<li>Check Minor Grid Y Axis</li>
   if fSetGrid( MinorGridYAxis , TRUE ) > 0 then
       warnlog "Something went wrong enabling Minor Grid Y Axis  -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '///+<li>Close Grids dialog</li>
   if fCloseGridsDialogOK() > 0 then
       warnlog "Something went wrong trying to close the Grids dialog -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '///+<li>Invoke Format::Grid::Y Axis Minor Grid</li>
   FormatGridYAxisMinorGrid
   '///+<li>Check if tab-page Line exists</li>
   Kontext "TabFormatChartLine"
   call DialogTest ( TabFormatChartLine )
   '///+<li>Close dialog</li>
   TabFormatChartLine.Cancel
   '///+<li>Close document</li>
   Kontext "DocumentCalc"
   DocumentCalc.TypeKeys "<Escape>"
   Call hCloseDocument
'///</ul>

endcase
'
'-------------------------------------------------------------------------------
'
testcase tFormatAllAxesGrids
'///<u><b>Dialog test after invoking Format::Grid::All Grids</b></u>

'///<ul>
   '///+<li>Load simple chart document</li>
   if fLoadVerySimpleChartAndSaveLocal() > 0 then
       warnlog "Loading test document seems to have failed -> Check this out!"
       goto endsub
   endif
   '///+<li>Select chart using navigator</li>
   call fSelectFirstOLE
   '///+<li>Invoke Edit::Object::Edit to enter Inplace Mode</li>
   EditObjectEdit
   sleep(1)
   '///+<li>Invoke Format::Chart Type</li>
   if fInvokeChartTypeDialog() > 0 then
       warnlog "Something went wrong trying to invoke the Chart Types dialog -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '///+<li>Change Chart type to XY</li>
   if fSetChartType( "xy" ) > 0 then
       warnlog "Something went wrong setting chart type to XY -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '///+<li>Change Chart type Variant to #4 (3D Variant)</li>
   if fSetChartTypeVariant( 4 ) > 0 then
       warnlog "Something went wrong selecting 4th chart type variant -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '///+<li>Close Chart Type dialog</li>
   if fCloseChartTypeDialogOK() > 0 then
       warnlog "Something went wrong trying to close the Chart Type dialog -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '///+<li>Invoke Format::Grid::All Grids</li>
   FormatGridAllAxisGrids
   '///+<li>Check if tab-page Line exists</li>
   Kontext "TabFormatChartLine"
   call DialogTest ( TabFormatChartLine )
   '///+<li>Close dialog</li>
   TabFormatChartLine.Cancel
   '///+<li>Close document</li>
   Kontext "DocumentCalc"
   DocumentCalc.TypeKeys "<Escape>"
   Call hCloseDocument
'///</ul>

endcase
'-------------------------------------------------------------
testcase tFormatLegend
    '///<u><b>Dialog test after invoking Format::Legend</b></u>

    '///<ul>
    '///+<li>Load simple chart document</li>
    if fLoadVerySimpleChartAndSaveLocal() > 0 then
        warnlog "Loading test document seems to have failed -> Check this out!"
        goto endsub
    endif
    '///+<li>Select chart using navigator</li>
    call fSelectFirstOLE
    '///+<li>Invoke Edit::Object::Edit to enter Inplace Mode</li>
    EditObjectEdit
    sleep(1)
    '///+<li>Invoke Format::Chart Type</li>
    if fInvokeChartTypeDialog() > 0 then
        warnlog "Something went wrong trying to invoke the Chart Types dialog -> Check this out! (Previous log may help you)"
        Call hCloseDocument
        goto endsub
    endif
    '///+<li>Change Chart type to PIE</li>
    if fSetChartType( "pie" ) > 0 then
        warnlog "Something went wrong setting chart type to PIE -> Check this out! (Previous log may help you)"
        Call hCloseDocument
        goto endsub
    endif
    '///+<li>Close Chart Type dialog</li>
    if fCloseChartTypeDialogOK() > 0 then
        warnlog "Something went wrong trying to close the Chart Type dialog -> Check this out! (Previous log may help you)"
        Call hCloseDocument
        goto endsub
    endif
    '///+<li>Invoke Format::Legend</li>
    FormatLegend
    '///+<li>Goto tab-page Borders</li>
    Kontext
    active.SetPage TabFormatChartBorders
    '///+<li>Check if tab-page Borders exists</li>
    Kontext "TabFormatChartBorders"
    call DialogTest ( TabFormatChartBorders )
   
    '///+<li>Goto tab-page Area</li>
    Kontext
    active.SetPage TabArea
    '///+<li>Check if tab-page Area exists</li>
    Kontext "TabArea"
    call DialogTest ( TabArea )
   
    '///+<li>Goto tab-page Transparency</li>
    Kontext
    active.SetPage TabTransparency
    '///+<li>Check if tab-page Transparency exists</li>
    Kontext "TabTransparency"
    call DialogTest ( TabTransparency )
   
    '///+<li>Goto tab-page Characters</li>
    Kontext
    active.SetPage TabFont
    '///+<li>Check if tab-page Characters exists</li>
    Kontext "TabFont"
    call DialogTest ( TabFont )
   
    '///+<li>Goto tab-page Font Effects</li>
    Kontext
    active.SetPage TabFontEffects
    '///+<li>Check if tab-page Font Effects exists</li>
    Kontext "TabFontEffects"
    call DialogTest ( TabFontEffects )
   
    '///+<li>Goto tab-page Position</li>
    Kontext
    active.SetPage TabLegendPosition
    '///+<li>Check if tab-page Alignment exists</li>
    Kontext "TabLegendPosition"
    call DialogTest ( TabLegendPosition )
   
    if gAsianSup = true then
        Kontext
        Active.SetPage TabAsianTypography    
        Kontext "TabAsianTypography"
        call DialogTest ( TabAsianTypography )        
        TabAsianTypography.Cancel
    else   
        '///+<li>Close dialog</li>
        TabLegendPosition.Cancel
    endif
    '///+<li>Close document</li>
    Kontext "DocumentCalc"
    DocumentCalc.TypeKeys "<Escape>"
    Call hCloseDocument
    '///</ul>

endcase
'-------------------------------------------------------------
testcase tFormatChartWall
'///<u><b>Dialog test after invoking Format::Chart Wall</b></u>

'///<ul>
   '///+<li>Load simple chart document</li>
   if fLoadVerySimpleChartAndSaveLocal() > 0 then
       warnlog "Loading test document seems to have failed -> Check this out!"
       goto endsub
   endif
   '///+<li>Select chart using navigator</li>
   call fSelectFirstOLE
   '///+<li>Invoke Edit::Object::Edit to enter Inplace Mode</li>
   EditObjectEdit
   sleep(1)
   '///+<li>Invoke Format::Chart Wall</li>
   FormatChartWall
   '///+<li>Goto tab-page Borders</li>
   Kontext
   active.SetPage TabFormatChartBorders
   '///+<li>Check if tab-page Borders exists</li>
   Kontext "TabFormatChartBorders"
   call DialogTest ( TabFormatChartBorders )
   
   '///+<li>Goto tab-page Area</li>
   Kontext
   active.SetPage TabArea
   '///+<li>Check if tab-page Area exists</li>
   Kontext "TabArea"
   call DialogTest ( TabArea )
   
   '///+<li>Goto tab-page Transparency</li>
   Kontext
   active.SetPage TabTransparency
   '///+<li>Check if tab-page Transparency exists</li>
   Kontext "TabTransparency"
   call DialogTest ( TabTransparency )
   
   '///+<li>Close dialog</li>
   TabTransparency.Cancel
   '///+<li>Close document</li>
   Kontext "DocumentCalc"
   DocumentCalc.TypeKeys "<Escape>"
   Call hCloseDocument
'///</ul>

endcase
'-------------------------------------------------------------
testcase tFormatChartFloor
'///<u><b>Dialog test after invoking Format::Chart Floor</b></u>

'///<ul>
   '///+<li>Load simple chart document</li>
   if fLoadVerySimpleChartAndSaveLocal() > 0 then
       warnlog "Loading test document seems to have failed -> Check this out!"
       goto endsub
   endif
   '///+<li>Select chart using navigator</li>
   call fSelectFirstOLE
   '///+<li>Invoke Edit::Object::Edit to enter Inplace Mode</li>
   EditObjectEdit
   sleep(1)
   '///+<li>Convert chart to 3D (this will enable the Chart Floor)</li>
   if NOT fConvertChartTo3D() then
       warnlog "Conversion of chart to 3D failed -> Quit testcase"
       Call hCloseDocument
       goto endsub
   endif
   '///+<li>Invoke Format::Chart Floor</li>
   FormatChartFloor
   '///+<li>Goto tab-page Area</li>
   Kontext
   active.SetPage TabArea
   '///+<li>Check if tab-page Area exists</li>
   Kontext "TabArea"
   call DialogTest ( TabArea )
   
   '///+<li>Goto tab-page Transparency</li>
   Kontext
   active.SetPage TabTransparency
   '///+<li>Check if tab-page Transparency exists</li>
   Kontext "TabTransparency"
   call DialogTest ( TabTransparency )
   
   '///+<li>Goto tab-page Borders</li>
   Kontext
   active.SetPage TabFormatChartBorders
   '///+<li>Check if tab-page Borders exists</li>
   Kontext "TabFormatChartBorders"
   call DialogTest ( TabFormatChartBorders )
   
   '///+<li>Close dialog</li>
   TabFormatChartBorders.Cancel
   '///+<li>Close document</li>
   Kontext "DocumentCalc"
   DocumentCalc.TypeKeys "<Escape>"
   Call hCloseDocument
'///</ul>

endcase
'-------------------------------------------------------------
testcase tFormatChartArea
'///<u><b>Dialog test after invoking Format::Chart Area</b></u>

'///<ul>
   '///+<li>Load simple chart document</li>
   if fLoadVerySimpleChartAndSaveLocal() > 0 then
       warnlog "Loading test document seems to have failed -> Check this out!"
       goto endsub
   endif
   '///+<li>Select chart using navigator</li>
   call fSelectFirstOLE
   '///+<li>Invoke Edit::Object::Edit to enter Inplace Mode</li>
   EditObjectEdit
   sleep(1)
   '///+<li>Invoke Format::Chart Area</li>
   FormatChartArea
   '///+<li>Goto tab-page Transparency</li>
   Kontext
   active.SetPage TabTransparency
   '///+<li>Check if tab-page Transparency exists</li>
   Kontext "TabTransparency"
   call DialogTest ( TabTransparency )
   
   '///+<li>Goto tab-page Borders</li>
   Kontext
   active.SetPage TabFormatChartBorders
   '///+<li>Check if tab-page Borders exists</li>
   Kontext "TabFormatChartBorders"
   call DialogTest ( TabFormatChartBorders )
   
   '///+<li>Goto tab-page Area</li>
   Kontext
   active.SetPage TabArea
   '///+<li>Check if tab-page Area exists</li>
   Kontext "TabArea"
   call DialogTest ( TabArea )
   
   '///+<li>Close dialog</li>
   TabArea.Cancel
   '///+<li>Close document</li>
   Kontext "DocumentCalc"
   DocumentCalc.TypeKeys "<Escape>"
   Call hCloseDocument
'///</ul>

endcase
'-------------------------------------------------------------
testcase tFormatChartType
'///<u><b>Dialog test after invoking Format::Chart Type</b></u>

'///<ul>
   '///+<li>Load simple chart document</li>
   if fLoadVerySimpleChartAndSaveLocal() > 0 then
       warnlog "Loading test document seems to have failed -> Check this out!"
       goto endsub
   endif
   '///+<li>Select chart using navigator</li>
   call fSelectFirstOLE
   '///+<li>Invoke Edit::Object::Edit to enter Inplace Mode</li>
   EditObjectEdit
   sleep(1)
   '///+<li>Invoke Format::Chart Type</li>
   FormatChartType
   '///+<li>Check if Chart Type dialog exists</li>
   Kontext "ChartType"
   call DialogTest ( ChartType )
   '///+<li>Change Chart type to LINE</li>
   if fSetChartType( "line" ) > 0 then
       warnlog "Something went wrong setting chart type to LINE -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '///+<li>Invoke Smooth Lines Properties</li>
   if fInvokeSmoothLineProperties() > 0 then
       warnlog "Something went wrong invoking Smooth Lines Properties -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '///+<li>Check if the Smooth Line Properties dialog exists</li>
   Kontext "SmoothLineProperties"
   call DialogTest ( SmoothLineProperties )
   '///+<li>Close Smooth Lines Properties</li>
   if fCloseSmoothLinePropertiesOK() > 0 then
       warnlog "Something went wrong closing Smooth Lines Properties -> Check this out! (Previous log may help you)"
       Call hCloseDocument
       goto endsub
   endif
   '///+<li>Close dialog</li>
   Kontext "ChartType"
   ChartType.Cancel
   '///+<li>Close document</li>
   Kontext "DocumentCalc"
   DocumentCalc.TypeKeys "<Escape>"
   Call hCloseDocument
'///</ul>

endcase
'-------------------------------------------------------------
testcase tFormatDataRanges
'///<u><b>Dialog test after invoking Format::Data Ranges</b></u>

'///<ul>
   '///+<li>Load simple chart document</li>
   if fLoadVerySimpleChartAndSaveLocal() > 0 then
       warnlog "Loading test document seems to have failed -> Check this out!"
       goto endsub
   endif
   '///+<li>Select chart using navigator</li>
   call fSelectFirstOLE
   '///+<li>Invoke Edit::Object::Edit to enter Inplace Mode</li>
   EditObjectEdit
   sleep(1)
   '///+<li>Invoke Format::Data Ranges</li>
   FormatDataRanges
   '///+<li>Goto tab-page Data Range</li>
   Kontext
   active.SetPage TabFormatDataRangesDataRange
   '///+<li>Check if tab-page Data Range exists</li>
   Kontext "TabFormatDataRangesDataRange"
   call DialogTest ( TabFormatDataRangesDataRange )
   qaErrorLog "Implode dialog using range select button when feature is implemented"
   
   '///+<li>Goto tab-page Data Series</li>
   Kontext
   active.SetPage TabFormatDataRangesDataSeries
   '///+<li>Check if tab-page Data Series exists</li>
   Kontext "TabFormatDataRangesDataSeries"
   call DialogTest ( TabFormatDataRangesDataSeries )
   MoveDown.Click
   qaErrorLog "Implode dialog using range select button when feature is implemented"
   
    '///+<li>Close dialog</li>
   TabFormatDataRangesDataSeries.Cancel
   '///+<li>Close document</li>
   Kontext "DocumentCalc"
   DocumentCalc.TypeKeys "<Escape>"
   Call hCloseDocument
'///</ul>

endcase
'-------------------------------------------------------------
testcase tFormat3DView
'///<u><b>Dialog test after invoking Format::3D View</b></u>

'///<ul>
   '///+<li>Load simple chart document</li>
   if fLoadVerySimpleChartAndSaveLocal() > 0 then
       warnlog "Loading test document seems to have failed -> Check this out!"
       goto endsub
   endif
   '///+<li>Select chart using navigator</li>
   call fSelectFirstOLE
   '///+<li>Invoke Edit::Object::Edit to enter Inplace Mode</li>
   EditObjectEdit
   sleep(1)
   '///+<li>Convert chart to 3D</li>
   if NOT fConvertChartTo3D() then
       warnlog "Conversion of chart to 3D failed -> Quit testcase"
       Call hCloseDocument
       goto endsub
   endif
   '///+<li>Invoke Format::3D View</li>
   Format3DView
   '///+<li>Goto tab-page Perspective</li>
   Kontext
   active.SetPage TabFormat3DViewGeometry
   '///+<li>Check if tab-page Perspective exists</li>
   Kontext "TabFormat3DViewGeometry"
   call DialogTest ( TabFormat3DViewGeometry )
   
   '///+<li>Goto tab-page Appearance</li>
   Kontext
   active.SetPage TabFormat3DViewAppearance
   '///+<li>Check if tab-page Appearance exists</li>
   Kontext "TabFormat3DViewAppearance"
   call DialogTest ( TabFormat3DViewAppearance )
   
   '///+<li>Goto tab-page Illumination</li>
   Kontext
   active.SetPage TabFormat3DViewIllumination
   '///+<li>Check if tab-page Illumination exists</li>
   Kontext "TabFormat3DViewIllumination"
   call DialogTest ( TabFormat3DViewIllumination )
   '///+<li>Click Color select button</li>
   ColorSelect.Click
   '///+<li>Check if Color dialog exists</li>
   Kontext "FarbeDLG"
   call DialogTest ( FarbeDLG )
   '///+<li>Close dialog</li>
   FarbeDLG.Cancel
   Kontext "TabFormat3DViewIllumination"
   
   '///+<li>Click Ambient Light select button</li>
   AmbientLightSelect.Click
   '///+<li>Check if Color dialog exists</li>
   Kontext "FarbeDLG"
   call DialogTest ( FarbeDLG )
   '///+<li>Close dialog</li>
   FarbeDLG.Cancel
   
   '///+<li>Close dialog</li>
   Kontext "TabFormat3DViewIllumination"
   TabFormat3DViewIllumination.Cancel
   '///+<li>Close document</li>
   Kontext "DocumentCalc"
   DocumentCalc.TypeKeys "<Escape>"
   Call hCloseDocument
'///</ul>

endcase
'-------------------------------------------------------------
'