summaryrefslogtreecommitdiff
path: root/testautomation/writer/required/includes/w_010_1.inc
blob: e7a5f600ddd1b0e7cf0e36ba09e2023c46d05907 (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
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
'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: w_010_1.inc,v $
'*
'* $Revision: 1.1 $
'*
'* last change: $Author: fredrikh $ $Date: 2008-06-18 08:26:31 $
'*
'* 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 : fredrik.haegg@sun.com
'*
'* short description :  Testcases for the Objectbars.
'*
'\******************************************************************

sub w_010_1

    printLog Chr(13) + "--------- Objectbars . Part two. (w_010_1.inc) ----------"
    gApplication = "WRITER"

    '   ** Objectbar Table
    Call tInsertFormula
    Call tMergeCells
    Call tSplitCells
    Call tOptimize
    Call tInsertCellRow
    Call tDeleteRow
    Call tDeleteColumn

    '   ** Graphics ( same as OLE-Objects and Frames )
    Call tGraphicWrap
    Call tGraphicAlign
    Call tGraphicFlip
    Call tGraphicArrange
    Call tGraphicBorders
    Call tGraphicProperties
    Call tGraphicAnchor

    '   ** Formula Bar
    Call tFormulaCancel
    Call tFormulaApply

    'Writer Web
    gApplication = "HTML"
    Call tHtmlDocGraphicWrap
    Call tHtmlDocGraphicAlign
    Call tHtmlDocGraphicProperties
    gApplication = "WRITER"

end sub
'-----------------------------------------------------------

testcase tInsertFormula
    printlog "- Table-Objectbar: Formula border in Writer"
    printlog " Open new document"
    Call hNewDocument
    printlog " Insert a table"
    Call hTabelleEinfuegen
    printlog " Click 'Sum' in object bar"
    Call hToolbarSelect ( "Table", true )
    if TableObjectbar.IsVisible = true then
        try
            FormelEingeben.Click
        catch
            Warnlog "Unable to access 'Formula'-Button on toolbar!"
            Call hCloseDocument
            goto endsub
        endcatch
    else
        Warnlog "TableObjectbar is not visible!"
        Call hCloseDocument
        goto endsub
    end if

    Sleep 1
    Kontext "OL_SW_Rechenleiste"
    if OL_SW_Rechenleiste.NotExists then
        warnlog "Formula border doesn't come up"
    else
        printlog " Click 'Cancel' in object bar"
        Verwerfen.Click
    end if

    printlog " Close active document"
    Call hCloseDocument
endcase

'-----------------------------------------------------------

testcase tMergeCells
    printlog "- Table-Objectbar: Merge Cells"
    printlog " Open new document"
    Call hNewDocument
    printlog " Insert a table"
    Call hTabelleEinfuegen
    printlog " Hit <Shift Right> 2 times"
    Call wTypeKeys ("<Shift Right>", 2)
    Sleep 2
    printlog " Click 'Merge cells' in object bar"
    Call hToolbarSelect ( "Table", true )
    if TableObjectbar.IsVisible = true then
        ZellenVerbinden.Click
    else
        Warnlog "TableObjectbar is not visible!"
        Call hCloseDocument
        goto endsub
    end if

    printlog " Close active document"
    Call hCloseDocument
endcase

'-----------------------------------------------------------

testcase tSplitCells
    printlog "- Table-Objectbar: Split Cells"
    printlog " Open new document"
    Call hNewDocument
    printlog " Insert a table"
    Call hTabelleEinfuegen
    Call hToolbarSelect ( "Table", true )
    printlog " Click 'Split Cells' in object bar"
    if TableObjectbar.IsVisible = true then
        ZelleTeilen.Click
    else
        Warnlog "TableObjectbar is not visible!"
        Call hCloseDocument
        goto endsub
    end if
    printlog " Cancel upcoming dialog"
    Kontext "ZellenTeilen"
    ZellenTeilen.Cancel
    printlog " Close active document"
    Call hCloseDocument
endcase

'-----------------------------------------------------------

testcase tOptimize
    printlog "- Table-Objectbar: Optimize Table"
    printlog " Open new document"
    Call hNewDocument

    printlog " Insert a table and select all in document"
    Call hTabelleEinfuegen
    Call wTypeKeys ("<Mod1 A>")
    Call hToolbarSelect ( "Table", true )
    wait 500
    printlog " Tear Off toolbar 'Optimize'"
    Kontext "TableObjectBar"
    try
        Optimieren.TearOff
    catch
        Warnlog "Unable to Tear Off Toolbox 'Optimize'"
        Call hCloseDocument
        goto endsub
    endcatch
    Call wTypeKeys ("<Mod1 a>")
    Sleep 1

    Kontext "OptimizeTablebar"
    printlog " Click 'Space Columns Equally'"
    SpaltenGleichmaessig.Click
    printlog " Click 'Space Rows Equally'"
    ZeilenGleichmaessig.Click
    Sleep 2
    printlog " Click 'Optimal Row Height'"
    OptimaleZeilenhoehe.Click

    Call wTypeKeys ("Optimize Table")
    printlog " Enter some text"
    Sleep 1
    Kontext "OptimizeTablebar"
    printlog " Click 'Optimal Column Width'"
    OptimaleSpaltenbreite.Click
    Sleep 1
    printlog " Close toolbar 'Optimize'"
    OptimizeTablebar.Close
    printlog " Close active document"
    Call hCloseDocument
endcase

'-----------------------------------------------------------

testcase tInsertCellRow
    printlog "- Table-Objectbar: Insert Cell"
    printlog " Open new document"
    Call hNewDocument
    printlog " Insert Table"
    Call hTabelleEinfuegen
    Call hToolbarSelect ( "Table", true )
    if TableObjectbar.IsVisible = true then
        ZeileEinfuegen.Click
    else
        Warnlog "TableObjectbar is not visible!"
        Call hCloseDocument
        goto endsub
    end if

    printlog " Click 'Insert Column' in object bar"
    Sleep 1
    printlog "- Table-Objectbar: Insert Row"
    printlog " Click 'Insert Row' in object bar"
    SpalteEinfuegen.Click
    printlog " Close active document"
    Call hCloseDocument
endcase

'-----------------------------------------------------------

testcase tDeleteRow
    printlog "- Table-Objectbar: Delete Row"
    printlog " Open new document"
    Call hNewDocument
    printlog " Insert a table"
    Call hTabelleEinfuegen
    Call hToolbarSelect ( "Table", true )
    printlog " Click 'Delete Row'"
    if TableObjectbar.IsVisible = true then
        ZeileLoeschen.Click
    else
        Warnlog "TableObjectbar is not visible!"
        Call hCloseDocument
        goto endsub
    end if

    Sleep 1
    printlog " Click 'Delete Row'"
    ZeileLoeschen.Click
    printlog " Close active document"
    Call hCloseDocument
endcase

'-----------------------------------------------------------

testcase tDeleteColumn
    dim i as Integer
    printlog "- Table-Objectbar: Delete Column"
    printlog " Open new document"
    Call hNewDocument
    printlog " Insert a table"
    Call hTabelleEinfuegen
    printlog " Click 'Delete Column' 2 times"
    for i=1 to 2
        Call hToolbarSelect ( "Table", true )
        if TableObjectbar.IsVisible = true then
            SpalteLoeschen.Click
        else
            Warnlog "TableObjectbar is not visible!"
            Call hCloseDocument
            goto endsub
        end if
        Sleep 1
    next i
    printlog " Close active document"
    Call hCloseDocument
endcase

'-----------------------------------------------------------

testcase tGraphicWrap
    printlog "- Grafik-(Rahmen)-Objectbar: Wrap"
    printlog " Open new document"
    Call hNewDocument
    printlog " Insert graphic 'writer/input/grafik/jolink.jpg'"
    Call hGrafikEinfuegen ( gTesttoolPath + "writer\required\input\graphics\jolink.jpg" )
    Call hToolbarSelect("Frame", true)
    try
        printlog " Check 'Wrap Off' in object bar"
        NoWrap.Click
        Sleep 1
    catch
        Warnlog "'Wrap Off' in Objectbar couldn't be checked"
    endcatch

    if gApplication <> "HTML" then
        try
            printlog " Check 'Wrap through' in object bar"
            Durchlauf.Click
            Sleep 1
        catch
            Warnlog "'Wrap through' in Objectbar couldn't be checked"
        endcatch

        try
            printlog " Check 'Wrap On' in object bar"
            Wrap.Click
            Sleep 1
        catch
            Warnlog "'Wrap on' in Objectbar couldn't be checked"
        endcatch
    else
        Call hToolbarSelect("Picture", true)
        try
            printlog " Check 'Wrap Left' in object bar"
            WrapLeft.Click
            Sleep 1
        catch
            Warnlog "'Wrap Left' in Objectbar couldn't be checked"
        endcatch

        try
            printlog " Check 'Wrap Right' in object bar"
            WrapRight.Click
            Sleep 1
        catch
            Warnlog "'Wrap Right' in Objectbar couldn't be checked"
        endcatch
    end if

    printlog " Close active document"
    Call hCloseDocument
endcase

'-----------------------------------------------------------

testcase tGraphicAlign
    printlog "- Graphic-(Frame)-Objectbar: Align"
    printlog " Open new document"
    Call hNewDocument
    printlog " Insert graphic 'writer/input/grafik/jolink.jpg'"
    Call hGrafikEinfuegen ( gTesttoolPath + "writer\required\input\graphics\jolink.jpg" )

    Call hToolbarSelect("Frame", true)
    try
        printlog " Click 'Left' in object bar"
        Links.Click
        Sleep 1
    catch
        Warnlog "'Left' in Objectbar couldn't be checked"
    endcatch

    try
        printlog " Click 'Right' in object bar"
        Rechts.Click
        Sleep 1
    catch
        Warnlog "'Right' in Objectbar couldn't be checked"
    endcatch

    ' Only Left and Right in WriterWeb
    if gApplication = "HTML" then
        printlog " Close active document"
        Call hCloseDocument
        goto endsub
    end if

    try
        printlog " Click 'Centered' in object bar (Not WriterWeb)"
        Zentriert.Click
        Sleep 1
    catch
        Warnlog "'Centered' in Objectbar couldn't be checked"
    endcatch

    try
        printlog " Click 'Center' in object bar (Not WriterWeb)"
        Mitte.Click
        Sleep 1
    catch
        Warnlog "'Center' in Objectbar couldn't be checked"
    endcatch

    try
        printlog " Click 'Top' in object bar (Not WriterWeb)"
        Oben.Click
        Sleep 1
    catch
        Warnlog "'Top' in Objectbar couldn't be checked"
    endcatch

    try
        printlog " Click 'Bottom' in object bar (Not WriterWeb)"
        Unten.Click
        Sleep 1
    catch
        Warnlog "'Bottom' auf Objectbar couldn't be checked"
    endcatch

    printlog " Close active document"
    Call hCloseDocument
endcase

'-----------------------------------------------------------

testcase tGraphicFlip
    printlog "- Graphic-(Frame)-Objectbar: Flip"
    if gApplication = "HTML" then
        Printlog "Not in WriterWeb!"
        goto endsub
    end if

    printlog " Open new document"
    Call hNewDocument
    printlog " Insert graphic 'writer/input/grafik/jolink.jpg'"
    Call hGrafikEinfuegen ( gTesttoolPath + "writer\required\input\graphics\jolink.jpg" )

    Call hToolbarSelect("Picture", true)
    try
        printlog " Click 'Flip Horizontal' in object bar"
        HorizontalSpiegeln.Click
        Sleep 1
    catch
        Warnlog "'Flip Horizontal' in Objectbar couldn't be checked"
    endcatch

    try
        printlog " Click 'Flip Vertical' in object bar"
        VertikalSpiegeln.Click
        Sleep 1
    catch
        Warnlog "'Flip vertical' in Objectbar couldn't be checked"
    endcatch

    try
        printlog " Click 'Flip Horizontal' in object bar"
        HorizontalSpiegeln.Click
        Sleep 1
        printlog " Click 'Flip Vertical' in object bar"
        VertikalSpiegeln.Click
        Sleep 1
    catch
    endcatch

    printlog " Close active document"
    Call hCloseDocument
endcase

'-----------------------------------------------------------

testcase tGraphicArrange
    printlog "- Graphic-(Frame)-Objectbar: Arrange"
    printlog " Open new document"
    Call hNewDocument
    printlog " Insert graphic 'writer/input/grafik/jolink.jpg'"
    Call hGrafikEinfuegen ( gTesttoolPath + "writer\required\input\graphics\jolink.jpg" )

    Call hToolbarSelect("Frame", true)
    try
        printlog " Click 'Send to back' in object bar"
        GanzNachHinten.Click
        Sleep 1
    catch
        Warnlog "'Send to back' in Objectbar couldn't be checked"
    endcatch

    try
        printlog " Click 'Bring to front' in object bar"
        GanzNachVorn.Click
        Sleep 1
    catch
        Warnlog "'Bring to front' in Objectbar couldn't be checked"
    endcatch

    printlog " Close active document"
    Call hCloseDocument
endcase

'-----------------------------------------------------------

testcase tGraphicBorders
    printlog "- Graphic-(Frame)-Objectbar: Border"
    printlog " Open new document"
    Call hNewDocument
    printlog " Insert graphic 'writer/input/grafik/jolink.jpg'"
    Call hGrafikEinfuegen ( gTesttoolPath + "writer\required\input\graphics\jolink.jpg" )
    Call hToolbarSelect("Frame", true)
    try
        printlog " Tear off Toolbox Border"
        Umrandung.TearOff
        Sleep 1
        Kontext "TB_Umrandung"
        TB_Umrandung.Move ( 20, 20 )
        printlog " Close toolbox"
        TB_Umrandung.Close
        Sleep 1
    catch
        Warnlog "Error in Toolbox Border"
    endcatch

    try
        Kontext "FrameObjectbar"
        printlog " Tear off toolbox 'Borderstyle'"
        Linienstil.TearOff
        Sleep 1
        Kontext "TB_Umrandungsstil"
        TB_Umrandungsstil.Move ( 20, 20 )
        printlog " Close toolbox"
        TB_Umrandungsstil.Close
        Sleep 1
    catch
        Warnlog "Error in Toolbox Borderstyle"
    endcatch

    try
        Kontext "FrameObjectbar"
        printlog " Tear off Toolbox 'Color'"
        LinienFarbe.TearOff
        Sleep 1
        Kontext "TB_Farbe"
        TB_Farbe.Move ( 20, 20 )
        TB_Farbe.Close
        printlog " Close toolbox"
        Sleep 1
    catch
        warnlog "Error in Toolbox Colour"
    endcatch

    printlog " Close active document"
    Call hCloseDocument
endcase

'-----------------------------------------------------------

testcase tGraphicProperties
    printlog "- Graphic-(Frame)-Objectbar: Properties"
    Dim j as integer

    printlog " Open new document"
    Call hNewDocument
    printlog " Insert graphic 'writer/input/grafik/jolink.jpg'"
    Call hGrafikEinfuegen ( gTesttoolPath + "writer\required\input\graphics\jolink.jpg" )
    Call hToolbarSelect("Picture", true)
    try
        printlog " Click 'Graphic Properties' in object bar"
        InsertGraphic.Click
    catch
        Warnlog "Error in Objectproperties in Objectbar"
        printlog " Close active document"
        Call hCloseDocument
        goto endsub
    endcatch

    printlog " In 'Graphic' dialog step through all tabpages"
    Kontext
    active.SetPage TabType
    Kontext "TabType"
    Call DialogTest ( TabType )

    Kontext
    active.SetPage TabZusaetze
    Kontext "TabZusaetze"
    Call DialogTest ( TabZusaetze )

    Kontext
    active.SetPage TabUmlauf
    Kontext "TabUmlauf"
    Call DialogTest ( TabUmlauf )

    Kontext
    active.SetPage TabHyperlinkRahmen
    Kontext "TabHyperlinkRahmen"
    Call DialogTest ( TabHyperlinkRahmen )

    Kontext
    active.SetPage TabGrafik
    Kontext "TabGrafik"
    Call DialogTest ( TabGrafik )

    Kontext
    active.SetPage TabUmrandung
    Kontext "TabUmrandung"
    Call DialogTest ( TabUmrandung )

    Kontext
    active.SetPage TabMakro
    ' if no JRE is installed a messagebox appears
    Do
        j = j + 1
        Kontext "Active"
        if Active.Exists then
            if Active.GetRT = 304 then
                if j = 1 then Warnlog Active.Gettext
                Active.Ok
            else
                exit do
            end if
        else
            exit do
        end if
    Loop
    Kontext "TabMakro"
    Call DialogTest ( TabMakro )

    printlog " Close 'Graphic' dialog"
    if gApplication <> "HTML" then
        Kontext
        active.SetPage TabHintergrund
        Kontext "TabHintergrund"
        Call DialogTest ( TabHintergrund )

        Kontext
        active.SetPage TabZuschneiden
        Kontext "TabZuschneiden"
        Call DialogTest ( TabZuschneiden )
        TabZuschneiden.Cancel
    else
        TabMakro.Cancel
    end if
    printlog " Close active document"
    Call hCloseDocument
endcase

'-----------------------------------------------------------

testcase tGraphicAnchor
Warnlog "#i102752# - tGraphicAnchor outcommented due to bug."
goto endsub

    printlog "- Graphic-(Frame)-Objectbar: Anchor"
    printlog " Open new document"
    Call hNewDocument
    printlog " Insert graphic 'writer/input/grafik/jolink.jpg'"
    Call hGrafikEinfuegen ( gTesttoolPath + "writer\required\input\graphics\jolink.jpg" )

    Call hToolbarSelect("Frame", true)
    Sleep 2
    printlog " Select Anchor 'to page'"
    try
        VerankerungWechseln.Click
        printlog " Click 'Change Anchor' in object bar"
    catch
        Warnlog "Error on anchoring objects"
        Call hCloseDocument
        printlog " Close active document"
        goto endsub
    endcatch
    Sleep 1
    MenuSelect ( MenuGetItemID (1) )
    Sleep 1
    printlog " Select Anchor 'Paragraph'"
    Kontext "FrameObjectbar"
    VerankerungWechseln.Click
    MenuSelect ( MenuGetItemID (2) )
    Sleep 1
    printlog " Select Anchor 'To Character'"
    Kontext "FrameObjectbar"
    VerankerungWechseln.Click
    MenuSelect ( MenuGetItemID (3) )
    Sleep 1
    printlog " Select Anchor 'As Character'"
    Kontext "FrameObjectbar"
    VerankerungWechseln.Click
    MenuSelect ( MenuGetItemID (4) )
    Sleep 1

    printlog " Close active document"
    Call hCloseDocument
endcase

'-----------------------------------------------------------

testcase tFormulaCancel
    printlog "- Formula Writer: Cancel"
    printlog " Open new document"
    Call hNewDocument
    printlog " Press <F2>"
    Call wTypeKeys ("<F2>")

    printlog " enter a formula"
    Kontext "OL_SW_Rechenleiste"
    Eingabefeld.TypeKeys "=summe(a+b)"
    printlog " Click 'Cancel' in formula bar"
    Verwerfen.Click
    printlog " Close active document"
    Call hCloseDocument
endcase

'-----------------------------------------------------------

testcase tFormulaApply
    printlog "- Formula Writer: Apply"
    Call hNewDocument
    printlog " Open new document"
    Call hTabelleEinfuegen
    printlog " Insert a table"
    Call wTypeKeys ("12<Right>13<Down>")
    printlog " Write in document 12<Cursor Right>13<Cursor Down>"
    Call hToolbarSelect ( "Table", true )
    printlog " Click 'Sum' in object bar"
    if TableObjectbar.IsVisible = true then
        FormelEingeben.Click
    else
        Warnlog "TableObjectbar is not visible!"
        Call hCloseDocument
        goto endsub
    end if

    Kontext "OL_SW_Rechenleiste"
    Eingabefeld.TypeKeys "(" + Chr(60)+ "A1:B1"
    Eingabefeld.TypeKeys Chr(62) + ")"
    printlog " Enter as formula (A1:B1) and click 'Apply'"
    Uebernehmen.Click
    Sleep 2
    printlog " Check result of formula"
    Call wTypeKeys ("<Mod1 A>")
    EditCopy
    if GetClipboardText <> "25" then
        warnlog "Not possible to calculate in tables anymore. Result isn't 25, is: " + GetClipboardText
    end if
    printlog " Close active document"
    Call hCloseDocument
endcase

'-----------------------------------------------------------

testcase tHtmlDocGraphicWrap
    printlog "- Grafik-(Rahmen)-Objectbar: Wrap"
    gApplication = "HTML"

    printlog " Open new document"
    Call hNewDocument

    Call hGrafikEinfuegen ( gTesttoolPath + "writer\required\input\graphics\jolink.jpg" )
    printlog " Insert graphic 'writer/input/grafik/jolink.jpg'"
    Call hToolbarSelect("Frame", true)
    try
        printlog " Check 'Wrap Off' in object bar"
        NoWrap.Click
        Sleep 1
    catch
        Warnlog "'Wrap Off' in Objectbar couldn't be checked"
    endcatch

    Call hToolbarSelect("Picture", true)
    try
        WrapLeft.Click
        printlog " Check 'Wrap Left' in object bar"
        Sleep 1
    catch
        Warnlog "'Wrap Left' in Objectbar couldn't be checked"
    endcatch

    try
        printlog " Check 'Wrap Right' in object bar"
        WrapRight.Click
        Sleep 1
    catch
        Warnlog "'Wrap Right' in Objectbar couldn't be checked"
    endcatch

    Call hCloseDocument
    printlog " Close active document"
    gApplication = "WRITER"
endcase

'-----------------------------------------------------------

testcase tHtmlDocGraphicAlign
    printlog "- Graphic-(Frame)-Objectbar: Align"
    gApplication = "HTML"

    printlog " Open new document"
    Call hNewDocument
    printlog " Insert graphic 'writer/input/grafik/jolink.jpg'"
    Call hGrafikEinfuegen ( gTesttoolPath + "writer\required\input\graphics\jolink.jpg" )

    Call hToolbarSelect("Frame", true)
    try
        Links.Click
        printlog " Click 'Left' in object bar"
        Sleep 1
    catch
        Warnlog "'Left' in Objectbar couldn't be checked"
    endcatch

    try
        Rechts.Click
        printlog " Click 'Right' in object bar"
        Sleep 1
    catch
        Warnlog "'Right' in Objectbar couldn't be checked"
    endcatch

    ' Only Left and Right in WriterWeb
    printlog " Close active document"
    Call hCloseDocument
    gApplication = "WRITER"
endcase

'-----------------------------------------------------------

testcase tHtmlDocGraphicProperties
    printlog "- Graphic-(Frame)-Objectbar: Properties"
    Dim j as integer

    gApplication = "HTML"
    printlog " Open new document"
    Call hNewDocument

    printlog " Insert graphic 'writer/input/grafik/jolink.jpg'"
    Call hGrafikEinfuegen ( gTesttoolPath + "writer\required\input\graphics\jolink.jpg" )
    Call hToolbarSelect("Picture", true)
    try
        printlog " Click 'Graphic Properties' in object bar"
        InsertGraphic.Click
    catch
        Warnlog "Error in Objectproperties in Objectbar"
        printlog " Close active document"
        Call hCloseDocument
        goto endsub
    endcatch

    printlog " In 'Graphic' dialog step through all tabpages"
    Kontext
    active.SetPage TabType
    Kontext "TabType"
    Call DialogTest ( TabType )

    Kontext
    active.SetPage TabZusaetze
    Kontext "TabZusaetze"
    Call DialogTest ( TabZusaetze )

    Kontext
    active.SetPage TabUmlauf
    Kontext "TabUmlauf"
    Call DialogTest ( TabUmlauf )

    Kontext
    active.SetPage TabHyperlinkRahmen
    Kontext "TabHyperlinkRahmen"
    Call DialogTest ( TabHyperlinkRahmen )

    Kontext
    active.SetPage TabGrafik
    Kontext "TabGrafik"
    Call DialogTest ( TabGrafik )

    Kontext
    active.SetPage TabUmrandung
    Kontext "TabUmrandung"
    Call DialogTest ( TabUmrandung )

    Kontext
    active.SetPage TabMakro
    ' if no JRE is installed a messagebox appears
    Do
        j = j + 1
        Kontext "Active"
        if Active.Exists then
            if Active.GetRT = 304 then
                if j = 1 then Warnlog Active.Gettext
                Active.Ok
            else
                exit do
            end if
        else
            exit do
        end if
    Loop
    Kontext "TabMakro"
    Call DialogTest ( TabMakro )
    printlog " Close dialog"
    TabMakro.Cancel

    printlog " Close active document"
    Call hCloseDocument
    gApplication = "WRITER"
endcase

'-----------------------------------------------------------