Skip to main content

The Like-Live Paradox

I was recently struck by a glaring difference between how I and a programmer prepared for testing. Unlike the majority of the testing I am involved in, this particular testing 'phase' had to be scheduled in advance and we couldn't "just do it". This also meant we had more time to prepare and plan than we typically do.

This 'waiting period' had its uses. We had time to create tools that might be useful and check the configuration of the systems we would be testing. The team, familiar with the concepts of exploratory testing, were comfortable with an approach that meant we did not spend the majority of the time pre-scripting tests [be they coded or in a spreadsheet etc]. We did however build a high-level checklist of areas to test and used this to drive our program of tools and configuration checking/fixing/building.

The key difference I observed was the absolute nature of the programmers comparisons between our test systems and our live-production systems. As a tester, I was used to the usual concerns of how test systems differ to production systems. Testers, me included, often go through great pains to obtain and maintain 'like-live' test systems.

The absolute nature of their concerns, seemed to swing from faith to despair. If a particular configuration did not appear like 'live' then few conclusions might be drawn from any future results. And conversely, If some other setup did match the 'live' system, then great confidence could be ascribed to a particular result.

While they may indeed be correct (we won't know until the changes are live and have been exercised there). It was the absolute nature of their views that surprised me. As a tester I tend to be more circumspect. I don't expect my tests to be exactly representative of future live failure scenarios. I realised I see the problem more grey-scale rather than black & white. While I strive to create test systems that are like-live, I am often happy with just knowing the differences.

I also realised that I had often deliberately tried to make my systems less like-live. I often contrived to create un-realistic situations that could have illuminated behaviour that I might not otherwise of seen. After all, I am trying to disprove an assumption or hypothesis. Such an assumption would probably have been based on previously-observed behaviour. Unless I can create previously un-observed behaviour, I am unlikely to see problems with the assumption.

To cause the system to exhibit some strange new behaviour, I frequently need what is often referred to as 'unrealistic' inputs.But while these inputs may seem unrealistic to us at the development/test-time, it could be we have just not been around long enough to see the issue arise. Much like the Turkey in Nassim Taleb's "The Black Swan", realistic is being fed well every day. Until the turkey finds-out that it is "Thanks Giving" and its outlook is somewhat bleaker .

We might wish that we create perfect tests or "experiments", and only vary one item at a time, the reality is a little more human. Our tests and apparatus are always flawed. A bug may only be visible because of un-intended human error or a 'difference' from how things were meant to be. In fact this is quite likely the case, as homogenous cleanly built test systems will have been 'used' in a particular manner many times before our tests. Any glaring bugs in the 'happy path' are likely to of been discovered already.

For example, once while testing a network connection time-out, we uncovered a serious issue - by mistakenly trying to configure the system to talk to the wrong server. The new time-out configuration had worked fine when the remote server had been 'down'. But when the remote server didn't exist at all, and the system could not even locate a path to it on the network, the time-out was ignored. Unless we had mistakenly misconfigured the software, we may never have found this issue. This tester led process by which we realised that our solution was too narrowly focused, helped the team to expand their solution to fit many wider failure scenarios.

I've developed a learned-trust of the differences, knowing both the benefits and perils of un-live-like systems. This sort of depth of experience with uncertainty is another area where testers can improve a teams ability to handle the practical problems of software development. We can add depth and qualification to the information testing delivers, helping our businesses weigh the relative merit of the data. Further to this we can suggest how we might improve the accuracy of the information we deliver, without resorting to absolutes.

Comments

Popular posts from this blog

What possible use could Gen AI be to me? (Part 1)

There’s a great scene in the Simpsons where the Monorail salesman comes to town and everyone (except Lisa of course) is quickly entranced by Monorail fever… He has an answer for every question and guess what? The Monorail will solve all the problems… somehow. The hype around Generative AI can seem a bit like that, and like Monorail-guy the sales-guy’s assure you Gen AI will solve all your problems - but can be pretty vague on the “how” part of the answer. So I’m going to provide a few short guides into how Generative (& other forms of AI) Artificial Intelligence can help you and your team. I’ll pitch the technical level differently for each one, and we’ll start with something fairly not technical: Custom Chatbots. ChatBots these days have evolved from the crude web sales tools of ten years ago, designed to hoover up leads for the sales team. They can now provide informative answers to questions based on documents or websites. If we take the most famous: Chat GPT 4. If we ignore the

Can Gen-AI understand Payments?

When it comes to rolling out updates to large complex banking systems, things can get messy quickly. Of course, the holy grail is to have each subsystem work well independently and to do some form of Pact or contract testing – reducing the complex and painful integration work. But nonetheless – at some point you are going to need to see if the dog and the pony can do their show together – and its generally better to do that in a way that doesn’t make millions of pounds of transactions fail – in a highly public manner, in production.  (This post is based on my recent lightning talk at  PyData London ) For the last few years, I’ve worked in the world of high value, real time and cross border payments, And one of the sticking points in bank [software] integration is message generation. A lot of time is spent dreaming up and creating those messages, then maintaining what you have just built. The world of payments runs on messages, these days they are often XML messages – and they can be pa

Is your ChatBot actually using your data?

 In 316 AD Emperor Constantine issued a new coin,  there's nothing too unique about that in itself. But this coin is significant due to its pagan/roman religious symbols. Why is this odd? Constantine had converted himself, and probably with little consultation -  his empire to Christianity, years before. Yet the coin shows the emperor and the (pagan) sun god Sol.  Looks Legit! While this seems out of place, to us (1700 years later), it's not entirely surprising. Constantine and his people had followed different, older gods for centuries. The people would have been raised and taught the old pagan stories, and when presented with a new narrative it's not surprising they borrowed from and felt comfortable with both. I've seen much the same behaviour with Large Language Models (LLMs) like ChatGPT. You can provide them with fresh new data, from your own documents, but what's to stop it from listening to its old training instead?  You could spend a lot of time collating,