Skip to main content

Jun 13, 2014 - 2 minute read - About the book Java For Testers

Source code for Java For Testers Book Available on GitHub

I knocked off one thing on my todo list:

[x] release source code for Java For Testers book

You can find it over on github:

It will still change

The source code is likely to change in a number of ways:

  • package restructuring
    • I haven’t decided if the current package structure supports the book reader or not
  • code will be removed
    • Some of the code classes are not relevant to the book. I use them because I have excerpts from them in the book, but some of them represent intermediate forms of the code in the book, rather than the final forms you find in most code repos e.g. classes without the methods yet, because I show the class without any methods in the text of the book
  • more code
    • I’m likely to add more code because I’m still working on the book. I’m doing my second draft at the moment, and I’ve been adding extra examples and more exercises, all of which require code.

This is the code in the book

I made a decision when I finished Selenium Simplified that I would never write another book with code in it, unless I had a way of ‘pulling’ the code out of my main code base, so that I would never have any more copy and paste, or find and replace, editing errors.

So I wrote a macro parser which scans my source code, extracts snippets to text files, and I include the text files in the book.

This means the code in the book is taken directly from the working code base.


I didn’t want to release that code to the world as it isn’t particularly readable since it has a whole bunch of nested macros in it.

And that was why I haven’t released the source code until now.

I expanded my macro processor to kick out a version of the code base without the macros, and that is what I have released to github.

- in About the book Java For Testers

You will need a Github account to comment. Or you can contact me with your comment.

I reserve the right to delete spam comments e.g. if your comment adds no value and its purpose is simply to create a backlink to another site offering training, or courses, or etc.