Download presentation
Presentation is loading. Please wait.
Published byCollin Neal Modified over 8 years ago
1
Programų testavimo metodai Autorius: Rūtenis Turčinas IFM–2/2 gr. Graphical user interface testing
2
What is it? Graphical user interface (GUI) testing is the process of testing a product's graphical user interface to ensure it meets its written specifications 2
3
On which projects use it? It depends on project type: Impossible to use on projects without GUI: backend, middleware, etc. Possible and worth to use on projects with GUI: many of today‘s products 3
4
When is it worth to use? Trying to achieve 100% product quality – must use GUI tests If goal is to check mostly usable cases - worth to use GUI tests Don‘t use GUI tests - if quality is not important 4
5
Is GUI testing useful? It is easier to test with GUI associated functions Possible to test situations, which are not testable with other methods In test cases simulated real users 5
6
Problems Size WordPad – 325 possible GUI operations Sequence Some functionality of the system may only be accomplished by following some complex sequence of GUI events Error location 6
7
GUI testing approaches GUI component testing GUI hierarchical model testing GUI functionality testing 7
8
GUI component testing Split application into test components (component = window) Test each component thoroughly Test integration of components 8
9
GUI hierarchical model 9 1 Level (main GUI form) 2 Level (sub-forms)... N-th Level (sub-forms)
10
GUI functionality testing Determine: Users Initial state Steps (event sequences to achieve goal state) Goal state 10
11
GUI functionality testing 11
12
Testing tools Selenium (Web UI) Robotium (Android OS) Jemmy (JAVA SE) SWTBot (SWT applications) And many others 12
13
Selenium IDE 13
14
Selenium IDE Targets – Xpath language: //td[@role="gridcell"][.="TEST 123"] //..//button[contains(@id,"deleteButton")] JavaSript support (parameters, etc.) TestCase command source: open ${stUrl}/login.xhtml 14
15
Questions: 15
16
1. When to use GUI test? 2. When do not use GUI test? 3. What are GUI testing problems? 4. What are GUI testing approaches? 5. Is it possible to test GUI without testing tools? 16
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.