Friday, May 3, 2013
And then I noticed that of the seven images I could see on the blog's front page three (1, 2, 3) were record sleeves.
I was distracted by this, my train of thought moving away from the content and onto the relevance of my observation and speculation about the author's interests: is it significant that there are so many record sleeves here? Will I have a look at the archives to see what images were used there? Is this chap a record collector? Are these records personal favourites? Why is he using images on every post, anyway? What value do they add? What was this blog about, again?
And then I remembered that it was my blog and that I had started off scanning for typos.
The signal I was giving out, from an aggregation of discrete decisions taken over time, was not one that I had intended but was one that revealed (or at least gave an observer cause to suspect it revealed) something about me and my interests, priorities, decision-making.
In software development we're constantly making discrete decisions - should we aim to put that feature in in this cycle? Can we get away without that widget? Will we have time to fix that bug and test it? Could we risk changing the format of this file given the benefits it would enable? Is it time to refresh the interface? These will generally be taken with good intent for the issue at hand but they can still add up into something unintended that users notice, that takes them away from the task they're trying to perform, that they will use to form an opinion about us and the way we operate. Be sure to step back and look for the patterns from time to time.
And then I wrote a new post. With an image that can't be misinterpreted. Probably.
Sunday, April 28, 2013
I'm not talking about deliberately entering junk content into applications, configurations, data and the like. I'm not talking about random clicking in a system under test or trying to engineer corner cases by artificially restricting disk space or RAM or some other resource or any other of those legitimate test vectors that benefit from experimenting with the available parameters.
I'm talking about sympathetic testing - or even just plain usage - in an untidy way to try to increase my test coverage in passing. Here's some examples:
- If your application is in the cloud, maybe don't log out of it when you've finished your current task. Look for odd effects next time, perhaps after you've moved between networks or not accessed the system for a few days.
- If you start an application daemon or service at the console, don't close it immediately, but leave the console open while the system runs. Check in on it now and again as you move between tasks and look for exceptions, unexpected errors and so on.
- If you have an instance of your application open already and want to try something, sometimes don't use the open instance but open another and watch for effects due to cross-contamination.
- At the end of a session, don't close down cleanly. Instead, leave the application in the middle of an interaction - with a dialog open, say - and see what happens when you come back to it.
- If you're testing a web-based application don't always use the same bookmark to get there. Use your browser history, or type into the URL bar and get some old URL from your history or paste a URL from an old email to find a new starting point and see what the server does with it.
People talk about setup, test, teardown sequences and in some cases that's exactly what's required. You may need to understand your starting context as precisely as possible so that when running a sequence of test ideas you can return to that context each time. But your users won't be running inside a sterile laboratory, so make sure you don't always do that either.
Thursday, April 18, 2013
last issue of The Testing Planet on leadership I seem to have come across more blogs than usual talking about how to be a great leader, manager, boss or whatever, for instance:
- Evaluate Character AND Performance
- 9 Leadership Tips Anyone Can Use Immediately
- 10 Things Really Amazing Bosses Do
- This is why you need to learn how to talk to developers
- clear: I will do my best to be absolutely clear about what I think, what my response to any request is, what my motivation for any particular approach is, what I will commit to do (or not do) about some problem and so on. I will encourage and answer any question on any work-related topic to the fullest extent that I can given obvious constraints such as confidentiality.
- present: I will do my best to be approachable, available and responsive. If I can't be responsive I'll try to explain why and give a commitment to respond at some later time.
Tuesday, April 9, 2013
When a feature description is still relatively broad, unexplored and underdeveloped it will naturally be understood in a variety of ways by different people. Equally naturally, the ways in which it is understood and the depth of the understanding will correspond largely to the particular interests of those people. The sharp end of those interests tend to be in issues that the idea can resolve and the feature can often look like Lilly the Pink with respect to them. High-level apparent solutions to high-value problems inflate the attraction of the feature.
As the feature moves into implementation a host of reality factors begin to apply and the space of possibilities must naturally collapse into a particular configuration. This, for an implementation of any complexity, inevitably means that some irritations will not be soothed by the solution. Errors in the implementation, lateness in delivery, downstream consequences and other emerging character traits will give even the most ardent admirers cause to review the level of their affection.
Ultimately the feature makes it into production and with luck retains the kernel of what was appealing back when it was a cloud of wispy fluff that looked like it could turn defects into dollars. This phase, often, is when the true personality of the feature is revealed. Some people will find that they can be friends with it after all, some will move on to the next good-looking thing and some will be lucky and have found true happiness.
And the testers? They should enjoy a strictly platonic relationship with these things, do their best to understand them for what they are at every stage, be a sounding board for hopes, a go-between for messages of endearment and a shoulder for their for their colleagues to cry on. (All the while taking notes for the next time the cycle kicks off.)
Monday, April 1, 2013
@testertested: I help testers re-think what they mean by automation. I help them see usage of any tool as automationMichael:
@qahiccupps: any tool? A pen and paper is a testing tool..
@testertested: Yes, it does help you make notes, that you refer to for re-exploring the app. Do you see it that way?
@qahiccupps: Yes, a tool but not automation which, for me, requires action w/o my participation. Another: I can use Excel manually (enter formula into every cell) or automated (macros). Tool != automation.
@testertested: So, what about annotation pens and stuff ?
@qahiccupps: Used directly it's manual. Without me (directly) controlling, automation. Not sure if we're missing each other's point?
@michaelbolton: Test automation is any use of tools to support testing.Michael has talked about this before in, for example, on a blog on automation in ET:
@qahiccupps: pen and paper are tools that I use in testing. Can we regard their use as automation? If so, how?
@michaelbolton: Good question. In general, we refer to electronic machinery, of course. However, consider this aspect of all tools: "We shape (and choose) our tools; thereafter they shape (or choose) us." McLuhan (with my parentheticals)
@qahiccupps: Agree w/that. But I'd hesitate to call anything that doesn't perform actions independently automation. tool !=automation. I can fill every cell in an Excel sheet by typing into them by hand, or I can write a macro.
@michaelbolton: Using Excel itself, however, is a fabulous example of test automation in the sense of any use of tools to support testing.
@qahiccupps: If I only write notes into Excel it's just like pen and paper. The use I make of the tool is key to whether it's automation
Some people might have a problem with the idea [that exploratory testing can include automation], because of a parsimonious view of what test automation is, or does. To some, test automation is getting the machine to perform the test. I call that checking. I prefer to think of test automation in terms of what we say in the Rapid Software Testing course: test automation is any use of tools to support testing.The copula verb, for all its slightness, makes strong assertions. In this case: if you use any tool while testing you have performed test automation. But what does the term mean? The Oxford University Press dictionary says this:
- Tool: a thing used to help perform a job
- Automatic: working by itself with little or no direct human control
- Automation: the use or introduction of automatic equipment in a manufacturing or other process
[One colleague] got curious about something that he saw [in a program's behaviour]. Curiosity can't be automated. He decided to generate some test values to refine what he had discovered in earlier exploration. Sapient decisions can't be automated. He used Excel, which is a powerful test automation tool, when you use it to support testing. He invented a couple of formulas. Invention can't be automated. The formulas allowed Excel to generate a great big table. The actual generation of the data can be automated.I don't disagree with any of the assessment and I strongly agree that automation can be used to drive analysis and discovery, amongst other things. I disagree with the claim that (all) tool use is automation.
Tools need not exist at all in the tangible world. Shorthand is a tool, for example. Its utility relies on it being realised in some form by some other tool, say a stenotype or a nail dipped in blood. Although we might argue about whether these secondary tools are or can be automated, can the use of an ephemeral tool like shorthand itself be regarded as automation when the tool itself only exists inside the user's head?
Perhaps that's too obscure. Let's look at something more traditionally called a tool. I'm in the garden and I want to dig a hole. I have a spade but that tool isn't going to dig the hole by itself. It's unlikely that anyone would regard me digging the hole with the spade as garden automation. There's certainly a tool and there's certainly an efficiency to using it over my bare hands, but digging the hole is still manual labour.
In the Twitter thread above Michael said he was thinking of electronic machinery, presumably more generally as something that at least has the potential to operate independently. So let's think about a more sophisticated tool, one where the user does not directly manipulate every operation, but instead controls them by some higher level process. How about a car? It takes around two hours to drive my car to my mum's house. In that time many things happen without my explicit direction - the engine runs through its cycle thousands of times; shock absorbers compress and stretch to smooth out the ride; computers monitor various metrics such as oil level and temperature and report them to my dashboard. And some things happen with my direction but without my knowing exactly what physical actions are performed - I turn the wheel and I think there's probably some kind of rack-and-pinion technology implementing my request, but I don't know the details.
Is driving the car travel automation? Not for me, not by the definitions above. Although much in a car happens independently - to some level of granularity - I cannot leave the car unattended and expect it to get me to my mum's house. Ah yes, but Google notoriously has a driverless car, you say. Yes, and there are functionalities that I would regard as automation in some of today's vehicles too: assisted parallel parking, for example. But even though Google's car can function in an automated fashion, if I got into it and drove it myself that would not be automation.
Tools, used appropriately, are capable of delivering advantages in areas such as reporting, visibility, scalability, scope, quality and quantity of data, communications, coverage, checking and numerous other things that are valuable to a tester. Automation requires tools. Some tools can provide automation. Not every use of such a tool is automation.
Michael was kind enough to read a draft of this post and commented:
We sometimes make provocative statements to get people to question their beliefs. "Any use of tools to support testing" is an encouragement to think expansively. (McLuhan again, on his students: "I don't want them to agree with me. I just want them to think.")
People who respond to this provocative statement typically apply emphasis to the "tool" part. What I'm more interested in is the "any use" part. The intention here is to stop thinking of the role of tools exclusively in terms of automated checks, and start thinking of test automation as "any use of (automated) tools to support testing". In fact, James Bach and I are trying to avoid "automated testing" altogether, and say what we mean: machine checking, and tool-supported testing.For me, the strength of test automation is any use of tools to support testing, memorable and provocative as it is, is reduced by distractions around tools and their capacity for automation. I prefer this alternative: test automation is not automated testing.
Friday, March 22, 2013
Occasionally we want to make the bug stand out from the background, keep an issue at the forefront of everbody's mind, emphasise the strength of feeling we have about some problem or just make a developer smile. One way to do this is to inject a bit of humour into the title and these are a few of my favourites from our bug tracker:
- We use "we" for "us": product documentation is inconsistent in how it refers to the company
- Do you know who I am?: a login dialog both refers to a user by name and doesn't recognise them
- Hash clash in file-based cache: collisions in a hashing algorithm
- Caret does not stick: the cursor in a text box disappears
- Decomplexicate the complicated message's message complicator: a routine for aggregating error messages combines unhelpful terminology in a hard-to-comprehend way
- "Re" is repressed on responses: initial "Re" is removed from message subject, even if part of a word
- Testopia cookie explosion: a tool generates enormous cookies which result in denied service
What are yours?
Saturday, March 16, 2013
think of uses for a house brick.
In our line of work, this can manifest in places such as spec reviews, in implementation, in test coverage, in fact pretty much anywhere you may want to generate a set of ideas for a topic or area you already have some familiarity with.
That last phrase is important. In a recent episode of Horizon, Simone Ritter described how it's possible to boost creativity by putting the thinker into a scenario that violates usual practice or thought process. In her experiments, something as trivial as making a sandwich in a slightly unconventional way was enough to provide an increase in capacity for thinking about other known concepts differently, although it wasn't clear for how long this effect lasts.
Researchers from the META Lab found that switching from a problem in which you're blocked to something else can also provide a way to improve your divergent thinking, although what you switch to is important for the strength of the effect. In their experiment, something with even a smallish cognitive load was the least productive alternative, trying to think about nothing at all was next best and performing a simple task generated the largest gain, by letting your mind wander.
What does this have to say to software testers? How about this: whenever possible, particularly when it doesn't conflict with the mission, choose to put yourself in the position of taking an unfamiliar route to whatever you're looking at. Not only does this increase your knowledge of the system under test and expose you to areas in which you may find new issues but it increases your chances of thinking of something new or innovative to try when you get there.
When you inevitably do get stuck, don't be afraid to back off to something you can do by rote for a while to give you mind the chance to wander. Perhaps you're doing exploratory testing and have run out of ideas. You could run through some existing scripted test cases, or follow steps in a demo that your salespeople use, or work through a tutorial to give your mind a chance to take a fresh perspective when you return.