PowerPoint Presentation
SMALLTALK-DRIVENGUI TESTING
By Andreas Hiltner
Overview
2015 Cincom Systems Inc. All Rights Reserved.3IntentionRecord and Replay EventsScript ClassesScreenshotSendInputOSWindowScript ExampleQuestions
INTENTIONTo develop a GUI-Testing framework, that can not only test Smalltalk internal GUI, but external processes as well.It should be usable within SUnit tests.Why brand is important4Record and Replay Events
2015 Cincom Systems Inc. All Rights Reserved.5Record all events (keyboard, mouse) with timing.Events can be saved to a file and replayed later.
Beware of applications, that save the state in between, e.g. CalculatorRecord and Replay Events
2015 Cincom Systems Inc. All Rights Reserved.6Advantage:What-You-See-Is-What-You-GetDrawback:Uses absolute coordinatesRecording has to be redone, if the test changes even the slightest bitRecord and Replay Events
2015 Cincom Systems Inc. All Rights Reserved.7
Script
2015 Cincom Systems Inc. All Rights Reserved.8WindowsMouse InputKeyboard InputScreenshotScript - Window
2015 Cincom Systems Inc. All Rights Reserved.9Retrieve Window with TitleWait for Window with TitleRetrieve Window at a certain locationGet the (Windows) menuSend a menu item eventRetrieve Titlebar-Information(location of Minimize/Maximize/Close button)Script Mouse Input2015 Cincom Systems Inc. All Rights Reserved.10Click left/middle/right buttonScroll Mouse wheel up/downMove cursorHoverScript Keyboard Input2015 Cincom Systems Inc. All Rights Reserved.11Send String or individual CharactersSend Shortcut (e.g. CTRL+C, ALT+1)Send Keys like LeftArrow, RightArrow, PageUp, PageDown, Return, etc.Script Class Screenshot2015 Cincom Systems Inc. All Rights Reserved.12Take screenshot with / without window frameSave screenshot as Bitmap / PNG / JPEG
Script Class Screenshot (cont)2015 Cincom Systems Inc. All Rights Reserved.13Compare Screenshot with existing BitmapSave differences to a Bitmap in a file
Script2015 Cincom Systems Inc. All Rights Reserved.14
Script Part One2015 Cincom Systems Inc. All Rights Reserved.15
Script Part Two2015 Cincom Systems Inc. All Rights Reserved.16
Script Part Three2015 Cincom Systems Inc. All Rights Reserved.17
Script Part Four2015 Cincom Systems Inc. All Rights Reserved.18
Script Video2015 Cincom Systems Inc. All Rights Reserved.19
2015 Cincom Systems Inc. All Rights Reserved.20Questions?2015 Cincom Systems Inc. All Rights Reserved.21Star Team (Smalltalk Strategic Resources)
Suzanne Fortman ([email protected])Cincom Smalltalk Program DirectorArden Thomas ([email protected])Cincom Smalltalk Product ManagerJeremy Jordan ([email protected])Cincom Smalltalk Marketing ManagerSuzanne Fortman ([email protected])Cincom Smalltalk Engineering Manager Contact Information2015 Cincom Systems Inc. All Rights Reserved.22Evaluate Cincom Smalltalk:
try.cincomsmalltalk.com
Join our Cincom Smalltalk Developer Program:
develop.cincomsmalltalk.com
Try Cincom Smalltalk
Top Related