Thomas Sundberg

January 14, 2016

Separation of concern when using Selenium

Filed under: Java, Selenium, Test Automation — Tags: , — Thomas Sundberg @ 20:07

A lot of people want to automate testing of their web applications. This is definitely a good thing. But it happens that they focus more on the tooling than the testing.


December 26, 2015

Gradle and Cucumber-JVM

Filed under: Cucumber, Gradle, Programming — Thomas Sundberg @ 11:06

Gradle is a great build tool. Cucumber-JVM is a great tool for executing Gherkin. They don’t really work well together. At least not out of the box. Gradle defaults to hide the output on stdout and stderr. This is very unfortunate since this means that the code snippets Cucumber-JVM suggests when there is a missing step are hidden.

Let me show you an example on how to setup a Gradle project so it can execute Cucumber-JVM and give you the snippets you want as starting points for your steps.


December 23, 2015

Continuous deployment – a case study

Continuous deployment is considered, among some enlightened, to be the holy grail in many organisations where software is developed.

What is continuous deployment then? My interpretation is that every change is deployed into production. That is, every change that passes the quality gates the team has created.

A relaxed version is continuous delivery. Continuous delivery means that every change that passes the quality gates ends up as a release candidate. A release candidate that is possible to deploy into to production. The deployment will, however, be done later. If ever.

I will describe how I implemented continuous deployment for one product and continuous delivery for three others for a client.


November 20, 2015

Expected exceptions

Filed under: Java, Programming, TDD — Tags: , , , , — Thomas Sundberg @ 11:27

Sometimes you want to verify that an exception is thrown in your code.

Let me show you three different ways to verify that the expected exception has been thrown.


November 6, 2015

Different asserts are good in different situations

Filed under: Java, Teaching — Tags: , , , — Thomas Sundberg @ 11:49

When should you use which assert? It is a question developers new to unit tests may ask themselves.

It is easy as a seasoned developer to think that this is obvious. It isn’t when you are learning.


October 27, 2015

When is evolutionary design a good way to implement software?

Designing software can be done in different ways. The time and effort spent on designing have an important effect on the result. An interesting question is: When should you allow the software to evolve using Test Driven Development, TDD, and when should you not?

Software Development Gang

This blog post is the result of a session at an open space with the Software Development Gang in Ghent, Belgium, June 2015.


September 13, 2015

Conference do’s and don’ts

Filed under: Public speaking — Tags: , , , — Thomas Sundberg @ 12:41

I have done some conference presentations the last few years. It is interesting to compare conferences in retrospective. It is possible to notice some common mistakes as well as some really good things. It is, unfortunately, often easier to criticize instead of attributing good things.

Most conferences I attend have very engaged organizers. They don’t just do a job; they are passionate about it at the same time. It is great to be able to contribute in such environments!

Then there are some who just does a job and it is obvious that there is a difference.


September 10, 2015

Increase the available disk on a CentOS host maintained by Vagrant and VirtualBox

Filed under: Linux — Tags: , , , , — Thomas Sundberg @ 22:36

Virtual servers are fantastic when you need to test something and want to make sure that you have a well know environment. A virtual server has no value. You can create it over and over again and it will only cost you some time to start and stop.

VirtualBox and Vagrant is a really easy combination to get started with. However, it may turn ut that the base box you use need to be enhanced. I will show you how you can increase the disk space available on the virtual host. Unfortunately, it isn’t as easy as one could hope for. But it is possible and I will show you how. When the disk has been increased, I will repackage the virtual host so it can be reused easily.


YUM Cheat sheet

Filed under: Automation, Linux — Tags: , , , , — Thomas Sundberg @ 21:50

Remembering the syntax for yum is something I seem to have problems with. To simplify my own life, and possible yours, here is a list of some commands I find useful. Some of them should be executed as root.


RPM Cheat sheet

Filed under: Automation, Linux — Tags: , , , , — Thomas Sundberg @ 21:42

It turns out that I always have to search for the syntax when working with RPMs. To simplify my own life, and possible yours, here is a list of some commands I find useful. Some of them should be executed as root.


Older Posts »

The Silver is the New Black Theme. Create a free website or blog at


Get every new post delivered to your Inbox.

Join 80 other followers