A Routine Interrogation

5 Jan

Just now completed a simple ‘interrogation exercise’ for the Selenium course, while waiting for my boys to finish here at the Japanese Language School in Medford. We pull up a web page, verify the title, verify the url and test for a correct match from within the page source. No big deal, but the goal here is to do it in a way that is as direct, simple and readable as possible.

The exercise helped to build some familiarity and comfort with using the Hamcrest matchers instead of the standard JUnit ones, and gave a good opportunity to learn how to use the IDE (IntelliJ in this case) to browse the JUnit and Hamcrest jars for applicable methods.

The new code checked in nicely to GitHub from my little macbook pro. You can see the results of the exercise here.


Comments are welcome!

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: