Discussion of Activity 9.1 - Testing the WebReader class

  1. This should be a straightforward activity since you do not have to change any Java code. However, there are a number of things which might go wrong.

  2. Using the browser, you should see exactly the same HTML source as in part 1. You may get problems similar to part 1 if you are not connected to the internet or if the website is not available.

  3. The possible problems here are similar to those in part 1. You may be more likely to get a compilation error message this time as you are editing the source code. If this does occur, check carefully that you have the quotes and the punctuation in the URL correct. You may also have chosen a non-existent URL so check with a browser if in doubt.

    If you are using a connection over an intranet, you are probably operating from behind a company's firewall. In that case you may not be able to look at the source code for other websites, and part 3 of this activity is not possible.