David Greenlees — Software Testing as a Martial Art
David Greenlees is a professional software tester from Adelaide, Australia, living in Manhattan and working for the consulting firm Doran Jones. He is the author of the Leanpub book Software Testing as a Martial Art, which draws on his martial-arts training to explore how to test software. In this interview he talks with Len Epp about his career, context-driven testing, martial arts, and his experience self-publishing on Leanpub.
Len Epp: I usually like to start these interviews by asking people for their origin story. How did you first become interested in software testing, and how did your career develop?
David Greenlees: I actually go on a bit of a journey in the book, but for the purposes of the podcast, I’ll trim it down. Like most people in software testing, I fell into it. It’s pretty rare to come across somebody going through senior school who, asked what they want to do when they grow up, says, “I want to be a software tester.” You don’t really hear that too often.
I was managing a McDonald’s store in my hometown back in Adelaide in Australia. Anyone that’s worked in McDonald’s before I’m sure would say the same thing: long hours for little pay, but great training, customer service focus, which is brilliant. I took a job in an Australian government organisation, in a call centre, to try and step into a bit more of a professional environment and work out what I wanted to do when I grow up. I worked in the call centre for about 18 months. It wasn’t really the environment for me. I’m not really a huge fan of talking on the phone all day. We had some visitors from the software testing centre of the same department, and I met one of those guys and said, “What can I do to get across to the software testing centre?” I went for an introductory meeting with them and then went on to a five-week project as a software tester, just executing test cases on software. I guess they liked what I did and I enjoyed it. So I stayed there and I never went back to the call centre, which was a bit of a career-defining moment for me.
From that point on, I spent eight years doing various roles in the software testing centre for that government department. Eventually I worked out that I needed to expand my knowledge and experience, and I was headhunted by a consultancy who had just bought a small company in Adelaide. I bit the bullet, so to speak, got to the 10-year mark, took my long service leave, and left, joined the consultancy, and did a few different gigs with them. I’ve been bouncing around different clients since then, getting involved in the software testing community more. I got to a few international conferences, got to speak at STAR Canada Toronto in 2014, and then a month later went to Let’s Test in Sweden, and that was the moment where my now boss said to me, “How would you like to work in New York?” At the time I laughed it off as too big a move with a wife and a young daughter, but got home and mentioned it to my wife and she said, “Well, why not?” One thing led to another and now I’m here working for Doran Jones and doing a program test management position for a global financial institution. So it’s been a pretty interesting ride, almost 15 years now, and obviously that is the very, very trimmed-down version of it.
Len: I would recommend to anyone listening to check out the section at the beginning of the book. It’s a really well-written story. I remember one particular detail where you talk about how at the call centre you actually had to account for the time you went to the bathroom.
David: Yeah, I wrote that in the book thinking that most people probably think that’s a joke, but actually it wasn’t a joke. We had a sheet called a variation sheet, and every time you were off the phone, when you should have been off the phone, you needed to write down how long for and why. And that included restroom breaks. So that was one of the many reasons why the call centre and I didn’t mix too well.
Len: And were your managers convinced that this process improved productivity?
David: Well, it was such a long time ago. We had some very, very highly process-driven managers, so I’m sure they did. We had others that were just doing as they were told. And we had some rebels, but without going into too many details, they didn’t end up staying too long for reasons you can only imagine.
Len: Since it’s so central to your book, I’d like to ask you some questions about martial arts. In a sense you have a second origin story to tell: how you became interested in martial arts in the first place. I was very interested when you mentioned in the book that the first martial art you trained in was Taekwondo and that you started training when you were 19, because Taekwondo was the first martial art I trained in and I also started when I was 19. Why did you want to start studying martial arts, and why Taekwondo?
David: The furthest back I can go is probably around the 80s, when I was just a little tyke and I used to watch Monkey, or Monkey Magic as it’s known, late 70s, early 80s. Look that one up because it’s absolutely brilliant. There was a lot of Kung Fu in that, and I remember watching it and then grabbing a broomstick and using it as a staff out in the yard, trying to spin around and seeing what tricks I could do, and hitting myself in the head way too many times to count. Then that progressed into martial arts films, Bruce Lee, Chuck Norris, Van Damme, all those cool guys from the 70s and 80s.
I think I always wanted to train in martial arts, but we were never in the best place for it in terms of geographic location, and I played a lot of sport as well, so you can’t do everything. Eventually, when I got to around 18, 19 and it was up to me to do it, I found a Taekwondo dojo pretty close to the call centre when I started working there. So I said no more excuses and started training. I did a lot of private lessons, one-on-one. As a 19-year-old, you’ve got nothing much else to spend your money on, so better that than other things, I’m sure you can imagine.
It took me about six years, give or take, to earn my black belt in taekwondo, and then my beautiful young daughter was born. So I had a bit of a break after that, moving house, moving a family, all that kind of stuff. I eventually got back into it at a different gym and started learning jiu-jitsu, kickboxing, boxing, a little bit of karate as well. Currently I’m in between boxing and jiu-jitsu. If I had to choose a favourite I would probably say jiu-jitsu at the moment. There’s just something about it that fascinates me. But I’m always looking to learn something new if I can fit it into my busy schedule.
Len: This is a bit of an inside baseball question, but was it WTF taekwondo you were training in — World Taekwondo Federation?
David: No, it was Moo Duk Kwan Taekwondo. The Grandmaster had moved to my hometown of Adelaide back in the 70s or 80s. He was a small-stature older Korean man, and he was probably the first person to teach me never to underestimate your opponent, because looking at him you’d think not a problem at all, but then when you see what he can do, absolutely amazing. He’d been doing it since he could walk. I can’t remember what the highest ranking is in taekwondo, ninth or 11th degree black belt, but that was him. He was part of the World Taekwondo Federation, one of the lead instructors and chief referees at the sporting events. So it just happened to be the style that he taught at the time. I’ve never done any different styles of Taekwondo, and I’m sure they’re not too dissimilar, but Moo Duk Kwan was the style that I was taught.
Len: It’s relevant in the book with the analogies that you use, but you talk a little bit, very respectfully, about how there are aspects of Taekwondo training that you found somewhat limiting in the end. Could you say a little bit about what your position is on that?
David: Like you said, with all due respect, and it’s not necessarily a reflection of Taekwondo as a martial art, but possibly more on where I was taught. I got to six years and I got to my first degree black belt, chodanbo as it’s known, and the whole six years was no contact. To get to a stage where you’re actually being a black belt, in hindsight I think you should be conditioned not just mentally but also physically. Having a black belt carries a little bit of weight with it among a lot of people. A lot of people will think you’ve got a black belt, you’re a deadly weapon, and while that might be true in a particular scenario that calls on taekwondo skills, in most other scenarios it may not actually be true at all.
So while I worked extremely hard and built up a great level of technique to earn that black belt, I felt as though there was something missing. And I couldn’t put my finger on it at the time, because this was before I got into the whole mixed martial arts thing. It was also before I started reading the philosophies of Bruce Lee: there is no one style, take bits and pieces from all of them to suit whatever you need. Taekwondo is a very rigid martial art. There’s very set techniques, and your Poomsae, or your Kata in karate speak, is a big part of you earning your next grade.
For me, while the discipline and the health and fitness have always been a great part of martial arts, it’s always been about self-defence, and especially since my marriage and my daughter was born, it’s become more about protecting myself and my family. So having just one martial art, being taekwondo, definitely feels like it’s not enough for me, and that’s why in more recent years I’ve branched out to learn different techniques. The second gym that I went to was more in tune with that philosophy. If you wanted him to teach you a sport style of martial art to go and compete, he would do that, but his preference was definitely to teach you how to survive if you needed to. I don’t really like to say street style, but that’s probably the best way I can describe it: he taught you to survive on the street. So my philosophy is martial arts as self-defence first, and then if that leads into competition and that’s what you want to do, then brilliant, go for it.
Len: Just to dive in there a little bit on surviving on the street: one of the theories I find quite compelling is Krav Maga, where the first principle is get out of there if you can. If there’s nothing at stake, like you need to save someone’s life, what do you care — get out of there if you can, and if you can’t, do whatever you need to do to then get out of there. Is that consistent with the kind of style you’re describing?
David: Most definitely. I probably made it sound like he was a bit of an animal, but he’s an animal in the true sense of the word — he’s a very compassionate, caring guy and will look after his family and his martial arts family first and foremost, but if he was ever backed into a corner you wouldn’t want to be on the other side of that corner, that’s for sure. That rings true with me as well. I have never, touch wood, been in a situation where I’ve needed to actually use anything that I’ve been taught on the street, and hopefully for the rest of my life I never have to, but there is a certain level of confidence in knowing that you might be able to diffuse a situation if you needed to, especially when your family and your loved ones are involved.
The first thing that I’ve always been taught, by him and others, is to talk your way out of it first. Do whatever you can to make sure nothing ever turns into a physical altercation. And like you said, if you’ve got the opportunity and there’s nothing at stake, then just walk away, or perhaps run away depending on the situation. Because as soon as it turns physical, it doesn’t matter if you end up on top so to speak, you’re both going to lose anyway, especially with the laws these days. It doesn’t matter if you were defending yourself — if you end up doing the unthinkable and putting someone’s head against the cement ground, who knows what might happen. So it’s just not worthwhile. I would definitely walk away first given the opportunity.
Len: Have you ever competed in a tournament or anything like that?
David: No, I haven’t. It’s definitely something that I would like to do. Selfishly, I would like to do that just to test myself and see how well I did. But once again, you have a family, a wife and a young daughter. It only takes one bad knock in the wrong position and who knows what might happen, so I don’t think it’s something that I would ever do, purely because of the risk involved. Having said that, some of our sparring sessions can get reasonably brutal, but the beauty of a sparring session is that your instructor’s there all the time, and generally speaking your opponent is just as ready to stop whenever you’re ready to stop. All you’ve got to do is put your hand up and it’s done. So I think probably rough sparring is as far as I’ll ever go.
Len: I know from personal experience how rough sparring can be, especially at an earlier stage of training — the most dangerous sparring partner is the one who just walked in the door, by far. One more direct martial arts question. You mentioned in the book that you wish you’d started training earlier, and I’m really curious about that, because I’ve thought about it quite a bit myself and the conclusion I’ve come to, limited to my own experience, is that starting later actually has a lot of advantages. It seems to me there’s an advantage to starting learning fighting when you’re a little bit older, as opposed to younger — your approach to it is different. Why do you think that starting training earlier is an advantage?
David: That’s an absolutely brilliant thing that you say, Len. I haven’t actually ever thought about it like that. You’re talking about a different maturity level perhaps when you get taught to be a lethal weapon, so to speak. For me, it’s always been more about, if you start younger, you’re more flexible, you’re more supple, and if you can learn the techniques earlier you can do them for a longer period of time and therefore hopefully get better at them. I remember after six years of Taekwondo I was an inch away from being able to do the splits, and I’m definitely not a naturally flexible person, and now that I’ve had such a long break I don’t think I could ever do the splits again. So from that sense, starting earlier definitely would have been a huge advantage.
But now that you mention it, you can almost liken it to adult students. A lot of university or college students spend a lot of their time partying instead of studying, whereas adult students are there for a particular purpose. They’ve done their stupid stuff as kids and now they realise this is what they want to do, so they go back to college or university and they’re actually there to study. If you start martial arts a little bit later, you’re there for a particular purpose, whatever that may be — fitness, health or self-defence — and you’ll probably be a little bit more disciplined and a little bit more mature about your training. That’s actually a really good point, man, I’m glad you mentioned that.
Len: Speaking of education and martial arts training, you’ve got a great quote in your book which I’m going to read out and then ask you about. It goes, “Education is more a matter of socialization into tacit ways of thinking and doing than transferring explicit information or instructions.” Could you explain what this means to you, and what you think an optimal environment for education might be, given that idea?
David: That’s a quote from Harry Collins, Tacit and Explicit Knowledge, which is an absolutely brilliant book for probably many industries, but particularly handy for software testing — the fact that everything we do cannot be explicit, and we need to understand that a lot of the work we do in software testing is tacit knowledge and implicit information which cannot be made explicit. On reading that, the first thing I thought about was punching a bag versus sparring. From a martial arts aspect, punching a bag is great, it helps with your strength, but there’s nothing quite like a moving target of different size, shape, different techniques, different skill levels. That practical experience — I don’t think almost anyone could argue that there is a better way to learn than that.
I also mention in the book my grandmaster’s supreme grandmaster, who recently passed, unfortunately. He had people from all over the world come to train with him, and the first thing he would do was pair them up and just tell them to spar. He didn’t have them stand in a line and follow his instructions. He would get them sparring, as close as you can get to real-world training, and then obviously he would guide them through that and show them techniques. There’s something to be said about the fact that a supreme grandmaster would do that for his students rather than direct them with a Simon Says style of training.
As for the ideal environment for learning: learning is such a personal thing and everyone learns differently, although from my experience most people learn better by doing. So definitely put yourself in an environment where you can get that practical experience. From a software testing point of view, I went to a lot of training courses in my early career where we would sit down and just listen to the instructor — death by dot point in Microsoft PowerPoint. While theoretical learning in software testing can give you a start and help you understand a little bit of what software testing is about, there’s nothing quite like actually testing a product to help you learn, using different techniques, different approaches.
The software testing community is something that has given that to me. It’s a community of testers that are all keen on learning and becoming better at software testing, making our industry better and better recognised for the value that we can add. We constantly challenge ourselves with little online challenges, we send each other little products that we can test and see who finds the best bargain, all that kind of stuff. And while it can be a fun little game, it’s all learning and it’s all practical experience. So next time you’re on the job and the executives are looking at you to find important bugs fast, you can call on all these experiences and approaches and lay down the best one for that particular context.
Len: That leads to what this was all building up to. Can you talk directly about what you think the connection is between software testing and martial arts, which you write about so well in your book?
David: Software testing is such a huge, broad subject, as per martial arts. So there’s a few different linkages that can be made, and one general thing that brings it together. For me personally, calling on the Bruce Lee philosophy again: in software testing, traditionally we’ve been governed by particular processes and standards around how we should test software, and a lot of people call these best practices. I’m a firm believer that there’s no such thing as best practices. There’s good practices in a particular context and particular projects, but there is no one best practice.
Martial arts is the same. If I was in a situation where I could unleash my Taekwondo kicks, I might be fine, but if there’s two or three guys on top of me, Taekwondo is not going to do me any good at all. I need to call on perhaps some jiu-jitsu or wrestling. It’s the same in software testing. We have a “best practice” of writing test cases up front before you start testing the product, and there’s very, very minimal situations where that actually makes any sense at all. So we need to have different ways of approaching testing of products where we don’t write test cases at all — we explore the product instead and learn about the product and discover information as we go, saving time. The biggest analogy that I pour is: there is no one style of martial arts, there is no one style of software testing. You need to experience many different styles and approaches so that you can use the best one at the time to get you what you need as quickly as possible.
Len: It’s a really interesting theme in your book, dividing the approaches into two opposing ways. One is where people bring some kind of predetermined theoretical framework arbitrarily onto a project — treating the tester as an undifferentiated unit in a group of things that carry out tasks, issuing instructions: here are some pre-written tasks, go through them step by step and come back to me. As opposed to one which takes advantage of the fact that it’s a human being that’s doing the testing, with consciousness and experience and maybe even some drive and curiosity, and saying each context is different — take that knowledge guided by experience and go into the product, understand what it is, understand what the goals are, and take that approach.
David: And it can be different for different people at the same time. It might not be so bad in a small startup where the shared goals are fairly obvious, but in a huge financial organisation or any other big organisation there is always office politics, there’s always hidden agendas, different people want things done for different reasons. So you not only have to think about the human being that is actually testing the product, you’ve got to think about the hundreds of human beings that are interested in the work that you’re doing, and the reasons why they’re interested. That’s going to change the way that you present the information, how you discover the information.
Software testing and software development is a human, social activity. We can’t restrict ourselves to a process that doesn’t allow for John to be sick for a week, that doesn’t allow for Mary to go out on mat leave. There’s all these human aspects that go into software development that these best practices or standards just don’t allow for. That’s why myself and others in our community caution against trying to implement standards and best practices without the knowledge that it’s just not going to work exactly how it’s written. You need to remain flexible, and don’t be surprised if you need to throw your very fancy expensive process out.
Len: You talk also about the conditioning of the mind for software testing. Could you explain what you mean by that?
David: It’s definitely all about education, for me personally self-education. I’ve read a wonderful book by one of the best software testers I know, James Bach, Secrets of a Buccaneer-Scholar, and in that he goes into the fact that he’s a high school dropout like myself, so I could relate to that, and how he didn’t conform to the traditional education institution and the set curriculums, and how he buccaneered his own knowledge. For me, conditioning of the mind in software testing is all about that: working out where your passion is for your job and where it’s leading you, and going out there and researching and educating yourself on the different aspects of what’s going to get you there.
In our industry, and especially as a consultant, you’ll often end up on a gig where you’re doing something that perhaps isn’t what you want to do every day, but I try and pull the little pieces out of it that will lead towards my ultimate goal, which seems to change week by week. A huge part of conditioning the mind in software testing is learning. And like I said before, everyone learns differently. So you need to find what you’re passionate about and do the best you can to put yourself in a position where it becomes part of your working day. If you end up having to learn about something that’s completely not in line with what you’re doing during work hours, and it doesn’t align with your family life, it’s going to end up being a chore. So position yourself somehow to make it part of your day. It’s like exercise — a lot of people say exercise has to be part of my day, otherwise I just won’t do it. So find a gym on the way to work or something like that.
Len: That leads me to my next question, which is something I had actually never heard of before: what is context-driven testing?
David: One of the founders, who I’d already mentioned, James Bach, more recently describes it as three different things: an approach to software testing, a paradigm or way of thinking, and also a community of software testers. For me personally, context-driven testing is all about testing within the context and being driven by that context. A context is just a set of situations or circumstances that build your current situation. While traditionally we may be told that a best practice is to write a whole bunch of test cases up front before you actually start testing the product, what if you’ve only got a day to test the product? Are you going to write all the test cases up front, or are you just going to jump into the product and test it straight away? Having one day is part of your context. You need to be driven by that context.
Another aspect is the community part. It’s a group of software testers that align themselves with context-driven testing, and it’s really quite an amazing group in terms of knowledge sharing. We back each other up, we challenge each other. If someone says to me, “Well, I think this way that I do testing is the best way,” instead of me going, “Oh, that’s great,” I’ll say to them, “Well, why? Why do you think that’s the best way, are there any other ways that you’ve thought about?” Constantly challenging each other and debating each other to try and make us better, and being a little bit cynical of the ideas that we’re given and challenging those — not because we disagree with them, but because we want to make them better.
For me, it’s been comfortable because I was never a huge fan of just following steps in a test case and following a script. So I’ve found comfort in a group of people and an approach to testing that doesn’t necessarily call on that. It calls on exploration and flexibility of thought, flexibility of vision when you’re testing a product, and to question constantly.
Len: And is it a global community? Is there an East-West divide or anything like that?
David: No. I speak a little bit about the five schools of software testing in the book, and I would encourage people to look that up if they’re interested, but as far as the context-driven testing community goes, it’s very much global. There’s pockets of people who are more vocal than others, but I know people in Europe, North America — obviously I’m here. We’ve started lots of great context-driven community work in Australia and New Zealand where I’m from, South Africa, Asia — every continent we have context-driven testers. Something about North America, I think people are a lot more vocal, a bit louder here perhaps. But it’s definitely a global community. We’re interested in bettering our craft, not only to make it more interesting for ourselves but to show people that software testing isn’t something just for a bunch of execution monkeys that you can get off the street. It’s a thoughtful process, and we can ask questions that add a huge amount of value to software development projects. So listen to us.
Len: You say in your book that it took you three years to write it. What was the inspiration to start a project like that, and who’s the intended audience? Is it other people in the context-driven testing community, or testers generally, or anyone engaged in software development?
David: I think I mentioned in the book the selfish response: when I started, it was just all about me. I blog fairly regularly and I’ve got a few published articles, but to actually write a book has been a goal of mine for quite a while. My inspiration was actually an author by the name of Peter Koevari, an Australian author who’s written a wonderful fantasy novel series. He was a colleague of mine and I was part of the review team on a few of those books. He indirectly showed me that you didn’t have to be a full-time author to write a book. You can do it in your spare time, and there are wonderful places like Leanpub that make it very easy for people to get their content out there.
As for the audience, the immediate audience will be the context-driven testing community, because in essence it’s a book about context-driven testing along with martial arts. Being part of that community, many people know that I’m writing the book and have been expecting it for the last three years. But hopefully, as with everything we do in the context-driven community, it spreads a little bit beyond into the wider software testing community. And even just if one paragraph makes a difference to somebody and changes the way that they view software testing, or encourages them to learn something new about it, then I’ll be a happy man.
Len: In addition to writing a good book with a compelling idea behind it that’s obvious from the title, you also have a really cool cover, and that’s a very important part of doing this. Did you have it done by a professional cover designer, or did you do it yourself, or was it by a friend?
David: I wish I had those mad skills — unfortunately they’re not mine. I’ll stick to the martial arts and the software testing. In software testing, we raise what we call bugs, sometimes more commonly known as defects, but we prefer to call them bugs. So the whole concept was to have a bug dressed as a ninja, or at least some sort of martial artist. I went to fiverr.com and went through a whole bunch of artists on there, found some illustrations that I really liked, and got one of the artists to produce that one and the inside illustration as well. It didn’t cost me a lot of money, I think the result was quite good, and it only took a couple of weeks to turn around.
Len: I know that you write at the beginning of your book about all the people who helped you along the way. Post-publication, is it part of your process — maybe through feedback from Leanpub or directly from readers — to update your book and publish new versions?
David: Yes, I did update a version quite quickly. Someone spotted, as testers do, a typo in there pretty quickly, so I managed to update that very quickly, which is something Leanpub makes quite easy. And you’ll notice that I have a couple of different software testers that contribute chapters — software testers who are also martial artists. A goal of mine was always to include some thoughts from other people about how martial arts supports them in software testing, and one such person is Ben Kelly, who hasn’t finished his chapter yet but has assured me it’s about 50% done. As soon as that’s done I’ll definitely be including that and updating it.
When you’re publishing something like this, it’s a really difficult thing to know when to stop. It took me three years to write — obviously I wasn’t writing that whole time, otherwise it would be a thousand pages. But as you keep training in martial arts and as you keep software testing, you keep learning more and more, so I could just keep writing. There came a point where I had to publish. Too many people were asking for it. In six to twelve months’ time, if I’ve got enough extra material, then most definitely I’ll add to it, make a second edition or just update this one. And another good thing about Leanpub is that people have paid for it, and if you make an update, they get the new update, which I think is absolutely fantastic.
Len: Since we’re chatting directly, if there was one thing we could improve on Leanpub, or one feature we could add, what would that be?
David: Definitely a nice to have, and I don’t know if other authors would experience it, but when I kicked this project off, I just started writing it in Microsoft Word — it’s the application I’m used to, I’m used to the formatting and the various tools that go with it. So to have some sort of conversion from Word to EPUB or Mobi that wasn’t such a nightmare to use would be fantastic. Or even if it wasn’t an automated thing, if you offered a service with a small fee, I would definitely be happy to pay for that, because it’s just a lot of work to do. Knowing how difficult it is, I would understand if there was a fee involved and I’m sure other people would as well.
Len: The good news is that that’s actually what I was working on this week — we had a big chat internally about it just yesterday. I don’t know when it’s going to be deployed, but the ability to work directly in Word and then, the way you can now in plain text, click a button and get PDF, EPUB and Mobi output automatically is something that we’re going to be adding as a separate service.
David: Wow, man, you let me know, I’ll be your first customer.
Len: One thing is that for books that are heavily formatted, where people have centred images or floating images and all the crazy stuff — Microsoft Word is kind of like the Starship Enterprise of doing stuff, it can do mail merge, it can do an endless number of things — obviously we’ll never be able to build something that automatically converts a heavily formatted Word document into EPUB. But there are a surprising number of things that take account of probably 99% of book writing cases that we figured out we can convert directly with the click of a button. So hopefully that’s something we’ll have out sooner rather than later.
David: That’s awesome news, Len. I look forward to it.
Len: Is there anything that I didn’t ask that you wish I had?
David: Not specifically. I just wanted to also mention that I’ve started another little e-book, Lessons Learned From My First Agile Project. And I wanted to mention to you specifically that I’m actually doing this one in the browser, writing in Leanpub. It’s been a pretty good experience so far.