1 'encoding UTF-8 Do not remove or change this line!
2 '**************************************************************************
3 ' DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 ' Copyright 2000, 2010 Oracle and/or its affiliates.
7 ' OpenOffice.org - a multi-platform office productivity suite
9 ' This file is part of OpenOffice.org.
11 ' OpenOffice.org is free software: you can redistribute it and/or modify
12 ' it under the terms of the GNU Lesser General Public License version 3
13 ' only, as published by the Free Software Foundation.
15 ' OpenOffice.org is distributed in the hope that it will be useful,
16 ' but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ' GNU Lesser General Public License version 3 for more details
19 ' (a copy is included in the LICENSE file that accompanied this code).
21 ' You should have received a copy of the GNU Lesser General Public License
22 ' version 3 along with OpenOffice.org. If not, see
23 ' <http://www.openoffice.org/license.html>
24 ' for a copy of the LGPLv3 License.
26 '/***********************************************************************
28 '* owner : oliver.craemer@oracle.com
30 '* short description : Resource Test - Insert Menu
32 '************************************************************************
34 ' #1 tInsertManualBreak
36 ' #1 tInsertRowsColumns
38 ' #1 tInsertSheetFromFile
40 ' #1 tInsertSpecialCharacters
41 ' #1 tInsertFormattingMark
44 ' #1 tInsertFunctionList
45 ' #1 tInsertNamesDefine
46 ' #1 tInsertNamesInsert
47 ' #1 tInsertNamesCreate
48 ' #1 tInsertNamesLabels
50 ' #1 tInsertPictureFromFile
51 ' #1 tInsertMovieSound
53 ' #1 tInsertObjectPlugin
54 ' #1 tInsertObjectSound
55 ' #1 tInsertObjectVideo
56 ' #1 tInsertObjectFormular
58 ' #1 tInsertFloatingFrame
61 '\***********************************************************************
65 Printlog Chr(13) + "--------- Insert Menu (c_upd_insertmenu.inc) ---------"
67 call tInsertManualBreak
69 call tInsertRowsColumns
71 call tInsertSheetFromFile
73 call tInsertSpecialCharacters
74 call tInsertFormattingMark
77 call tInsertFunctionList
78 call tInsertNamesDefine
79 call tInsertNamesInsert
80 call tInsertNamesCreate
81 call tInsertNamesLabels
83 call tInsertPictureFromFile
84 call tInsertMovieSound
86 call tInsertObjectPlugin
87 call tInsertObjectSound
88 call tInsertObjectVideo
89 call tInsertObjectFormular
91 call tInsertFloatingFrame
95 '-----------------------------------------------------------
97 testcase tInsertManualBreak
98 '///<u><b>Insert - Manual Break</b></u>
100 '/// Opening new spreadsheet document for getting defined starting environment
101 printlog " Opening new spreadsheet document for getting defined starting environment"
104 printlog " Goto cell D5"
105 call fCalcSelectRange ("D5")
106 '/// Insert a manual row break by 'Insert – Manual Break – Row Break'
107 printlog " Insert a manual row break by 'Insert – Manual Break – Row Break'"
108 InsertManuelBreakRowBreak
109 '/// Insert a manual column break by 'Insert – Manual Break – Column Break'
110 printlog " Insert a manual column break by 'Insert – Manual Break – Column Break'"
111 InsertManuelBreakColumnBreak
112 '/// Close starting document
113 printlog " Close starting document"
118 '-----------------------------------------------------------
120 testcase tInsertCells
121 '///<u><b>Insert - Cells</b></u>
123 '/// Open new Spreadsheet document
124 printlog " Open new Spreadsheet document"
126 '/// Open 'Insert Cells'- dialog by 'Insert – Cells'
127 printlog " Open 'Insert Cells'- dialog by 'Insert – Cells'"
129 Kontext "ZellenEinfuegen"
130 Call DialogTest ( ZellenEinfuegen )
131 '/// Check option 'Shift cells down'
132 printlog " Check option 'Shift cells down'"
133 ZellenNachUnten.Check
134 '/// Check option 'Shift cells right'
135 printlog " Check option 'Shift cells right'"
136 ZellenNachRechts.Check
137 '/// Check option 'Entire row'
138 printlog " Check option 'Entire row'"
140 '/// Check option 'Entire column'
141 printlog " Check option 'Entire column'"
143 '/// Close dialog with 'Cancel'
144 printlog " Close dialog with 'Cancel'"
145 ZellenEinfuegen.Cancel
146 '/// Close starting document
147 printlog " Close starting document"
152 '-----------------------------------------------------------
154 testcase tInsertRowsColumns
155 '///<u><b>Insert - Rows/Columns</b></u>
157 '/// Open new Spreadsheet document
158 printlog " Open new Spreadsheet document"
160 '/// Insert a new row by 'Insert - Rows'
161 printlog " Insert a new row by 'Insert - Rows'"
163 '/// Insert a new column by 'Insert - Columns'
164 printlog " Insert a new column by 'Insert - Columns'"
167 printlog " Close starting document"
172 '-----------------------------------------------------------
174 testcase tInsertSheet
175 '///<u><b>Insert - Sheet</b></u>
177 '/// Open new Spreadsheet document
178 printlog " Open new Spreadsheet document"
180 '/// Open 'Insert Sheet' – dialog by 'Insert – Sheet'
181 printlog " Open 'Insert Sheet' – dialog by 'Insert – Sheet'"
183 Kontext "TabelleEinfuegenCalc"
184 Call DialogTest ( TabelleEinfuegenCalc )
185 '/// Check option 'After current sheet'
186 printlog " Check option 'After current sheet'"
188 '/// Set 'Name' to 'Test'
189 printlog " Set 'Name' to 'Test'"
190 TabellenName.SetText "Test"
191 '/// Set number of sheets to 2
192 printlog " Set number of sheets to 2"
194 '/// Check option 'From File'
195 printlog " Check option 'From File'"
196 AusDateiErstellen.Check
197 '/// Check option 'Link'
198 printlog " Check option 'Link'"
200 '/// Click on 'Browse' – button
203 '/// Close 'Insert' – dialog with 'Cancel'
204 printlog " Close 'Insert' – dialog with 'Cancel'"
206 Kontext "TabelleEinfuegenCalc"
207 '/// Close 'Insert Sheet' – dialog with 'Cancel'
208 printlog " Close 'Insert Sheet' – dialog with 'Cancel'"
209 TabelleEinfuegenCalc.Cancel
211 printlog " Close starting document"
216 '-----------------------------------------------------------
218 testcase tInsertSheetFromFile
219 '///<u><b>Insert - Sheet From File</b></u>
221 '/// Open new Spreadsheet document
222 printlog " Open new Spreadsheet document"
224 '/// Open 'Insert Sheet' – dialog by 'Insert – Sheet From File'
225 printlog " Open 'Insert Sheet' – dialog by 'Insert – Sheet From File'"
228 '/// Set filename 'spreadsheet/required/input/twosheets.ods'
229 printlog " Set filename 'spreadsheet/required/input/twosheets.ods'"
230 Dateiname.setText ( convertpath ( gTesttoolPath & "spreadsheet/required/input/twosheets.ods" ) )
231 '/// Close 'Insert' – dialog with 'Insert'
232 printlog " Close 'Insert' – dialog with 'Insert'"
234 Kontext "TabelleEinfuegenCalc"
235 '/// Verify that the selected file has two sheets
236 printlog " Verify that the selected file has two sheets"
237 if Auswahl.GetItemCount <> 2 then
238 warnlog "The file has more/less than two sheets"
240 '/// Close 'Insert Sheet' – dialog with 'Insert'
241 printlog " Close 'Insert Sheet' – dialog with 'Insert'"
242 TabelleEinfuegenCalc.Cancel
244 printlog " Close starting document"
249 '-----------------------------------------------------------
252 '///<u><b>Insert - Link</b></u>
254 '/// Open new Sreadsheet document
255 printlog " Open new Spreadsheet document"
257 '/// Open 'External Data' – dialog by 'Insert – Link To External Data'
258 printlog " Open 'External Data' – dialog by 'Insert – Link To External Data'"
259 InsertLinkToExternalData
260 Kontext "ExternalData"
261 call Dialogtest (ExternalData)
262 '/// Press browse button for URL
263 printlog " Press browse button for URL"
266 '/// Close 'Insert' – dialog with 'Cancel'
267 printlog " Close 'Insert' – dialog with 'Cancel'"
269 Kontext "ExternalData"
270 '/// Check option 'Updata every'
271 printlog " Check option 'Updata every'"
273 '/// Increase updatetimer by 1
274 printlog " Increase updatetimer by 1"
276 '/// Close 'External Data' – dialog with 'Cancel'
277 printlog " Close 'External Data' – dialog with 'Cancel'"
279 '/// Close starting document
280 printlog " Close starting document"
285 '-----------------------------------------------------------
287 testcase tInsertSpecialCharacters
288 '///<u><b>Insert - Special Characters</b></u>
290 '///Open new Spreadsheet document
291 printlog " Open new Spreadsheet document"
293 '/// Open 'Special Characters' – dialog by 'Insert – Special Characters'
294 printlog " Open 'Special Characters' – dialog by 'Insert – Special Characters'"
295 InsertSpecialCharacterCalc
296 Kontext "Sonderzeichen"
297 DialogTest ( Sonderzeichen )
298 '/// Change 'Font' to next one
299 printlog " Change 'Font' to next one"
300 if Schrift.GetItemCount = Schrift.GetSelIndex then
301 Schrift.Select(Schrift.GetSelIndex -1)
302 else Schrift.Select(Schrift.GetSelIndex +1)
304 '/// Change 'Subset' to next one
305 printlog " Change 'Subset' to next one"
306 If Subset.IsVisible then
307 if Subset.GetItemCount = Subset.GetSelIndex then
308 Subset.Select(Subset.GetSelIndex -1)
309 else Subset.Select(Subset.GetSelIndex +1)
312 '/// Choose a character by clicking
313 printlog " Choose a character by clicking"
314 Zeichenanzeige.MouseDown 50,50
315 Zeichenanzeige.MouseUp 50,50
316 '/// Delete character by 'Delete'
317 printlog " Delete character by 'Delete'"
319 '/// Close 'Special Characters' – dialog with 'Cancel'
320 printlog " Close 'Special Characters' – dialog with 'Cancel'"
323 printlog " Close starting document"
328 '-----------------------------------------------------------
330 testcase tInsertFormattingMark
331 '///<u><b>Insert - Formatting Mark</b></u>
333 Dim bAsianLanguage as boolean
334 Dim bCTLlanguage as boolean
336 '/// Open new Spreadsheet document
337 printlog " Open new Spreadsheet document"
339 '/// Enable support for CJK and CTL by 'Tools-Options-Language Settings'
340 printlog " Enable support for CJK and CTL by 'Tools-Options-Language Settings'"
341 bAsianLanguage = ActiveDeactivateAsianSupport(TRUE)
342 bCTLLanguage = ActiveDeactivateCTLSupport(TRUE)
344 printlog " Select cell A1"
345 call fCalcSelectRange ("A1")
346 '/// Enter 'Test' in cell 'A1' to activate editmode
347 printlog " Enter 'Test' in cell 'A1' to activate editmode"
348 DocumentCalc.TypeKeys "Test"
349 '/// Enter in cell 'Insert – Formatting Mark – Non-Breaking Space'
350 printlog " Enter in cell 'A' and 'Insert – Formatting Mark – Non-Breaking Space'"
351 InsertNonBreakingSpace
352 '/// Enter in cell 'Insert – Formatting Mark – Non-Breaking Hyphen'
353 printlog " Enter in cell 'Insert – Formatting Mark – Non-Breaking Hyphen'"
355 '/// Enter in cell 'Insert – Formatting Mark – Optional Hyphen'
356 printlog " Enter in cell 'Insert – Formatting Mark – Optional Hyphen'"
358 '/// Enter in cell 'Insert – Formatting Mark – No-Width Optional Break'
359 printlog " Enter in cell 'Insert – Formatting Mark – No-Width Optional Break'"
361 '/// Enter in cell 'Insert – Formatting Mark – No-Width no break'
362 printlog " Enter in cell 'Insert – Formatting Mark – No-Width no break'"
364 '/// Enter in cell 'Insert – Formatting Mark – Left-to-right-mark'
365 printlog "/ Enter in cell 'Insert – Formatting Mark – Left-to-right-mark'"
367 '/// Enter in cell 'Insert – Formatting Mark – right-to-left-mark'
368 printlog " Enter in cell 'Insert – Formatting Mark – right-to-left-mark'"
370 '/// Leave cell with 'Enter'
371 printlog " Leave cell with 'Enter'"
372 DocumentCalc.TypeKeys "<Return>"
373 '/// Set support for CTL and CJK back to defaults
374 printlog " Set support for CTL and CJK back to defaults"
375 if bAsianLanguage = FALSE then
376 Call ActiveDeactivateAsianSupport(FALSE)
378 if bCTLLanguage = FALSE then
379 Call ActiveDeactivateCTLSupport(FALSE)
382 printlog " Close starting document"
387 '-----------------------------------------------------------
389 testcase tInsertHyperlink
390 '///<u><b>Insert - Hyperlink</b></u>
392 '/// Open new Spreadsheet document
393 printlog " Open new Spreadsheet document"
395 '/// Open 'Hyperlink' – dialog via 'Insert – Hyperlink'
396 printlog " Open 'Hyperlink' – dialog via 'Insert – Hyperlink'"
399 kontext "HyperlinkDialog"
400 if ( HyperlinkDialog.exists( 2 ) ) then
403 '/// Switch to category 'Internet' (first one)
404 printlog " Switch to category 'Internet'"
405 Auswahl.TypeKeys "<HOME>"
407 printlog " Choose 'Web'"
408 Kontext "TabHyperlinkInternet"
410 Call DialogTest ( TabHyperlinkInternet,1 )
411 '/// Click on 'Target in Document' – button (the target dialog appears)
412 printlog " Click on 'Target in Document' – button (the target dialog appears)"
414 Kontext "ZielImDokument"
415 Call DialogTest ( ZielImDokument )
416 '/// Close 'Target' – dialog with 'Close'
417 printlog " Close 'Target' – dialog with 'Close'"
419 Kontext "TabHyperlinkInternet"
421 printlog " Choose 'FTP'"
423 Call DialogTest ( TabHyperlinkInternet,2 )
424 '/// Check that the 'Target' – button is disabled
425 printlog " Check that the 'Target' – button is disabled"
426 if Target.IsEnabled then
427 warnlog "The target button is enabled, but should be disabled"
429 '/// Check option 'Anonymous User'
430 printlog " Check option 'Anonymous User'"
431 AnonymerBenutzer.Check
432 '/// Check that 'Login Name' is disabled
433 printlog " Check that 'Login Name' is disabled"
434 if Loginname.IsEnabled then
435 warnlog "The Loginname is enabled, but should be disabled"
438 printlog " Chose 'Telnet'"
440 Call DialogTest ( TabHyperlinkInternet,3 )
441 '/// Check that the 'Target' – button is disabled
442 printlog " Check that the 'Target' – button is disabled"
443 if Target.IsEnabled then
444 warnlog "The target button is enabled, but should be disabled"
446 '/// Switch to category 'Mail & News'
448 Auswahl.TypeKeys "<DOWN>"
449 Kontext "TabHyperlinkMailUndNews"
450 Call DialogTest ( TabHyperlinkMailUndNews )
451 '/// Click twice on 'Data Source' – button to turn on / off the databasebeamer
452 printlog " Click twice on 'Data Source' – button to turn on / off the databasebeamer"
455 '/// Check option 'Mail'
456 printlog " Check option 'Mail'"
458 '/// Check that the editfield for 'Receiver' is enabled
459 printlog " Check that the editfield for 'Receiver' is enabled"
460 if not Receiver.IsEnabled then
461 warnlog "Receiver is disabled but should be enabled"
463 '/// Check that the editfield for 'Subject' is enabled
464 printlog " Check that the editfield for 'Subject' is enabled"
465 if not Betreff.IsEnabled then
466 warnlog "Subject is disabled but should be enabled"
468 '/// Check option 'News'
469 printlog " Check option 'News'"
471 '/// Check that the editfield for 'Subject' is disabled
472 printlog " Check that the editfield for 'Subject' is disabled"
473 if Betreff.IsEnabled then
474 warnlog "Subject is enabled but should be disabled"
476 '/// Switch to category Document
477 printlog " Switch to category Document"
479 Auswahl.TypeKeys "<DOWN>"
480 Kontext "TabHyperlinkDokument"
481 Call DialogTest ( TabHyperlinkDokument )
482 '/// Enter 'Test' in 'Path'
483 printlog " Enter 'Test' in 'Path'"
485 '/// Click on 'Open' – button
486 printlog " Click on 'Open' – button"
489 '/// Close 'Open' – dialog with 'Cancel'
490 printlog " Close 'Open' – dialog with 'Cancel'"
492 Kontext "TabHyperlinkDokument"
493 '/// Click on 'Target in Document' – button (the target dialog appears)
494 printlog " Click on 'Target in Document' – button (the target dialog appears)"
496 Kontext "ZielImDokument"
497 '/// Close 'Target' – dialog with 'Close'
498 printlog " Close 'Target' – dialog with 'Close'"
501 '/// Switch to category 'New Document'
502 printlog " Switch to category 'New Document'"
503 Auswahl.TypeKeys "<DOWN>"
504 Kontext "TabHyperlinkNeuesDokument"
505 Call DialogTest ( TabHyperlinkNeuesDokument )
506 '/// Check 'Edit Now'
507 printlog " Click 'Edit Now'"
508 SofortBearbeiten.check
509 '/// Check 'Edit Later'
510 printlog " Click 'Edit Later'"
511 SpaeterBearbeiten.check
512 '/// Click on 'Select Path' – button
513 printlog " Click on 'Select Path' – button"
516 '/// Close 'Select Path' – dialog with 'Cancel'
517 printlog " Close 'Select Path' – dialog with 'Cancel'"
519 Kontext "TabHyperlinkNeuesDokument"
520 '/// Check that the 'Frame' listbox has items
521 printlog " Check that the 'Frame' listbox has items"
522 if Frame.GetItemCount < 1 then
523 warnlog "The Frame combobox is empty"
525 '/// Check that the 'Form' listbox has 2 entries
526 printlog " Check that the 'Form' listbox has 2 entries"
527 if Form.GetItemCount <> 2 then
528 warnlog "The Form combobox has not 2 items"
530 '/// Close 'Hyperlink' – dialog with 'Close'
531 printlog " Close 'Hyperlink' – dialog with 'Close'"
532 kontext "HyperlinkDialog"
533 HyperlinkDialog.Close()
535 warnlog( "Failed to open <HyperlinkDialog>" )
538 printlog " Close starting document"
543 '-----------------------------------------------------------
545 testcase tInsertFunction
546 '///<u><b>Insert - Function</b></u>
548 Dim ifunctionCount as integer
549 Dim ifunctionIndex as integer
551 '/// Open new Spreadsheet document
552 printlog " Open new Spreadsheet document"
554 '/// Open the 'Function Wizard' via 'Insert – Function'
555 printlog " Open the 'Function Wizard' via 'Insert – Function'"
557 Kontext "FunctionWizard"
558 '/// Check that there are 13 entries in the category listbox
559 printlog " Check that there are 13 entries in the category listbox"
560 if CategoryLB.GetItemCount <> 13 then
561 warnlog "There are " & CategoryLB.GetItemCount & " categories instead of 13"
563 '/// Choose the second entry (all) in the category listbox
564 printlog " Choose the second entry (all) in the category listbox"
566 '/// Choose all entries in the function list and click 'Next' button
567 printlog " Choose all entries in the function list"
568 ifunctionCount = FunctionLB.getItemCount
569 for ifunctionIndex = 1 To ifunctionCount
571 FunctionLB.Select(ifunctionIndex)
573 printlog FunctionLB.GetSelText
574 call DialogTest ( FunctionWizard,ifunctionIndex )
575 '/// Click on 'Next' – button
577 call DialogTest ( FunctionWizard,(ifunctionCount + ifunctionIndex) )
578 Formel.typekeys "<MOD1 A><DELETE>", true
580 '/// Check option 'Array'
581 printlog " Check option 'Array'"
583 '/// Choose the third entry (database) in the category listbox
584 printlog " Choose the third entry (database) in the category listbox"
586 '/// Choose first function
587 printlog " Choose first function"
588 FunctionLB.Select (1)
589 '/// Click on 'Next' button
590 printlog " Click on 'Next' button"
592 '/// Click on 'Shrink' – button; the range chooser appears
593 printlog " Click on 'Shrink' – button; the range chooser appears"
595 '/// Enter 'A1' in rangechooser
596 printlog " Enter 'A1' in rangechooser"
597 Editfield1.SetText ("A1")
598 '/// Click on 'Maximize' – button
599 printlog " Click on 'Maximize' – button"
601 '/// Click on 'fx' – button
602 printlog " Click on 'fx' – button"
603 Functionsbutton1.click
604 '/// Switch to tabpage 'Structure'
605 printlog " Switch to tabpage 'Structure'"
606 Kontext "FunctionWizardTabControl"
607 FunctionWizardTabControl.setpage TabFunctionWizardStructure
608 Kontext "FunctionWizard"
609 call DialogTest ( FunctionWizard,((ifunctionCount *2)+1) )
610 '/// Close dialog with 'Cancel'
611 printlog " Close dialog with 'Cancel'"
612 FunctionWizard.Cancel
614 printlog " Close starting document"
619 '-----------------------------------------------------------
621 testcase tInsertFunctionList
622 '///<u><b>Insert - Function List</b></u>
624 '/// Open new Spreadsheet document
625 printlog " Open new Spreadsheet document"
627 '/// Check if 'function list' is already opened
628 printlog " Check if 'function list' is already opened"
629 Kontext "FunctionsCalc"
630 if FunctionsCalc.Exists(2) then
631 printlog "Functions List was already open"
633 '/// Open 'function list' by 'Insert – Function List'
634 printlog " Open 'function list' by 'Insert – Function List'"
637 '/// Check that there are 13 categories in the listbox
638 printlog " Check that there are 13 categories in the listbox"
639 if Category.GetItemCount <> 13 then
640 warnlog "The count of categories is " & Category.GetItemCount & " instead of 13"
642 '/// Click on second function
643 printlog " Click on second function"
644 FunctionList.Select(2)
645 call DialogTest ( FunctionsCalc )
646 '/// Click on 'Insert' – button to insert the function into the cell
647 printlog " Click on 'Insert' – button to insert the function into the cell"
649 '/// Press 'ESC' to leave insert mode
650 printlog " Press 'ESC' to leave insert mode"
651 kontext "DocumentCalc"
652 DocumentCalc.TypeKeys "<ESCAPE>"
653 '/// Close function list by 'Insert – Function list'
654 printlog " Close function list by 'Insert – Function list'"
657 printlog " Close starting document"
662 '-----------------------------------------------------------
664 testcase tInsertNamesDefine
665 '///<u><b>Insert - Names – Define</b></u>
667 '/// Open new Spreadsheet document
668 printlog " Open new Spreadsheet document"
670 '/// Open 'Define Names' -dialog by 'Insert – Names – Define'
671 printlog " Open 'Define Names' -dialog by 'Insert – Names – Define'"
673 Kontext "NamenFestlegen"
674 '/// Click on 'More' – button
675 printlog " Click on 'More' – button"
677 DialogTest ( NamenFestlegen )
678 '/// Check that the 'Add' – button is disabled
679 printlog " Check that the 'Add' – button is disabled"
680 if Hinzufuegen.IsEnabled then
681 warnlog "'Add' is enabled but should be disabled"
683 '/// Check that the 'Delete' – button is disabled
684 printlog " Check that the 'Delete' – button is disabled"
685 if Loeschen.IsEnabled then
686 warnlog "'Delete' is enabled but should be disabled"
688 '/// Check that the 'Shrink' – button is disabled
689 printlog " Check that the 'Shrink' – button is disabled"
690 if ZugeordnetZuButton.IsEnabled then
691 warnlog "'Shrink' is enabled but should be disabled"
693 '/// Check that the 'Print Range' option is disabled
694 printlog " Check that the 'Print Range' option is disabled"
695 if Druckbereich.IsEnabled then
696 warnlog "'Printrange' is enabled but should be disabled"
698 '/// Check that the 'Filter' option is disabled
699 printlog " Check that the 'Filter' option is disabled"
700 if Filter.IsEnabled then
701 warnlog "'Filter' is enabled but should be disabled"
703 '/// Check that the 'Repeat Column' option is disabled
704 printlog " Check that the 'Repeat Column' option is disabled"
705 if Wiederholungsspalte.IsEnabled then
706 warnlog "'Repeat Column' is enabled but should be disabled"
708 '/// Check that the 'Repeat Row' option is disabled
709 printlog " Check that the 'Repeat Row' option is disabled"
710 if Wiederholungszeile.IsEnabled then
711 warnlog "'Repeat Row' is enabled but should be disabled"
713 '/// Enter the name 'Test'
714 printlog " Enter the name 'Test'"
715 BereichsName.SetText "Test"
716 '/// Press the 'Shrink' – button
717 printlog " Press the 'Shrink' – button"
718 ZugeordnetZuButton.click
719 '/// Click on 'Maximize' – button
720 printlog " Click on 'Maximize' – button"
721 ZugeordnetZuButton.click
722 '/// Check the 'Print Range' option
723 printlog " Check the 'Print Range' option"
725 '/// Check the 'Filter' option
726 printlog " Check the 'Filter' option"
728 '/// Check the 'Repeat Column' option
729 printlog " Check the 'Repeat Column' option"
730 Wiederholungsspalte.check
731 '/// Check the 'Repeat Row' option
732 printlog " Check the 'Repeat Row' option"
733 Wiederholungszeile.check
734 '/// Press the 'Add' – button
735 printlog " Press the 'Add' – button"
737 '/// Choose the 'Test' name
738 printlog " Choose the 'Test' name"
739 BereichsName.Select "Test"
740 '/// Press the 'Delete' – button
741 printlog " Press the 'Delete' – button"
743 '/// On appearing messagebox click 'Yes'
744 printlog " On appearing messagebox click 'Yes'"
746 if Active.exists( 2 ) then
749 '/// Close dialog with 'Cancel'
750 printlog " Close dialog with 'Cancel'"
751 Kontext "NamenFestlegen"
752 NamenFestlegen.Cancel
753 '/// Close the document
754 printlog " Close starting document"
759 '-----------------------------------------------------------
761 testcase tInsertNamesInsert
762 '///<u><b>Insert - Names – Define</b></u>
764 '/// Open new Spreadsheet document
765 printlog " Open new Spreadsheet document"
768 printlog " Select cell A1"
769 call fCalcSelectRange ("A1")
770 '/// Open 'Define Names' -dialog by 'Insert – Names – Define'
771 printlog " Open 'Define Names' -dialog by 'Insert – Names – Define'"
773 Kontext "NamenFestlegen"
774 '/// Enter the name 'Test'
775 printlog " Enter the name 'Test'"
776 BereichsName.SetText "Test"
777 '/// Press the 'Add' – button
778 printlog " Press the 'Add' – button"
780 '/// Close dialog with 'OK'
781 printlog " Close dialog with 'OK'"
784 printlog " Select cell D4"
785 call fCalcSelectRange ("D4")
786 '/// Open 'Insert Names' – dialog by 'Insert – Names – Insert'
787 printlog " Open 'Insert Names' – dialog by 'Insert – Names – Insert'"
789 Kontext "NamenEinfuegen"
790 Call DialogTest ( NamenEinfuegen )
791 '/// Select name 'Test'
792 printlog " Select name 'Test'"
793 NamenAuswahl.Select "Test"
794 '/// Press 'OK' – button (the dialog will be closed)
795 printlog " Press 'OK' – button (the dialog will be closed)"
797 '/// Press 'Enter' to leave the editmode of the cell
798 printlog " Press 'Enter' to leave the editmode of the cell"
799 kontext "DocumentCalc"
800 DocumentCalc.TypeKeys "<ESCAPE>"
801 '/// Open 'Define Names' -dialog by 'Insert – Names – Insert'
802 printlog " Open 'Define Names' -dialog by 'Insert – Names – Insert'"
804 Kontext "NamenEinfuegen"
805 '/// Press 'Insert All' – button (the dialog will be closed)
806 printlog " Press 'Insert All' – button (the dialog will be closed)"
809 printlog " Close starting document"
814 '-----------------------------------------------------------
816 testcase tInsertNamesCreate
817 '///<u><b>Insert - Names – Create</b></u>
819 '/// Open new Spreadsheet document
820 printlog " Open new Spreadsheet document"
822 '/// Open 'Create Names' – dialog by 'Insert – Names – Create'
823 printlog " Open 'Create Names' – dialog by 'Insert – Names – Create'"
825 Kontext "NamenErzeugen"
826 DialogTest ( NamenErzeugen )
827 '/// Check option 'Top row'
828 printlog " Check option 'Top row'"
830 '/// Check option 'Left column'
831 printlog " Check option 'Left column'"
833 '/// Check option 'Bottom row'
834 printlog " Check option 'Bottom row'"
836 '/// Check option 'Right column'
837 printlog " Check option 'Right column'"
839 '/// Press 'OK' button
840 printlog " Press 'OK' button"
842 '/// Close warningbox with 'OK'
843 printlog " Close warningbox with 'OK'"
845 if active.exists (1) then
848 '/// Enter 'Create Names Test' in cell A1
849 printlog " Enter 'Create Names Test' in cell A1"
850 call fCalcSelectRange ("A1")
851 DocumentCalc.TypeKeys "Create Names Test<RETURN>"
852 '/// Select cells A1:A4
853 printlog " Select cells A1:A4"
854 call fCalcSelectRange ("A1:A4")
855 '/// Open 'Create Names' – dialog by 'Insert – Names – Create'
856 printlog " Open 'Create Names' – dialog by 'Insert – Names – Create'"
858 Kontext "NamenErzeugen"
859 '/// Check that option 'Top row' is selected
860 printlog " Check that option 'Top row' is selected"
861 if not Kopfzeile.IsChecked then
862 warnlog "The header was not autodetected"
864 '/// Press 'OK' button
865 printlog " Press 'OK' button"
867 '/// Select cells A1:A3
868 printlog " Select cells A1:A3"
869 call fCalcSelectRange ("A1:A3")
870 '/// Open 'Create Names' – dialog by 'Insert – Names – Create'
871 printlog " Open 'Create Names' – dialog by 'Insert – Names – Create'"
873 Kontext "NamenErzeugen"
874 '/// Press 'OK' button
875 printlog " Press 'OK' button"
877 '/// Close replacing messagebox with 'Cancel'
878 printlog " Close replacing messagebox with 'Cancel'"
880 if active.exists (1) then
884 printlog " Close starting document"
889 '-----------------------------------------------------------
891 testcase tInsertNamesLabels
892 '///<u><b>Insert - Names – Labels</b></u>
894 '/// Open new Spreadsheet document
895 printlog " Open new Spreadsheet document"
897 '/// Open 'Define Label Range' – dialog by 'Insert – Names – Labels'
898 printlog " Open 'Define Label Range' – dialog by 'Insert – Names – Labels'"
900 Kontext "BeschriftungsbereichFestlegen"
901 DialogTest ( BeschriftungsbereichFestlegen )
902 '/// Press 'Shrink' button for range
903 printlog " Press 'Shrink' button for range"
904 ButtonZellbereich.Click
905 '/// Press 'Maximize' button on rangechooser
906 printlog " Press 'Maximize' button on rangechooser"
907 ButtonZellbereich.Click
908 '/// Press 'Shrink' button for data range
909 printlog " Press 'Shrink' button for data range"
910 ButtonDatenbereich.Click
911 '/// Press 'Maximize' button on rangechooser
912 printlog " Press 'Maximize' button on rangechooser"
913 ButtonDatenbereich.Click
914 '/// Switch between 'Contains ...' options
915 printlog " Switch between 'Contains ...' options"
918 '/// Press 'Add' – button
919 printlog " Press 'Add' – button"
922 printlog " Select range"
924 '/// Press 'Delete' – button
925 printlog " Press 'Delete' – button"
927 '/// Confirm mesagebox with 'Yes'
928 printlog " Confirm mesagebox with 'Yes'"
930 if active.exists then
933 Kontext "BeschriftungsbereichFestlegen"
934 '/// Close 'Define Label Range' – dialog with 'Cancel'
935 printlog " Close 'Define Label Range' – dialog with 'Cancel'"
936 BeschriftungsbereichFestlegen.Cancel
938 printlog " Close starting document"
943 '-----------------------------------------------------------
946 '///<u><b>Insert - Note</b></u>
948 '/// Open new Spreadsheet document
949 printlog " Open new Spreadsheet document"
951 '/// Insert a note via 'Insert – Note'
952 printlog " Insert a note via 'Insert – Note'"
955 '/// Enter 'This is a <Return> Testtext' into the note
956 printlog " Enter 'This is a <Return> Testtext' into the note"
957 DocumentCalc.TypeKeys "This is a <Return> Testtext"
958 '/// Leave note with <Escape>
959 printlog " Leave note with <Escape>"
960 DocumentCalc.TypeKeys "<Escape>"
962 printlog " Close starting document"
967 '-----------------------------------------------------------
969 testcase tInsertPictureFromFile
970 '///<u><b>Insert - Picture – From File</b></u>
972 '/// Open new Spreadsheet document
973 printlog " Open new Spreadsheet document"
975 '/// Open 'Insert Picture' – dialog by 'Insert – Picture – From File'
976 printlog " Open 'Insert Picture' – dialog by 'Insert – Picture – From File'"
977 InsertGraphicsFromFile
978 Kontext "GrafikEinfuegenDlg"
979 Call DialogTest (GrafikEinfuegenDlg)
980 '/// Enter filename 'global\input\graf_inp\'
981 printlog " Enter filename 'global\input\graf_inp\borabora.jpg'"
982 Dateiname.Settext convertpath(gTesttoolpath + "global\input\graf_inp\borabora.jpg")
983 '/// Verify that there are more than one filter available
984 printlog " Verify that there are more than one filter available"
985 if Dateityp.GetItemCount < 2 then
986 warnlog "The filterlist is empty"
988 '/// Check 'Link' – option
989 printlog " Check 'Link' – option"
991 '/// Check 'Preview' - option
992 printlog " Check 'Preview' - option"
994 '/// Close dialog with 'Open'
995 printlog " Close dialog with 'Open'"
998 printlog " Close starting document"
1003 '-----------------------------------------------------------
1005 testcase tInsertMovieSound
1006 '///<u><b>Insert - Movie and Sound</b></u>
1008 '/// Open new Spreadsheet document
1009 printlog " Open new Spreadsheet document"
1011 '/// Open 'Insert Movie and Sound' – dialog by 'Insert – Movie and Sound'
1012 printlog " Open 'Insert Movie and Sound' – dialog by 'Insert – Movie and Sound'"
1014 Kontext "OeffnenDLG"
1015 '/// Verify that there are more than one filter available
1016 printlog " Verify that there are more than one filter available"
1017 if Dateityp.GetItemCount < 2 then
1018 warnlog "The filterlist is empty"
1020 '/// Close dialog with 'Cancel'
1021 printlog " Close dialog with 'Cancel'"
1024 printlog " Close starting document"
1029 '-----------------------------------------------------------
1031 testcase tInsertObjectOLE
1032 '///<u><b>Insert - Object – OLE Object</b></u>
1034 '/// Open new Spreadsheet document
1035 printlog " Open new Spreadsheet document"
1037 '/// Open 'Insert OLE Object' – dialog by 'Insert – Object – OLE Object'
1038 printlog " Open 'Insert OLE Object' – dialog by 'Insert – Object – OLE Object'"
1039 InsertObjectOLEObject
1040 Kontext "OLEObjektEinfuegen"
1041 '/// Choose 'Create new'
1042 printlog " Choose 'Create new'"
1044 Call DialogTest (OLEObjektEinfuegen, 1)
1045 '/// Check that there are more than 1 entries (amount is dependant from operating system)
1046 printlog " Check that there are more than 1 entries (amount is dependant from operating system)"
1047 if Objekttyp.getitemcount < 2 then
1048 warnlog "There are no OLE-Objects in the listbox"
1050 '/// Choose 'Create from file'
1051 printlog " Choose 'Create from file'"
1052 AusDateierstellen.Check
1053 Call DialogTest (OLEObjektEinfuegen, 2)
1054 '/// Click on 'Search' – button
1055 printlog " Click on 'Search' – button"
1057 Kontext "OeffnenDLG"
1058 '/// Close 'Open' – dialog with 'Cancel'
1059 printlog " Close 'Open' – dialog with 'Cancel'"
1061 Kontext "OLEObjektEinfuegen"
1062 '/// Check option 'Link to file'
1063 printlog " Check option 'Link to file'"
1065 '/// Close dialog with 'Cancel'
1066 printlog " Close dialog with 'Cancel'"
1067 OLEObjektEinfuegen.Cancel
1069 printlog " Close starting document"
1074 '-----------------------------------------------------------
1076 testcase tInsertObjectPlugin
1077 '///<u><b>Insert - Object – Plug-in</b></u>
1079 '/// Open new Spreadsheet document
1080 printlog " Open new Spreadsheet document"
1082 '/// Open 'Insert Plug-in' – dialog by 'Insert – Object – Plug-in'
1083 printlog " Open 'Insert Plug-in' – dialog by 'Insert – Object – Plug-in'"
1085 Kontext "PlugInEinfuegen"
1086 Call DialogTest (PlugInEinfuegen)
1087 '/// Click on 'Browse' – button
1088 printlog " Click on 'Browse' – button"
1090 Kontext "OeffnenDLG"
1091 '/// Click on 'Default Directory' – button
1092 printlog " Click on 'Default Directory' – button"
1094 '/// Click on 'Create New Directory' – button
1095 printlog " Click on 'Create New Directory' – button"
1097 Kontext "NeuerOrdner"
1098 '/// Close namedialog with 'Cancel'
1099 printlog " Close namedialog with 'Cancel'"
1101 Kontext "OeffnenDLG"
1102 '/// Close 'Open' – dialog with 'Cancel'
1103 printlog " Close 'Open' – dialog with 'Cancel'"
1105 '/// Close 'Insert Plug-in' – dialog with 'Cancel'
1106 printlog " Close 'Insert Plug-in' – dialog with 'Cancel'"
1107 Kontext "PluginEinfuegen"
1108 PlugInEinfuegen.Cancel
1110 printlog " Close starting document"
1115 '-----------------------------------------------------------
1117 testcase tInsertObjectSound
1118 '///<u><b>Insert - Object – Sound</b></u>
1120 '/// Open new Spreadsheet document
1121 printlog " Open new Spreadsheet document"
1124 '/// If enabled (depends on additional instalations on the OS) open the 'Insert Sound' – dialog by 'Insert – Object – Sound'
1125 printlog " If enabled (depends on additional instalations on the OS) open the 'Insert Sound' – dialog by 'Insert – Object – Sound'"
1127 Kontext "OeffnenDlg"
1128 '/// Click on 'Default Directory' – button
1129 printlog " Click on 'Default Directory' – button"
1131 '/// Click on 'Create New Directory' – button
1132 printlog " Click on 'Create New Directory' – button"
1134 Kontext "NeuerOrdner"
1135 '/// Close namedialog with 'Cancel'
1136 printlog " Close namedialog with 'Cancel'"
1138 Kontext "OeffnenDLG"
1139 '/// Close 'Open' – dialog with 'Cancel'
1140 printlog " Close 'Open' – dialog with 'Cancel'"
1143 printlog "Insert - Object - Sound is not possible on this machine"
1146 printlog " Close starting document"
1151 '-----------------------------------------------------------
1153 testcase tInsertObjectVideo
1154 '///<u><b>Insert - Object – Video</b></u>
1156 '/// Open new Spreadsheet document
1157 printlog " Open new Spreadsheet document"
1160 '/// If enabled (depends on additional instalations on the OS) open the 'Insert Video' – dialog by 'Insert – Object – Sound'
1161 printlog " If enabled (depends on additional instalations on the OS) open the 'Insert Video' – dialog by 'Insert – Object – Sound'"
1163 Kontext "OeffnenDlg"
1164 '/// Click on 'Default Directory' – button
1165 printlog " Click on 'Default Directory' – button"
1167 '/// Click on 'Create New Directory' – button
1168 printlog " Click on 'Create New Directory' – button"
1170 Kontext "NeuerOrdner"
1171 '/// Close namedialog with 'Cancel'
1172 printlog " Close namedialog with 'Cancel'"
1174 Kontext "OeffnenDLG"
1175 '/// Close 'Open' – dialog with 'Cancel'
1176 printlog " Close 'Open' – dialog with 'Cancel'"
1179 printlog "Insert - Object - Video is not possible on this machine"
1181 printlog " Close starting document"
1186 '-----------------------------------------------------------
1188 testcase tInsertObjectFormular
1189 '///<u><b>Insert - Object – Formular</b></u>
1191 '/// Open new Spraedsheet document
1192 printlog " Open new Spreadsheet document"
1194 '/// Insert Formular by 'Insert – Object – Formular'
1195 printlog " Insert Formular by 'Insert – Object – Formular'"
1196 InsertObjectFormulaCalc
1197 Kontext "SelectionMath"
1198 if SelectionMath.Exists(2) then
1199 call DialogTest (SelectionMath)
1202 Kontext "DocumentCalc"
1204 Kontext "SelectionMath"
1205 call DialogTest (SelectionMath)
1207 qaerrorlog "#i93427# Math Selection Dialog is not available"
1210 '/// Close Formular with 'Esc'
1211 printlog " Close Formular with 'Esc'"
1212 Kontext "DocumentCalc"
1213 DocumentCalc.TypeKeys "<Escape>"
1215 printlog " Close starting document"
1220 '-----------------------------------------------------------
1222 testcase tInsertChart
1223 '///<u><b>Insert - Chart</b></u>
1225 '/// Open new Spreadsheet document
1226 printlog " Open new Spreadsheet document"
1228 '/// Open 'Chart Wizard' by 'Insert – Chart'
1229 printlog " Open 'Chart Wizard' by 'Insert – Chart'"
1231 Kontext "ChartWizard"
1232 if ChartWizard.Exists(1) then
1233 Call Dialogtest(ChartWizard)
1234 '/// Close 'Chart Wizard' with 'Cancel'
1237 warnlog "Chart wizard is not available"
1240 printlog " Close starting document"
1245 '-----------------------------------------------------------
1247 testcase tInsertFloatingFrame
1248 '///<u><b>Insert - Floating Frame</b></u>
1250 '/// Open new Spreadsheet document
1251 printlog " Open new Spreadsheet document"
1253 '/// Open 'Floating Frame Properties' – dialog by 'Insert – Floating Frame'
1254 printlog " Open 'Floating Frame Properties' – dialog by 'Insert – Floating Frame'"
1256 Kontext "TabEigenschaften"
1257 Dialogtest (TabEigenschaften)
1258 '/// Click on 'Browse' – button for 'Contents'
1259 printlog " Click on 'Browse' – button for 'Contents'"
1261 Kontext "OeffnenDlg"
1262 '/// Click on 'Default Directory' – button
1263 printlog " Click on 'Default Directory' – button"
1265 '/// Click on 'Create New Directory' – button
1266 printlog " Click on 'Create New Directory' – button"
1268 Kontext "NeuerOrdner"
1269 '/// Close namedialog with 'Cancel'
1270 printlog " Close namedialog with 'Cancel'"
1272 Kontext "OeffnenDLG"
1273 '/// Close 'Select File for Floating Frame' – dialog with 'Cancel'
1274 printlog " Close 'Select File for Floating Frame' – dialog with 'Cancel'"
1276 Kontext "TabEigenschaften"
1277 '/// Check 'Scrollbar' on
1278 printlog " Check 'Scrollbar' on"
1280 '/// Check 'Scrollbar' off
1281 printlog " Check 'Scrollbar' off"
1283 '/// Check 'Scrollbar' automatic
1284 printlog " Check 'Scrollbar' automatic"
1286 '/// Check 'Border Off'
1287 printlog " Check 'Border Off'"
1289 '/// Check 'Border On'
1290 printlog " Check 'Border On'"
1292 '/// Uncheck 'Default'
1293 printlog " Uncheck 'Default'"
1294 BreiteStandard.UnCheck
1295 '/// Increase 'Width' by 1
1296 printlog " Increase 'Width' by 1"
1298 '/// Increase 'Height' by 1
1299 printlog " Increase 'Height' by 1"
1301 '/// Check 'Default'
1302 printlog " Check 'Default'"
1304 '/// Close 'Floating Frame Properties' – dialog with 'Cancel'
1305 printlog " Close 'Floating Frame Properties' – dialog with 'Cancel'"
1306 TabEigenschaften.Cancel
1308 printlog " Close starting document"