Blog

Best Practise

Best Practises – Naming Standards Part Two

Part one saw us learn about good and bad naming for variables and method names, and the type of rules you should follow when deciding on names. In part two, we’re going to expand upon the naming standards for methods. Having a good method name is a start, but you need to take in to…
Read more

Our first JavaScript framework

Framework – Your First Framework Part 2

In part one, we built our Driver factory class that will allow us to create an instance of a browser driver, depending on the parameter we passed in. This was an important first step, as without this we would have to manually create our browser instance in our tests themselves. By doing it this way,…
Read more

Taking pride in your work

Tip – Avoid Being on the Defensive

Writing code can be a hugely satisfying exercise. When you’ve finally cracked the solution to that problem you’ve been trying to solve for hours or even days, and the code just flows from your fingertips, it can leave you with a great sense of achievement and confidence. And rightly so.  Unfortunately, however, the reality of…
Read more

Design Pattern - Factory

Design Pattern – Facade

In the last article of this series, we learnt how to write tests using the Page Object Model design pattern. It allowed us to create a test with minimal code, keeping all the actions and element interactions in our page object class itself. This works brilliantly with web applications that have no set journey they…
Read more

Taking pride in your work

Tip – Walk Before You Can Run

It might seem that from the title, that this is hardly a tip. In fact, with any thing in life, this saying applies. But I wanted to take a moment to talk about this in the context of test automation, because it is something that can make or break whether someone is successful in learning…
Read more

Mistakes that make you facepalm

Mistakes – What Are You Waiting For?

Whether you write tests, write frameworks or both, one thing you are no doubt going to have to do at some point is have some kind of wait in your code. You might wonder why something so seemingly simple deserves its own article, but hopefully by the end of this, you’ll realise that waiting at…
Read more

Selenium Locators

Selenium – Locators

When creating automated tests with Selenium, the most common thing you’ll find yourself doing over and over again is finding out your locators for the elements in which you wish to interact with. There’s no two ways about it, this is a tedious task. There are automated page scrapers that can do this for you…
Read more

Our first JavaScript framework

Framework – Your First Framework Part 1

In the last article, we discussed the definition of a framework and expanded on it. And we tried to understand that the idea of writing your own framework isn’t quite as scary as you might think.  So today, we’re going to take the first step in to creating your first framework for testing web applications…
Read more

Mistakes that make you facepalm

Mistakes – Being Short Sighted?

I’ve been involved in test automation for over ten years now. During that time, I’ve learnt so much from just doing the job, working with some very clever people, and the wealth of knowledge on the internet. But where I’ve learnt most has been from making mistakes, sometimes big mistakes. And to help you avoid…
Read more

Design Pattern - Factory

Design Pattern – Page Object Model

In the first article of the this Design Pattern series, we looked at describing three of the more popular design patterns when it came to writing a framework. One of the three we learnt about was the Page Object Model design pattern. This is probably the most commonly used as it lends itself to creating…
Read more