Browsed by
Month: August 2017

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

Firing up a WebDriver in a JUnit test

Firing up a WebDriver in a JUnit test

There are plenty of good examples of how to fire up a Java WebDriver out there and one I often referenced is toolsqa.com. This, like many others, starts off by describing the processes using standard java main() methods. I want to write tests, not applications, so my goal here is to start straight away writing tests in a test framework so that I can view the results visually in an IDE. My hope is to achieve this using JUnit 5…

Read More Read More

Hello world!

Hello world!

Welcome to my first efforts at a tech blog! If you are interested in learning about implementing a Web testing framework in Java using Selenium Webdriver page factory and Junit 5 you are in the right place. I aim to document my efforts to implement one in this blog. I am not an expert, so I do not make any promises of doing things in the best way, but I will try to explain the choices I have made along…

Read More Read More