diff options
Diffstat (limited to 'testautomation/graphics/optional/includes/global/g_demoguide.inc')
-rw-r--r-- | testautomation/graphics/optional/includes/global/g_demoguide.inc | 91 |
1 files changed, 36 insertions, 55 deletions
diff --git a/testautomation/graphics/optional/includes/global/g_demoguide.inc b/testautomation/graphics/optional/includes/global/g_demoguide.inc index cb0a428d2f59..0860e8cb942a 100644 --- a/testautomation/graphics/optional/includes/global/g_demoguide.inc +++ b/testautomation/graphics/optional/includes/global/g_demoguide.inc @@ -41,12 +41,10 @@ testcase t_Introduction gApplication = "IMPRESS" - '///Open new presentation printlog "Open new presentation" Call hNewDocument Call sSelectEmptyLayout - '///Open the Gallery printlog "Open the Gallery" ToolsGallery Sleep (1) @@ -55,7 +53,6 @@ testcase t_Introduction ToolsGallery end if - '///Choose computer theme and insert the third image printlog "Choose an item from the gallery" Gallerys.Select(2) View.TypeKeys "<HOME><RIGHT><RIGHT>" @@ -65,7 +62,7 @@ testcase t_Introduction sleep 2 MenuSelect(MenuGetItemID(1)) 'Copy sleep 2 - '///+ - Check that we really got a copy of the object ///' + printlog "Check that we really got a copy of the object " kontext "DocumentImpress" DocumentImpress.OpenContextMenu(true) sleep 2 @@ -93,15 +90,16 @@ testcase t_Introduction catch Warnlog "Insert graphic doesn't work" endcatch - - '///Resize object + sleep 5 + printlog "Resize object" Kontext "DocumentImpress" gMouseClick (10, 10) sleep 1 EditSelectAll sleep 1 - ContextPositionAndSize '/// Format-position and size + printlog "Format-position and size" + ContextPositionAndSize Kontext Active.SetPage TabPositionAndSize Kontext "TabPositionAndSize" @@ -111,7 +109,6 @@ testcase t_Introduction Width.SetText CStr((CInt(Width.GetText)) * 2) TabPositionAndSize.OK - '///Break object printlog "Break object" Kontext "DocumentImpress" gMouseClick (10, 10) @@ -120,7 +117,6 @@ testcase t_Introduction sleep 1 hOpenContextMenu '(when the object is marked) hMenuSelectNr(13) - '/// Select part of object and make it black printlog "Select part of object and make it black" DocumentImpress.TypeKeys "<SHIFT TAB>" FormatArea @@ -131,14 +127,12 @@ testcase t_Introduction ColourList.Select 1 TabArea.OK - '///Group the objects printlog "Group the object" kontext "DocumentImpress" DocumentImpress.TypeKeys "<MOD1 A>" hOpenContextMenu '(when the object is marked) hMenuSelectNr(12) - '///Add Layout "Title Only" Printlog "Add Layout" kontext "Tasks" if (NOT Tasks.exists) then @@ -146,19 +140,18 @@ testcase t_Introduction ViewTaskPane endif - ' enable all items in the task pane. - ' may be one item is not enabled due to a previous testrun + printlog "enable all items in the task pane" + printlog "may be one item is not enabled due to a previous testrun" dim i as integer for i = 1 to 5 printlog i View.OpenMenu if ( MenuIsItemChecked(MenuGetItemID(i)) ) then - ' do nothing the item is allready displayed + printlog "ok" else MenuSelect(MenuGetItemId(4)) endif hMenuSelectNr(0) - 'sleep(1) next View.OpenMenu @@ -170,10 +163,8 @@ testcase t_Introduction View.OpenMenu MenuSelect(MenuGetItemId(5)) - LayoutsPreview.TypeKeys "<HOME> <DOWN> <DOWN> <RETURN>" sleep (5) - '///Add a background Printlog "Add background" Kontext "Tasks" @@ -193,7 +184,6 @@ testcase t_Introduction Tasks.TypeKeys "<MOD1 HOME>",true AvailableForUsePreview.TypeKeys "<HOME> <RIGHT> <RETURN>" sleep (5) - '///Add a transition effect Printlog "Add a transition effect" Kontext "Tasks" sleep(5) @@ -206,33 +196,33 @@ testcase t_Introduction View.OpenMenu MenuSelect(MenuGetItemID(4)) - TransitionSound.GetItemCount 'needed for select + TransitionSound.GetItemCount Sleep 1 TransitionSound.Select 4 - '///Close the document Printlog "Close the document" Call hCloseDocument endcase 't_Introduction + '-------------------------------------------------------------------- + testcase t_Interoperability Dim sTemplatename as string gApplication = "IMPRESS" - '///Open PowerPoint presentation printlog "Open PowerPoint presentation" hFileOpenLocally( gTesttoolPath + "graphics/required/input/dotNetOverview.ppt" ) - 'Save the name of the origin background (taken from last slide) + printlog "Save the name of the origin background (taken from last slide)" Kontext "DocumentImpress" DocumentImpress.TypeKeys "<END>" sleep (4) sTemplatename = DocumentImpress.StatusGetText (6) - printlog " Background = " & sTemplatename 'Debugcode - + printlog "Background = " & sTemplatename 'Debugcode + printlog "Choose a masterpage from right pane" Kontext "Tasks" @@ -250,15 +240,14 @@ testcase t_Interoperability Kontext "AvailableForUsePreview" AvailableForUsePreview.TypeKeys "<HOME> <RIGHT> <RETURN>" sleep (10) - printlog " Verify that the background has changed" + printlog "Verify that the background has changed" Kontext "DocumentImpress" - printlog " Background is " & DocumentImpress.StatusGetText (6) 'Debugcode + printlog "Background is " & DocumentImpress.StatusGetText (6) 'Debugcode if DocumentImpress.StatusGetText (6) = sTemplatename then warnlog "The background is not changed" else printlog " Background has been changed" endif - '///Switch back to original background printlog "Switch back to original background" Kontext "Tasks" Kontext "AvailableForUsePreview" @@ -270,7 +259,6 @@ testcase t_Interoperability else warnlog "The background is " & DocumentImpress.StatusGetText (6) & " but should be: " & sTemplatename endif - '///Resort slides printlog "Resort slides" Kontext "DocumentImpress" Kontext "Slides" @@ -289,7 +277,7 @@ testcase t_Interoperability Printlog " Verify that the slide was moved correctly" Kontext "Slides" sleep (5) - + SlidesControl.TypeKeys "<SHIFT F10>" if hMenuFindSelect(27268, true, 3) = false then Warnlog "Context-Menu-entry `Rename` was not found. Therefore the test ends." @@ -300,12 +288,11 @@ testcase t_Interoperability if NameField.GetText <> ".NET Enterprise Federation" then Warnlog "Wrong slide found! Expected no 3, but found " + NameField.GetText + "." else - Printlog " The slide was correctly moved" + Printlog "The slide was correctly moved" endif NameDlgPage.OK sleep 1 - '///Switch views printlog "Switch views" ViewWorkspaceOutlineView sleep (2) @@ -315,8 +302,8 @@ testcase t_Interoperability DocumentImpressOutlineView.TypeKeys "<Mod1 C>" sleep (5) if getclipboard() <> ".NET Enterprise Federation" then - warnlog " Wrong selection in outlineview. Should be '.NET Enterprise', but is '" & getclipboard() +"'." - else printlog " Switching to Outlineview was successfull" + warnlog "Wrong selection in outlineview. Should be '.NET Enterprise', but is '" & getclipboard() +"'." + else printlog "Switching to Outlineview was successfull" endif catch warnlog "Switching to Outlineview was not successfull" @@ -331,7 +318,7 @@ testcase t_Interoperability MenuSelect(MenuGetItemID(3)) 'Open Contextmenu Line Kontext "TabLinie" TabLinie.Cancel - printlog " Switching to Notesview was successfull" + printlog "Switching to Notesview was successfull" catch warnlog "Switching to Notesview was not successfull" endcatch @@ -340,7 +327,7 @@ testcase t_Interoperability try Kontext "DocumentImpressHandoutView" DocumentImpressHandoutView.TypeKeys "<TAB>" - printlog " Switching to Handoutview was successfull" + printlog "Switching to Handoutview was successfull" catch warnlog "Switching to Handoutview was not successfull" endcatch @@ -350,7 +337,7 @@ testcase t_Interoperability try Kontext "Slides" SlidesControl.TypeKeys "<TAB>" - printlog " Switching to Slideview was successfull" + printlog "Switching to Slideview was successfull" catch warnlog "Switching to Slideview was not successfull" endcatch @@ -360,12 +347,11 @@ testcase t_Interoperability try Kontext "DocumentImpress" DocumentImpress.TypeKeys "<TAB>" - printlog " Switching back to Drawingview was successfull" + printlog "Switching back to Drawingview was successfull" catch warnlog "Switching to Drawingview was not successfull" endcatch - '///Travel through the presentation by left pane printlog "Travel through the presentation by left pane to slide 7" Kontext "DocumentImpress" DocumentImpress.TypeKeys "<HOME><PAGEDOWN><PAGEDOWN><PAGEDOWN><PAGEDOWN><PAGEDOWN><PAGEDOWN><PAGEDOWN>" @@ -416,18 +402,16 @@ testcase t_DrawingEngine gApplication = "DRAW" - '///Open a drawing printlog "Open a drawing" hFileOpen (Convertpath (gTesttoolPath + "graphics/required/input/Blueprint.odg")) Call fMakeDocumentWritable - '///Select grouped object and enter group printlog "Select group" Kontext "DocumentDraw" DocumentDraw.TypeKeys "<TAB><TAB>" sleep (5) - printlog " Save position of group" + printlog "Save position of group" ContextPositionAndSize 'Format-position and size Kontext Active.SetPage TabPositionAndSize @@ -440,7 +424,6 @@ testcase t_DrawingEngine FormatEditGroupDraw sleep 1 - '///Select and move single object printlog "Select and move single object" printlog " Select object" Kontext "DocumentDraw" @@ -452,48 +435,46 @@ testcase t_DrawingEngine kontext "NameDlgObject" if NameField.GetText <> "Chair" then Warnlog "Wrong object selected!" - else Printlog " The correct object is selected" + else Printlog "The correct object is selected" endif NameDlgObject.OK sleep 1 - printlog " Save position of group" - ContextPositionAndSize 'Format-position and size + printlog "Save position of group" + ContextPositionAndSize Kontext Active.SetPage TabPositionAndSize Kontext "TabPositionAndSize" sObjectPosition = PositionY.GetText - printlog " - ObjectPosition is " & sObjectPosition + printlog "ObjectPosition is " & sObjectPosition TabPositionAndSize.OK - printlog " Move object" + printlog "Move object" Kontext "DocumentDraw" DocumentDraw.TypeKeys "<UP><UP><UP>" sleep (5) - printlog " Verify that the object was moved" - ContextPositionAndSize '/// Format-position and size + printlog "Verify that the object was moved" + ContextPositionAndSize Kontext Active.SetPage TabPositionAndSize Kontext "TabPositionAndSize" if PositionY.GetText <> sObjectPosition then - printlog " Single object was moved" + printlog "Single object was moved" else warnlog "The object has not been moved" endif TabPositionAndSize.OK - printlog " Exit group" + printlog "Exit group" FormatExitGroupDraw Printlog "Verify that the group is still on position" - printlog " Verify position" ContextPositionAndSize 'Format-position and size Kontext Active.SetPage TabPositionAndSize Kontext "TabPositionAndSize" if PositionY.GetText = sGroupPosition then - printlog " Group is still on position" + printlog "Group is still on position" else warnlog "Group has moved from " & sGroupPosition & " to " & PositionY.GetText endif TabPositionAndSize.OK - '///Close document printlog "Close document" Call hCloseDocument -endcase 't_DrawingEngine +endcase 't_DrawingEngine
\ No newline at end of file |