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 3a: testing the entire program with expected values

There are four sets of test values for the first test. In general, we will enter all values, and then submit the form to see if we are getting the response that we are expecting: the input values for input Case 1 and input Case 3 will result in an output stating that the user is not able to retire on time, and the input values for input Case 2 and input Case 4 will result in an output stating that the user will be able to retire on time. With that in mind, let us start with the first set of input values:

  1. Going back to your web browser, refresh your program, or re-open the source code if you have closed the program. We'll enter the values as planned: Johnny Boy and San ...

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