Java For Testers Posts

Subscribe to the full blog feed using RSS

All Posts | Categories | Archive

Recent Posts for Java For Testers and Test Automation Blog

Which programming language should I learn?

Which programming language?

4 minute read - Java For Testers Programming WebDriver

TLDR; Getting started with programming is the hardest part. Installing the IDE, adding dependencies, writing your first test. Pick whichever language you have someone to help you with, or you have a tutorial to work through. Switching languages when you know one is not too hard so do not worry about being stuck with a language, focus on getting started.


Two Java Beginner Coding Tips

Two Java Beginner Coding Tips

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

JUnit5 Assertion Migration Strategy

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

MVP and API Thinking When Coding

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.


Older Posts for Java For Testers and Test Automation Blog