TesterHQ - The Evil Tester Blog Aggregator

Oct 12, 2017 - 2 minute read - FAQ Java For Testers

How to Diff Java Code in IntelliJ - 3 ways to use the Compare Tool

TL;DR IntelliJ has an inbuilt diff tool which you can use to compare files, classes or code with the clipboard. Just right click and choose Compare.

I was busy refactoring code in RestMud this morning because I want to try and open source the basic game engine, and then later the Web/REST API, but I want to tidy up the code a little first.

I’ve been working through the code:

  • moving classes into new packages
  • splitting classes to make code clearer and easier to manage
  • new classes make code easier to test

And the more I tidy it up in general, the easier it is to spot smaller problems of code duplication.

Oct 9, 2017 - 3 minute read - Instagram

Adapt Methods to the People - Instagram Post

“If the people can not adapt to the methods, then the methods must be adapted to the people.” E.F. Schumacher in “Small is Beautiful pg 161, 1974, Sphere books Clearly we can educate and train people to help them develop the skills and attitudes required to adapt to the methods. But you may encounter natural resistance from those people, or the timescales to train them may take too long. Therefore you have to meet the people where they are, or where they can very quickly be.

Oct 5, 2017 - 6 minute read - FAQ Java For Testers

Java 1.9 Reflection and Package Access Changes

TL;DR Java 1.9 does not like reflection as much as previous versions and access to proprietary packages is not possible out of the box.

Java 1.9 is out, and many companies now will be evaluating Java 1.9 and migrating their code base over to Java 1.9. I am now going through a similar process.

I have some fairly simple code that I was using for HTTP requests. This was originally written in Java 1.8 and to keep my codebase as simple as possible and I wanted to use no external libraries, therefore for HTTP requests I used an HttpURLConnection.

This started to fail on Java 1.9.

When I looked in my code more carefully I realised that it wasn’t HttpURLConnection that was failing in Java 1.9 it was my use of Reflection to bypass some constraints of the HttpUrlConnection that was failing.

Sep 22, 2017 - 12 minute read - Evil Tester

Test Automation and Test Process Modelling - an evolutionary and pictorial explanation

TLDR; Historically we modelled testing as something that we wanted to automate, but the tools didn’t help, so we automated entity management and that has led to a mistaken view of “Test Automation” instead of “Automatization as part of a software development and testing process”.

  • Why do we talk about Test Automation the way we do?
  • Why do we talk about 100% Test Automation?
  • How do we model automation as part of our Test Process?
  • How does Testing provide information?
  • Why was a Waterfall Test Process Different from an Agile Process?
  • Why, in reality, both processes are fundamentally the same.
  • How we modelled “Test Automation” incorrectly, and an alternative way to model it.

All this and more…

Sep 13, 2017 - 3 minute read - Instagram

Presentation Practice Steps - Instagram Post

For a Keynote practice, I load the slides up on the machine I’m going to use. Make sure my clicker works, and that the slides are up to date. Then talk through the presentation as though I were presenting it to check for style, flow and timing.

Sep 1, 2017 - 4 minute read - REST API Testing Evil Tester Testing Technical Testing

Automating and Testing a REST API Paperback Edition

TLDR; My new book Automating and Testing a REST API is out in paperback on Amazon.

My Case Study book “Automating and Testing a REST API” is now available as a paperback on Amazon.

It has been out as an ebook since January but I wanted it to:

  • Settle down
  • Receive some comments
  • Proof read it gradually over time

And I’m glad I did.

Based on comments I added three or four new chapters to go beyond the set of topics that a Case Study could provide and the book now has generic information on:

  • Serialising and Deserialising to/from JSON and XML with REST Assured
  • Overview of HTTP and REST Technology

This makes it more suitable for beginners and has more information to allow you to apply the lessons learned in your own projects.

Sep 1, 2017 - 3 minute read - Instagram

Why Java Null Pointer Promo - Instagram Post

I’ve released a longer version of this video on Youtube, so if you need more details you can head off there via the link to the blog post at the end of this post (YouTube video is added at the bottom of that post). A common reason for Null Pointer Exceptions in Java is a variable redeclaration instead of instantiation. Learn what that means, how to avoid it, and how to spot it, in this presentation.

Aug 30, 2017 - 5 minute read - Evil Tester Testing

I wish companies offered functional bug bounties - not just security bug bounties

TLDR; Testers often find bugs in production systems. But with no incentive to raise them we find workarounds and they go unreported.

I wish there were bug bounties for functional defects

This week I found a bug in SlideShare. I say “found” when what I mean is - “for the 3rd or 4th time I’ve had issues uploading slide decks and I finally identified the cause”.

And… SlideShare will (probably) never have the defect formally reported to them by me.