O'Reilly logo

Professional Cairngorm™ by Jeremy Wischusen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

15.7. Implementation and Testing

If you debug the application, you should see something like (Figure 15-1).

Figure 15.1. Figure 15-1

Click the Register button in the ApplicationControlBar and you should see something like (Figure 15-2).

Figure 15.2. Figure 15-2

You are not going to bother testing valid values for each input, but you should make sure that form validation is at least being triggered. Try submitting the form with no values and you should see an alert like the one in (Figure 15-3).

Figure 15.3. Figure 15-3

Click OK to close the alert and you should see that the form fields have been highlighted in red. If you mouse over each one you should see a message indicating how to fix the problem, as in (Figure 15-4).

Figure 15.4. Figure 15-4

Since you have a basic idea that validation is working, you will leave this page as is for now.

Now create the following account and click Register:

  • First Name = test

  • Last Name = user

  • User Name = testuser

  • Password = password

You should now see something like (Figure 15-5), which shows the success message with the form cleared.

Figure ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required