CSC/ECE 517 Fall 2009/wiki2 10 Gui Testing Frameworks aa
GUI TESTING FRAMEWORKS
Introduction
A Graphical User Interface is a program interface that takes advantage of the computer's graphics capabilities to make the program easier to use.Ideally, user interfaces should only be thin shells on top of the next layer in an application displaying information in a useful fashion, and passing user input as quickly as possible to some code that knows what to do with it.However due to its nature there are many difficulties that arise with GUI testing.
GUI Testing Difficulties
The following difficulties arise while testing the GUIs:
- Event driven software
- Unsolicited approach
Different Approaches used for GUI Testing
MVC Design Pattern
It is typically more difficult to perform automated tests on code residing in the user interface, and the more logic contained there, the greater the need for automated testing. The solution is to add a new level of indeirection. The basic idea behind this approach is to add a new level of indirection behind the user interface and the domain model with the intention of isolating UI changes and prevent them from requiring changes to the domain logic of the application. MVC divides an application into three concerns: • Model - Encapsulates core application data and functionality domain logic. • View - obtains data from the model and presents it to the user. • Controller - receives and translates input to requests on the model or the view. It pulls the complex part of the user interface code into a library that can be unit-tested, thus making GUI testing simpler.