With our sample application progressing nicely along, we once again need to turn our attention back to the topic of testing. What you are likely to find is that testing abstract code is much easier than testing application logic. What’s more, the tests we need to perform require a level of interaction that’s difficult to simulate through code.
- We need to test the format of various input forms.
- We need to test the results of various user interactions with these forms.
One of the many ways in which we can test the validity of forms is by checking for certain elements within the returned body of HTML. To do this, we ...