Browsed by
Category: PageFactory Tutorial

Dependency injection and abstraction.

Dependency injection and abstraction.

Every rose has its thorn. In the unlikely event that you have read all of my posts, you will be aware that I have had a try at dependency injection before but wasn’t happy enough with the results to push them. After looking at it this week I have managed to understand where my difficulties lie and and implement a solution that works. I’m still not really happy with it, but its enough to be able to get going on…

Read More Read More

Enter the Matrix: Selenium grid made simple

Enter the Matrix: Selenium grid made simple

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

As I discussed in ‘Driver factory part 3 – Remotewebdrivers and my very own grid’ I found that it was pretty painless to set up a grid hub and node on a single Windows machine. Whilst the grid was itself perfectly stable, it is a bit of a pain to start up multiple command prompts and run individual nodes etc. There were two obvious improvements to this that I could try: Work out how to configure multiple browsers on a…

Read More Read More

All is not as it seems: Checking the right browser launched

All is not as it seems: Checking the right browser launched

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

When tests don’t work…. One of those issues that I could very easily have missed. Over Christmas, in between working through CheckStyle hell I had a play around with adding Opera to the list of browsers available on my grid. I know its kind of pointless as being based on the same engine as Chrome, but it is one of my favourite browsers so I thought I’d give it a go. I’ve made a few incremental changes to my grid…

Read More Read More

CheckStyle – Enforcing a coding style: part 4

CheckStyle – Enforcing a coding style: part 4

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

Final Thoughts After struggling to get the last few posts out I have adopted a more agile approach to my blog. Now, whatever state the post is in it, will be published on Monday evening. I didn’t quite get everything finished off last week so here goes with my final thoughts about implementing CheckStyle into a new project. The last changes in my CheckStyle implementation Having set the Javadoc rules to ignore in my ruleset, I of course remembered that…

Read More Read More

CheckStyle – Enforcing a coding style: part 3

CheckStyle – Enforcing a coding style: part 3

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

The sensible way to make your own ruleset. As I mentioned in CheckStyle – Enforcing a coding style: part 2, there is a far simpler way to choose your own rules than by manually editing an xml file. I use the Community edition of Intellij IDEA. Going back a few years however I learnt my first Java code at ITU using Eclipse. To be fair I did try it out when I started programming professionally, but I never really was happy…

Read More Read More