July 29, 2015

The-Internet: Writing the Automated Test

Writing automated test code to test against Dave Haeffner's mock site, The-Internet: Login Page.

This post is second in a series of six. Need to go back to the beginning?

We have covered a lot of ground in this series of blog posts.

The sixth and final part, writing the automated test, is kind of anti-climactic after all that effort.

July 28, 2015

The-Internet: Page Object Model examples

Writing automated test code to test against Dave Haeffner's mock site, The-Internet: Login Page.

July 12, 2015

Online course: John Purcell's Java courses

To help me up-to-speed with Java programming after a ten year absence of writing any type of code, I have been working since January through many helpful courses I have found online. A few that I have liked:


Another favorite of mine is John Purcell's "Cave of Programming". John started out on Udemy.com, but has branched out to his own site. Every time he comes up with the next level of a course, he marks the earlier levels down until over time they become free.

July 8, 2015

The-Internet: Storing locators for web elements

Writing automated test code to test against Dave Haeffner's mock site, The-Internet: Login Page.

This post is fourth in a series of six. Need to go back to the beginning?

Part Four: Storing locators in Enums

How to locate a web element? 


There are two main they locate web elements at work:

  • By ID
  • By CSS Selector
Earlier, I wrote about CSS Selectors when finding web elements.

With the Firefox browser and the Firebug plugin, to find the selectors of a web element, an automated tester can go to the Login Page of Dave Haeffner's test site, The-Internet, and right-click on each element listed:

July 6, 2015

The-Internet: Storing constants: static final vs enums

Testing The-Internet:

Rewriting the automated test code we use at work to test against Dave Haeffner's mock site, The-Internet: Login Page.

This post is third in a series of six. Need to go back to the beginning?


Part Three: Storing Constants 

Setting Constants Using Static Final

When using values such as the username and password of a Login screen hardcoding values within your automated test is a bad idea. 

If there was an automated test that was to go to https://the-internet.herokuapp.com/login and enter the username and password for Tom Smith (tomsmith / SuperSecretPassword!).