-
Book Overview & Buying
-
Table Of Contents
Grails 1.1 Web Application Development
By :
Functional tests allow us to verify that an entire vertical slice of the application is working, that is, from the user action, down through the layers of our code, and back up again to verify the response sent to the user. This means that we must exercise the entire application, rather than discrete units of code. A common approach to this in web development is to run the application on a server and execute tests that are able to act as a very simple web browser. These tests make HTTP requests to the server and parse the HTML responses.
As with integration tests, there are a number of common issues inherent when writing automated functional tests, and they are as follows:
Environment setup
Making tests repeatable
Performance of tests
Fragility of tests
Making the tests comprehensible
Functional tests must test the application running, in the way a user would experience it. For Java web development, this means a web application that is deployed to a servlet...
Change the font size
Change margin width
Change background colour