Capturing simple forms
We have already encountered a variation of form submission in Chapter 2, Recording Your First Test, when we submitted a login form to be authenticated with the server. The form had two text fields for username and password, respectively. This is a good start. Most websites requiring authentication will have a similar feel to them. HTML forms, however, span a whole range of other input types. These include checkboxes, radio buttons, select and multiselect drop-down lists, text area, file uploads, and so on. In this section, we take a look at handling other HTML input types.
We have created a sample application that we will use throughout most of this chapter to illustrate some of the concepts that we will discuss. The application can be reached by visiting http://jmeterbook.aws.af.cm. Take a minute to browse around and take it for a manual spin so as to have an idea what the test scripts we record will be doing.
Handling checkboxes
Capturing checkbox submission is similar...