Recent Posts for Java For Testers and Test Automation Blog

How to download a file with RestAssured

Jan 25, 2019 - 4 minute read - Java For Testers RestAssured API Testing WebDriver

TLDR; Downloading a file with RestAssured is as simple as taking the body of a request as a byte array and writing it to a file.

When automating I often have to download files. One very common FAQ for WebDriver is “How do I download a file with WebDriver?”.


How to convert SVN Subversion to Git on Windows

Jan 22, 2019 - 2 minute read - Java For Testers Git Subversion

TLDR; Using Visual SVN, svnserve and local SVN repositories I was able to easily convert SVN to Git on Windows.

I hit every error possible when converting SVN to GIT. I eventually figured out the simplest way to avoid errors during the conversion process.


How to install Bonobo Git Server On Windows

Jan 16, 2019 - 2 minute read - Java For Testers Git

TLDR; Bonobo is a free and simple to install Git Server for windows.

The Bonobo git server install page instructions don’t fully match the process I had to use to install, so I’ve documented the process here.


Two Java Beginner Coding Tips

Dec 28, 2018 - 2 minute read - Java For Testers

TLDR; Coding Tips for beginners.Write your code as temporary comments, remove syntax errors as soon as you see them.

Here are a few tips I’ve been verbally passing on when teaching people on my Java For Testers face to face training.


JUnit5 Assertion Migration Strategy

Nov 4, 2018 - 5 minute read - Java For Testers

TLDR; Rather than migration your assertions line by line, create an abstraction class to represent the new implementation and then perform inline refactoring.

I’m experimenting with migrating my projects to JUnit 5.

Many of the “how to migrate to JUnit 5” blog posts show differences, but not a lot of strategies. I used a Branch By Abstraction strategy to migrate JUnit 4 Assertions. This allowed me to experiment with using JUnit5 assertions or AssertJ assertions.


MVP and API Thinking When Coding

Jul 13, 2018 - 10 minute read - Java For Testers

TLDR; Apply MVP principles when coding. Code to the API first. The API is internal before it is external. Unit tests with classes. In code testing with classes in combination. In code API testing. External HTTP API Testing. And then if necessary -In memory and process HTTP API testing. GUI.

A long time ago, in a town which I no longer live in, I wrote a tool called Compendium-TA

Commercially that was a disaster: it was self funded, it took a long time to write and I made some poor technology decisions.

I learned MVP and API First Thinking the hard way. I’ll try and explain within.


Some Similarities Between Java And JavaScript

May 7, 2018 - 4 minute read - Java For Testers

TLDR: Learn one programming language and you have already learned parts of other languages. You can speed up learning other languages by learning the differences.

I wrote a bunch of code in Java in my Test Tool Hub for generating CounterStrings.

I thought it would be useful to have it online and written in JavaScript.


Older Posts for Java For Testers and Test Automation Blog