Browsed by
Category: PageFactory Tutorial

Bye bye JUnit 4, hello WebDriver 3.6.0 and some firsts.

Bye bye JUnit 4, hello WebDriver 3.6.0 and some firsts.

A lot has happened this week! So although I have completed the code changes and committed already. I don’t think I will get it all explained in this post. Probably a multi part post for you this week. So I was wrong! JUnit 5 can be used to do everything I want as of now so it is finally time to get rid of my JUnit4 compatibility. If you recall I was hanging on to it as I could not…

Read More Read More

Sorry, Scrum, a malfunctioning factory and the ‘Definition of Done’

Sorry, Scrum, a malfunctioning factory and the ‘Definition of Done’

Sorry! Many apologies for the delay in this post, but sometimes life just gets in the way. Last week’s post was always going to be a challenging one. With 2 Birthdays, my wife returning to work from maternity leave and my 3 year old son starting at nursery it was set up to be a busy week. Then on Monday afternoon I was offered the chance to spend the next 2 days on Geoff Watts’ Certified ScrumMaster Course in London….

Read More Read More

Starting with the Page Object Model / Page Factory

Starting with the Page Object Model / Page Factory

Breaking news. Today is my 47th Birthday and it seems that the JUnit team have given me a birthday present with the announcement of JUnit 5.0 General Availability Release today. As of now, it is not in Maven central so I’m still with the release candidate, but I look forward to checking it out soon.   I have started off this blog looking at some of the basics of setting up and running basic tests using JUnit and Selenium WebDriver….

Read More Read More

Creating AbstractTest classes to reuse our startup code

Creating AbstractTest classes to reuse our startup code

So where were we? Oh yes, last week I was investigating JUnit 5 asserts and deciding that generally I don’t like them. It is safe to assume then that I will mainly be using Assertj for my assertions. We also got our first test passing in a way that won’t fail if I decide to change my WordPress theme again. One test is all very well, but what if I want to write many tests. As I demonstrated last week…

Read More Read More

Investigating JUnit 5 asserts

Investigating JUnit 5 asserts

Pesky asserts! Testing tests. Of course if your tests are going to be informative, it is not enough that they pass when everything is right and fail when everything is wrong. It is vital that when a test does fail, it gives an informative error message to help identify the problem. Ideally, your well designed test will fail at an assert that gives a clear description of the problem. That requires some effort to find out what your test will…

Read More Read More