Skip to main content

Agile Testing Questioned


Zenzi Ali has been running a book club on the Association for Software Testing Slack and over the last few weeks we've read Agile Testing Condensed by Janet Gregory and Lisa Crispin.

Each chapter was taken as a jumping off point for one or two discussion points and I really enjoyed the opportunity to think about the questions Zenzi posed and sometimes pop a question or two back into the conversation as well.

This post reproduces the questions and my answers, lightly edited for formatting.

--00--

Ten principles of agile testing are given in the book. Do you think there is a foundational principle that the others must be built upon? In your experience, do you find that some of these principles are less or more important than others? 

The text says they are for a team wanting to deliver the highest-quality product they can. If we can regard a motivation as a foundational principle, perhaps that could be it: each of the ten principles are ways to contribute to a higher quality product.

I thought it might be interesting to compare the ten to the principles behind the agile manifesto. There is some overlap, but some traditionally important agile principles are not present. For example iteration, different roles working together closely, sustainable pace, technical excellence.

Do these not contribute to higher-quality software? Are they not applicable to testing?

Another thought on the principles? What makes these agile testing principles rather than, say, good testing principles? 

Agile testing is defined as "Collaborative testing practices that occur continuously, from inception to delivery and beyond, supporting frequent delivery of value for our customers. Testing activities focus on building quality into the product, using fast feedback loops to validate our understanding. The practices strengthen and support the idea of whole-team responsibility for quality."  Would you describe your current testing practice as agile by this definition? Why or why not?

Depending on how we care to define "continuously," "frequent," "fast" etc for a given context  I think that what I attempt is very much aligned with the definition. I might say that rather than focus on building quality in, I want to focus on the delivery of business value. In principle, sometimes, by some definitions, this could mean a reduction in quality for some stakeholders.

The section How Teams Deal with Defects touches on the concept of zero-defect tolerance on engineering teams.  This seems to contradict the common belief that no software is truly bug free.  Can these two approaches exist harmoniously? 

Yes, for example if zero tolerance is of known bugs that we think are worth fixing.

There may be unknown bugs (how would we fix them and know we'd fixed them?) and there may be known bugs (to someone) that we choose to regard as acceptable.

One of the things that I have seen often is people not realising that a bug can be high priority or severity today, and completely disregarded tomorrow. All sorts of factors play into the assessment of whether or not it is important to fix, and when. 

Chapter 2's main idea seems to be that gathering multiple perspectives (from product, customers, testers, etc) allows the team to better assess risk, deliver quality, and test early and often. Is there feedback that carries more weight than others in this model? How do we define "done" when our principles stress continuous improvement and continuous feedback?

I think this is a wonderful question, btw. 

Yes, some feedback carries more weight than others but there are complications... how explicit everyone is about the relative weight of feedback from different participants, how much agreement there is on whose feedback has the weight under what circumstances, whether that person is available to give it, what politics and other factors that business value feed into it, how to resolve differences in feedback to get to action, etc etc etc.

One pragmatic way is to say that "done" means that the things on a checklist of activities have been addressed in a reasonable manner.

It doesn't mean perfect and it doesn't assert that a particular result is guaranteed.

It could be interpreted as something like "we did everything that we currently think is the right kind of things to do, to the extent that context and risk analysis suggested was appropriate, given the priority, constraints, and opportunity cost."

If team, product, and level of system detail are the defining components of test context, do you think that it's possible to compensate if testers lack expertise or knowledge in one component area?

Yes. It requires some means of compensating, of course — someone else with the expertise that's lacking, or designing work or product around the lack, for example — and the resources to allow that compensation to take place.

Do you think that team, product and levels of detail are a reasonable way to break down the context? 

The authors suggest that the "ideal" agile team is small and co-located.  Do you agree?

To be fair, the quote I'm looking at is "ideal situation for easy communication."  I think I'd find that easier to baldly agree with than the question as asked.

On the idea of an ideal agile team being co-located... Perhaps it's nit-picking but it's possible to imagine teams where remote might be necessary for some people to be on the team at all.

For example, some social anxiety sufferers, working parents, or people living in a foreign country might be an amazing fit for the team needs. An ideal team would have them on it. But they can't co-locate.

In general, though, my experience is that smaller and closer in both time and space makes for better empathy, spirit, communication, and interactions.

What benefits do you think exist in not using the word “test” when creating documentation around quality-realted procedures?

If there's any prejudice about what testing is and who does testing, then not using the word can help to reduce it.

Examples sound like something that anyone can legitimately come up with and so potentially increases engagement. There's less of a barrier to entry.

In chapter 5, the authors stress the importance of gathering The Three Amigos to advocate for the customer, drill down on product features, and build  consumer trust via a high-quality delivery. Can you think of questions that each "amigo" might ask during a session that would help a team reach quality and risk-related goals?

The way I like to think about  it, and I don't recall where I got this from, is that we want (at least three) perspectives:

  • requestor - what we want
  • suggestor - ways we could do it
  • protestor - potential risks, problems, constraints

They don't need to come from three people with particular roles. We call the approach Three Colleagues or Three Hats at work now to be less gendered and I have combined it with example mapping in the past. 

Edit: this post by John Ferguson Smart has more to say about request, suggest, protest, but I'm not sure it's where I first saw those terms.

In what ways do you combat bias when test planning (drafting test cases or an exploratory testing charter)?

Start by being aware of the possibility that you are biased.

Use tools to help you take broader perspectives. For example, I like SFDIPOT when considering a system.  

In chapter 7, the authors suggests exploring how our product team will gauge success (or failure)  of a newly released feature.  Without speaking directly to customers, how would you determine if a new offering is a quality fail or success?

If it's possible I would ask someone who is speaking directly speaking to customers what the feedback is. This might be e.g. sales, client success manager, tech or customer support.

Customers are not the only stakeholders, though. The feature can be a quality fail for customers but a quality success for the team.

For example, we migrate from an old infrastructure to a new one at the back end. This massively eases the way we work, reduces the chance of certain kinds of critical issues in production and so on. That's a win for us now and other stakeholders going forward. 

However, because we were concentrating on that (and doing several things at once, naturally) the feature we pushed at the same time was undercooked. That's a loss for the customer.

The book describes formal and informal methods to brainstorm test approaches and techniques. How do you determine how much time you'll allow for test planning and design? 

I try to make time for up-front thinking, but I try to make that time proportionate.

For something that feels like a "small" task, perhaps a conceptually and technically straightforward bug fix, I'll start with a small timebox for the work and spend a small proportion of that (for example) making a checklist of test ideas.

The checklist might include checking I can see the issue before the fix and not after, some attempts to broaden the reproduction to look for similar cases, a skim of the code, and wondering whether there's some way to look for unexpected side-effects.

For what feels like a "big" task, perhaps a new feature planned to take months to implement completely, I'll do more up front.

I might start with a mind map and SFDIPOT and dump all the risks, test ideas, questions etc that I have into it.  I'm prepared to put more effort into this at the beginning because it helps me to understand the project and the project context, highlight where I don't know things (yet) etc. It primes me to research, ask questions, raise early concerns, etc.

For me this is a live document rather than a plan. I'll show it to people when the moment is right to get engagement, and I'll update it as I find out more.

Chapter 8 asserts that the key to successfully implementing CI/CD is recognizing the difference between deploying and releasing. What makes this the key concept? How can this difference be explicitly defined within a team?

I'm not sure that I agree the difference is the key concept in implementing CI/CD.

I think Janet and Lisa are saying that understanding the difference helps to reduce the fear of continuous deployment: not every (partial) feature that's deployed to production has to be released (to everyone).

To achieve it, you need a mechanism for exposing features that you have confidence in, and you need to use it well.

Once you have several feature flags you risk combinatory issues becoming a problem. Three flags means 8 possible versions of your system in prod. Are you sure you've enabled just the right stuff for just the right people in just the right places?

I've often heard developers (and testers) say that the role of QA is disappearing.  Thoughts?

I think the tester role title is fading in popularity and QA seems to be more often used for process/compliance checking jobs these days.

The value of someone asking pertinent questions about motivation, approach, need, value, and so on is unlikely to reduce, however.

I can rant about this, so I'll just link to the blog post where I did rather than fill the thread with it.

The Agile Testing Quadrants are said to be suggestions (a tool, not a rule) and can be tailored to business-specific needs.  Can you think of a business or product type that would require updating the quadrants? What would our new quadrants assignments be named? 

Quadrants are a useful, simple, and visual model but they assume two binaries will describe the space. In this case:

  • tests are either tech or business-facing
  • tests are either guiding or critiquing the product

Clearly definitions matter: what those things cover from the space of all possible testing will depend on what you mean by them. But what about, for example:

  • user-centric tests
  • tests that are for information gathering

Where would they sit in the quadrants? What makes you say that?

Your team has decided to use Lisa and Janet's exercise to define "Done" for a new product feature.  You place a grid featuring all four quadrants on a whiteboard and brainstorm test scenarios as a team. At the end of the exercise, you realize that one of the quadrants is completely empty! What's your next step? Is it possible that feature testing can be complete with an unexplored test quadrant? 

Great question. I like to use Jerry Weinberg's definition of a problem to help me in circumstances like this: a problem is a difference between things as desired and things as percieved.

  • do we desire all four quadrants to be populated? If so, to what end? Is that reasonable?
  • do we perceive this model correctly? Perhaps we have miscategorised?
  • is this "thing" the right thing? Does this model even make sense for us at this time on this project? 

Do you think drafting business-readable tests is a realistic test goal? Why or why not?

I'd prefer  a slightly different question: under what conditions would it be reasonable to draft business-readable tests? This accepts that context is going to be a significant factor in the answer.

Outside of specific context, I would say that a good default is probably to prefer to have business input to the scope, desires, intentions, priority, etc of testing and a business-readable report on the outcome of the testing. 

Some new duties of testers are given in Chapter 11 What is missing from the list? Which duties are outside of the scope of our role? 

I think testers should feel empowered to look for places they can add value by exploring the product under test and its context.

This doesn't mean that all other duties should be unceremoniously dumped but spending some proportionate amount of time looking for opportunities or risks and then investigating them, and sharing the results, is usually possible.

With value delivery comes trust and then further freedom.

The authors' ingredients for success can be distilled into 3 factors:

  • Communication
  • Collaboration
  • Considering quality a cyclical process (not a step)

What other ingredients do you feel are necessary for success? Can you think of any ingredients or processes that would guarantee failure?

Much like the other questions where there's a classification (e.g. the quadrants), the coverage of your three factors determines whether other ingredients are possible.

For example, perhaps I think that personal responsibility, humility, and open-mindedness are necessary for success. Do they fit into an existing category?

There's a wide range of stuff to fit into those categories too, Where does context-sensitivity (from the  list in the book) fit for you? Is it communication? collaboration? cyclical quality? something else?

In terms of guaranteed failure, I think it's hard to say for sure. You might half-jokingly say "nuclear war" but of course then, as testers, I hope we're all trying to think of scenarios in which nuclear war solves a problem (for someone, from someone's perspective).

Factors that are more likely to lead to an unwanted outcome is a question I think it's more interesting to answer. What's your experience there?
Image: https://leanpub.com/agiletesting-condensed

Comments

Popular posts from this blog

Notes on Testing Notes

Ben Dowen pinged me and others on Twitter last week , asking for "a nice concise resource to link to for a blog post - about taking good Testing notes." I didn't have one so I thought I'd write a few words on how I'm doing it at the moment for my work at Ada Health, alongside Ben. You may have read previously that I use a script to upload Markdown-based text files to Confluence . Here's the template that I start from: # Date + Title # Mission # Summary WIP! # Notes Then I fill out what I plan to do. The Mission can be as high or low level as I want it to be. Sometimes, if deeper context might be valuable I'll add a Background subsection to it. I don't fill in the Summary section until the end. It's a high-level overview of what I did, what I found, risks identified, value provided, and so on. Between the Mission and Summary I hope that a reader can see what I initially intended and what actually

Why Do They Test Software?

My friend Rachel Kibler asked me the other day "do you have a blog post about why we test software?" and I was surprised to find that, despite having touched on the topic many times, I haven't. So then I thought I'd write one. And then I thought it might be fun to crowdsource so I asked in the Association for Software Testing member's Slack, on LinkedIn , and on Twitter for reasons, one sentence each. And it was fun!  Here are the varied answers, a couple lightly edited, with thanks to everyone who contributed. Edit: I did a bit of analysis of the responses in Reasons to be Cheerful, Part 2 . --00-- Software is complicated, and the people that use it are even worse. — Andy Hird Because there is what software does, what people say it does, and what other people want it to do, and those are often not the same. — Andy Hird Because someone asked/told us to — Lee Hawkins To learn, and identify risks — Louise Perold sometimes: reducing the risk of harming people —

Enjoy Testing

  The testers at work had a lean coffee session this week. One of the questions was  "I like testing best because ..." I said that I find the combination of technical, intellectual, and social challenges endlessly enjoyable, fascinating, and stimulating. That's easy to say, and it sounds good too, but today I wondered whether my work actually reflects it. So I made a list of some of the things I did in the last working week: investigating a production problem and pairing to file an incident report finding problems in the incident reporting process feeding back in various ways to various people about the reporting process facilitating a cross-team retrospective on the Kubernetes issue that affected my team's service participating in several lengthy calibration workshops as my team merges with another trying to walk a line between presenting my perspective on things I find important and over-contributing providing feedback and advice on the process identifying a

Testing is Knowledge Work

  The Association for Software Testing is crowd-sourcing a book, Navigating the World as a Context-Driven Tester , which aims to provide responses to common questions and statements about testing from a context-driven perspective . It's being edited by Lee Hawkins who is posing questions on Twitter ,  LinkedIn ,  Slack , and the AST mailing list and then collating the replies, focusing on practice over theory. I've decided to contribute by answering briefly, and without a lot of editing or crafting, by imagining that I'm speaking to someone in software development who's acting in good faith, cares about their work and mine, but doesn't have much visibility of what testing can be. Perhaps you'd like to join me?   --00-- "We need some productivity metrics from testers" OK. I'd like to help you meet your need if I can but to do that I'll need to ask a few questions. Let's start with these: Who needs the metrics? Is there a particular pr

My Favourite Tool

Last week I did a presentation to a software testing course at EC Utbildning in Sweden titled Exploring with Automation where I demoed ways in which I use software tools to help me to test. Following up later, one of the students asked whether I had a favourite tool. A favourite tool? Wow, so simple but sooo deep!  Asking for a favourite tool could make a great interview question, to understand the breadth and depth of a candidate's knowledge about tools, how they think about an apparently basic request with deep complexity beneath (favourite for what task, on what basis, in what contexts, over what timescale?  what is a tool anyway?) and how they formulate a response to take all of that into account. I could truthfully but unhelpfully answer this question with a curt Yes or No. Or I could try and give something more nuanced. I went for the latter. At an extremely meta level I would echo Jerry Weinberg in Perfect Software : The number one te

Trying to be CEWT

I attend, enjoy, hopefully contribute to, and get a lot from, the local tester meetups and Lean Coffee  in Cambridge. But I'd had the thought kicking around for a long time that I'd like to try a peer workshop inspired by MEWT , DEWT , LEWT and the like. I finally asked a few others, including the local meetup organisers, and got mostly positive noises, so I decided to give it a go. I wrote a short statement to frame the idea, based on LEWT's: CEWT ( Cambirdge Exploratory Workshop on Testing ) is an exploratory peer workshop. We take the view that discussions are more interesting than lectures. We enjoy diverse ideas, and limit some activities in order to work with more ideas. and proposed a mission for an initial attempt to validate it locally on a small scale. Other local testers helped to refine the details in usual the testing ways - you know: criticism, questions, thought experiments, challenges, comparisons, mockery and the rest - and a list of potential at

Testing and Words

  The other day I got tagged on a Twitter thread started by Wicked Witch of the Test about people with a background in linguistics who’ve ended up in testing. That prompted me to think about the language concepts I've found valuable in my day job, then I started listing them, and then realised how many of them I've mentioned here over the years .   This post is one of an occasional series collecting some of those thoughts.  --00-- In The Complete Plain Words , Ernest Gowers notes, acidly, that: What appears to be a sloppy or meaningless use of words may well be a completely correct use of words to express sloppy or meaningless ideas. It surely sounds trite to say it but our choice of words can make a significant difference to how well our message is understood, and how we are judged. We choose from amongst those words we know, our lexicons . The more my lexicon agrees with yours, the greater our chance of us achieving a shared understanding when we converse. But lexic

Done by Friday

The Association for Software Testing is crowd-sourcing a book, Navigating the World as a Context-Driven Tester , which aims to provide responses to common questions and statements about testing from a context-driven perspective . It's being edited by Lee Hawkins who is posing questions on Twitter ,  LinkedIn ,  Slack , and the AST mailing list and then collating the replies, focusing on practice over theory. I've decided to contribute by answering briefly, and without a lot of editing or crafting, by imagining that I'm speaking to someone in software development who's acting in good faith, cares about their work and mine, but doesn't have much visibility of what testing can be. Perhaps you'd like to join me?   --00--  "Will the testing be done by Friday?" If the question relates to some prior discussion about scenarios we've agreed to run through before Friday then I'll do my best to base my answer on experience gathered so far . How sim

Use the Force Multiplier

On Fridays I pair with doctors from Ada 's medical quality team. It's a fun and productive collaboration where I gain deeper insight into the way that diagnostic information is encoded in our product and they get to see a testing perspective unhindered by domain knowledge. We meet at the same time each week and decide late on our focus, choosing something that one of us is working on that's in a state where it can be shared. This week we picked up a task that I'd been hoping to get to for a while: exploring an API which takes a list of symptoms and returns a list of potential medical conditions that are consistent with those symptoms.  I was interested to know whether I could find small input differences that led to large output differences. Without domain knowledge, though, I wasn't really sure what "small" and "large" might mean. I prepared an input payload and wrote a simple shell script which did the following: make a

Testing is not the Goal

  The Association for Software Testing is crowd-sourcing a book, Navigating the World as a Context-Driven Tester , which aims to provide responses to common questions and statements about testing from a context-driven perspective . It's being edited by Lee Hawkins who is posing questions on Twitter ,  LinkedIn ,  Slack , and the AST mailing list and then collating the replies, focusing on practice over theory. I've decided to contribute by answering briefly, and without a lot of editing or crafting, by imagining that I'm speaking to someone in software development who's acting in good faith, cares about their work and mine, but doesn't have much visibility of what testing can be. Perhaps you'd like to join me?   --00-- “Testing is a bottleneck” I'd really hope it isn't, but let's see if we can work out what's happening and how we could improve the situation. First, what are you seeing that makes you think testing is a bottleneck? When I