O'Reilly logo

JavaScript Testing by Liang Yuxian Eugene

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

Time for action—Test case 1bii: testing expected but unacceptable values using illegal values

There are three input cases for this phase of the test. What we will do in the first case of the test is enter numeric values for input fields that require character inputs and vice versa.

Input Case 1:

  1. We'll once again refresh our browser to clear out the old values. Next we'll begin to enter the expected illegal values. For the "name" input field, we'll enter a digit. This can be any number, such as "1". Go on and test it. After you have entered the digit, try to move your mouse cursor to the next input field.

    As you attempt to shift the focus to the next input field, you should see an alert box telling you that you have entered an incorrect type of ...

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