Skip to main content

If it's not good testing, it's not good regression testing either.

Pick a coin from your pocket, and hold it at arms length. Take a good look. Now take another one, of the same denomination and hold it out at arms length as before. Based on your observations alone - can you say they are the identical?

Lets go a step further. If someone had given you one coin to look at, then exchanged it for another, could you have determined whether they are the same or different coins? Maybe, yes? If the differences had been large enough e.g. one coin was heavily tarnished or scratched, then the different coins would be identifiable. Or if you'd been given the opportunity to examine the coin using magnifying equipment, you probably could of found differences.

But lets assume our only test was a standard set of checks i.e.: viewing at arms length and comparing what we see with our notes/records. It's better than nothing, I would see some differences, some might be important ones. For example if my next coin was blank: I might have suspected an issue with my coin supply, and investigated.

What about my next coin... it is blank on one side. Unfortunately it's not the side I check when I hold it at arms length. So as far as my checks are concerned there has been no regression in the quality of the coins being produced by my pocket. So until I go 'live' and try and spend my coins out in the real world of shopkeepers, I'm none the wiser.

Do you see the flaw in our logic here? If we noticed a degradation in coin quality the testing is good. If the testing does not find an issue, it still must be good, because previously those checks found a different issue. Because I was only performing one test or one set of tests I was blind to issues that I can't see with that one test.

If we'd been testing the coins independently, we probably would of been more critical. We might of thought: sure it looks good in the arm length test, what about the weight: maybe thats wrong. We'd try a number of different tests trying to find an issue. We'd ask other people about coins, learn about their two sided nature and perform tests for it.

But as soon as we enter 'regression testing' mode, we often start to disregard this behaviour and start to mindlessly run the same tests. We avoid exploration, sometimes without noticing. Sometimes people actively avoid exploration during regression testing thinking it's inappropriate. This approach would assume that the test you have been running is some kind of super-observer, capable of helping you to see all problems.

If the system has changed significantly, with the addition or removal of complex behaviours, surely the tests might not also need to adapt? The assumption that the same test will somehow catch a change in functionality, reliability etc is based on the premise that our super-test was testing everything -before- and still is. As testers we know it didn't, doesn't and never will be that super-test. We need to adapt to each new release in an attempt to find new issues. If our tests aren't finding an issue, it's just as possible that the tests are ineffective as it is that the system isn't defective.

Comments

  1. This comment has been removed by the author.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete

Post a Comment

Popular posts from this blog

Why you might need testers

I remember teaching my son to ride his bike. No, Strike that, Helping him to learn to ride his bike. It’s that way round – if we are honest – he was changing his brain so it could adapt to the mechanism and behaviour of the bike. I was just holding the bike, pushing and showering him with praise and tips.
If he fell, I didn’t and couldn’t change the way he was riding the bike. I suggested things, rubbed his sore knee and pointed out that he had just cycled more in that last attempt – than he had ever managed before - Son this is working, you’re getting it.
I had help of course, Gravity being one. When he lost balance, it hurt. Not a lot, but enough for his brain to get the feedback it needed to rewire a few neurons. If the mistakes were subtler, advice might help – try going faster – that will make the bike less wobbly. The excitement of going faster and better helped rewire a few more neurons.
When we have this sort of immediate feedback we learn quicker, we improve our game. When the f…

Thank you for finding the bug I missed.

Thank you to the colleague/customer/product owner, who found the bug I missed. That oversight, was (at least in part) my mistake. I've been thinking about what happened and what that means to me and my team.

I'm happy you told me about the issue you found, because you...

1) Opened my eyes to a situation I'd never have thought to investigate.

2) Gave me another item for my checklist of things to check in future.

3) Made me remember, that we are never done testing.

4) Are never sure if the application 'works' well enough.

5) Reminded me to explore more and build less.

6) To request that we may wish to assign more time to finding these issues.

7) Let me experience the hindsight bias, so that the edge-case now seems obvious!

Google Maps Queue Jumps.

Google Maps directs me to and from my client sites. I've saved the location of the client's car parks, when I start the app in the morning - it knows where I want to go. When I start it at the end of the day, Google knows where I want to go.
This is great! It guides me around traffic jams, adjusts when I miss a turn and even offers faster routes en-route as they become available.
But sometimes Google Maps does something wrong. I don't mean incorrect, like how it sometimes gets a street name wrong (typically in a rural area). I don't mean how its GPS fix might put me in a neighbouring street (10m to my left - when there are trees overhead).
I mean wrong - As in something unfair and socially unacceptable. An action, that if a person did it, would be frowned upon.
Example:
Let’s assume a road has a traffic jam, so instead of the cars doing around 60 mph, we are crawling at <10 mph.
In the middle of this traffic jam, the road has a junction, an example is shown here: