1. SMALLTALK-DRIVEN GUI TESTING By Andreas Hiltner
2. Overview 2015 Cincom Systems Inc. All Rights Reserved.3
Intention Record and Replay Events Script Classes Screenshot
SendInput OSWindow Script Example Questions
3. INTENTION To 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.
4. Record and Replay Events 2015 Cincom Systems Inc. All Rights
Reserved.5 Record 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. Calculator
5. Record and Replay Events 2015 Cincom Systems Inc. All Rights
Reserved.6 Advantage: What-You-See-Is-What-You-Get Drawback: Uses
absolute coordinates Recording has to be redone, if the test
changes even the slightest bit
6. Record and Replay Events 2015 Cincom Systems Inc. All Rights
Reserved.7
7. Script 2015 Cincom Systems Inc. All Rights Reserved.8
Windows Mouse Input Keyboard Input Screenshot
8. Script - Window 2015 Cincom Systems Inc. All Rights
Reserved.9 Retrieve Window with Title Wait for Window with Title
Retrieve Window at a certain location Get the (Windows) menu Send a
menu item event Retrieve Titlebar-Information (location of
Minimize/Maximize/Close button)
9. Script Mouse Input 2015 Cincom Systems Inc. All Rights
Reserved.10 Click left/middle/right button Scroll Mouse wheel
up/down Move cursor Hover
10. Script Keyboard Input 2015 Cincom Systems Inc. All Rights
Reserved.11 Send String or individual Characters Send Shortcut
(e.g. CTRL+C, ALT+1) Send Keys like LeftArrow, RightArrow, PageUp,
PageDown, Return, etc.
11. Script Class Screenshot 2015 Cincom Systems Inc. All Rights
Reserved.12 Take screenshot with / without window frame Save
screenshot as Bitmap / PNG / JPEG
12. Script Class Screenshot (cont) 2015 Cincom Systems Inc. All
Rights Reserved.13 Compare Screenshot with existing Bitmap Save
differences to a Bitmap in a file
13. Script 2015 Cincom Systems Inc. All Rights Reserved.14
14. Script Part One 2015 Cincom Systems Inc. All Rights
Reserved.15
15. Script Part Two 2015 Cincom Systems Inc. All Rights
Reserved.16
16. Script Part Three 2015 Cincom Systems Inc. All Rights
Reserved.17
17. Script Part Four 2015 Cincom Systems Inc. All Rights
Reserved.18
18. Script Video 2015 Cincom Systems Inc. All Rights
Reserved.19
19. 2015 Cincom Systems Inc. All Rights Reserved.20
Questions?
20. 2015 Cincom Systems Inc. All Rights Reserved.21 Star Team
(Smalltalk Strategic Resources) Suzanne Fortman
([email protected]) Cincom Smalltalk Program Director Arden
Thomas ([email protected]) Cincom Smalltalk Product Manager Jeremy
Jordan ([email protected]) Cincom Smalltalk Marketing Manager
Suzanne Fortman ([email protected]) Cincom Smalltalk Engineering
Manager Contact Information
21. 2015 Cincom Systems Inc. All Rights Reserved.22 Evaluate
Cincom Smalltalk: try.cincomsmalltalk.com Join our Cincom Smalltalk
Developer Program: develop.cincomsmalltalk.com Try Cincom
Smalltalk