Browsed by
Category: PageFactory Tutorial

CheckStyle – Enforcing a coding style: part 2

CheckStyle – Enforcing a coding style: part 2

This entry is part 2 of 4 in the series Implementing a Java code style with CheckStyle

Cranking up the challenge – Making my own rules. In the second of three posts on configuring CheckStyle as a code format enforcer, I will be looking at how to set my own rules by producing my own checkstyle.xml Disclaimer time. I was aware that there is a plugin for Eclipse to make this task easy. There were however two reasons that I didn’t want to do that. The point of this whole blog is to learn about the tools…

Read More Read More

CheckStyle – Enforcing a coding style: part 1

CheckStyle – Enforcing a coding style: part 1

This entry is part 1 of 4 in the series Implementing a Java code style with CheckStyle

The easy way – Using someone else’s rules. As my little tutorial project was going along, I started to realise that I really wasn’t doing a very good job of getting consistency in my code. Whilst I don’t have to worry about reviewers struggling through pull requests littered with formatting changes, I do care about the quality of my work. A while back I sent the following tweet: Why I am determined to keep the quality of my test code…

Read More Read More

A week of frustration

A week of frustration

DI frameworks are painful! This was a tough week and I am afraid that I don’t have any working code for you this week. I still have emotional scars from my attempts to configure dependency injection with Spring at work. After a lot of pain we eventually decided to use Google Guice and with it set up and running I don’t have too many problems adding to my framework. When I do mess it up however I find it very…

Read More Read More

Parameterisation with JUnit5

Parameterisation with JUnit5

The background This was never intended to be an article in itself, but one of the problems with working on this late at night, is that sometimes I have to finish up, even though I know that there is another simple change I would like to make. In this case, my DriverFactoryTests were just screaming out for parameterisation. I know I had added some Windows 10 checks in there, but as I was of course running the tests over a…

Read More Read More

Driver Factory Part 3 – RemoteWebDrivers and my very own grid

Driver Factory Part 3 – RemoteWebDrivers and my very own grid

This entry is part 1 of 5 in the series Building a WebDriver Grid

So last week I got my code running on a home grid, but did not have time to explain what I did, so here goes… What is a grid and why would you use it? If you have pulled and run any of my tests, or tried building up something yourself, after the initial wow factor of watching a browser fire up and start doing things all by itself, you probably quite quickly got bored of having to stop pretty…

Read More Read More