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!).

June 26, 2015

Selenium is now on GitHub

Back on March of this year, Google's Open Source Blog posted the following notice:
"Beginning today, we have disabled new project creation on Google Code. We will be shutting down the service about 10 months from now on January 25th, 2016. Below, we provide links to migration tools designed to help you move your projects off of Google Code. We will also make ourselves available over the next three months to those projects that need help migrating from Google Code to other hosts. 

June 24, 2015

test.AllTheThings!

I've loved Sauce Labs every since I first heard about it. Instead of testing the same exact web application five or ten times in various browsers and platforms, I can write a test once? And I don't have to manually configure the browsers and platforms by hand? Sign me up! 

We use it at work. Sure, it's a pain setting up Internet Explorer 8, but you kinda expect IE8 to be a pain when using a modern web app with it. 

June 19, 2015

The-Internet: Common Utilities: methods, exceptions and logging

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

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


Please note: I have been an automated tester only since March 2015. This is only my best guess on how to translate what we use at work. I am writing this blog to deepen my own understanding of automated testing. If there are any glaring errors about Java, OO, WebDriver, or anything else please let me know in the Comments section!

June 18, 2015

June 16, 2015