User Stories - Testing Early

By Ray Claridge
Pin It

We all know agile encourages early testing. So If this is the case, I see the tester best placed to write User Stories. Let me explain...

Whilst practising waterfall development at a previous place of work , I was asked if I'd like to help capture some requirements and write some functional specifications. At first, I was horrified at the prospect of this task, but as a person who never backs down from a challenge, I reluctantly agreed.

The whole experience was truly an eye opener, and I realised that testers can actually make good alternatives to the traditional BA (Business Analyst).

Rather than a BA writing the spec only for the tester to rip it to pieces and going through numerous reviews and amendeds, it was found that us testers have a knack of spotting if things are not going to work. And with our 'what if?' mentality, we can iron out these issues as we're capturing the details saving the need of a lengthy requirement process, development time and costs. I think of it as cutting out the middle man. Now I'm not saying my spec was perfect, but it was good enough to palm out to a remote team to develop. This also made test planning easier as I had written the spec in a similar style like test cases.

Now in Agile we don't have big functional specs, instead we have user stories that are like these but only smaller (bite size). Traditionally these are written very close to the start of a sprint with just in enough detail to start developing. However, sometimes enough is not enough and too much time is spent clarifying details during development. Now If a tester were to write these user stories upfront as acceptance tests bearing in mind the 'what if?' scenarios, I believe you can get the balance right between 'enough' and 'too much' detail prior to development. Clearly this is what testing early is all about!

6 comments »

  • Anonymous said:  

    Nice article Ray. Absolutely spot on. I did a stint a while back as the spec writer and it proved very successful.

    It's important for us to push that testers be involved in the story writing session as all of those tricky questions a good tester will raise can be ironed out whilst planning - not after development or design.

    Nice One.

    Rob..

  • Anonymous said:  

    where does the Test Plan sit within Agile? How do you go about writing one or do you?

    Most of the articles I have read do not mention documentation. Is this not important within Agile?

  • Ray Claridge said:  

    It's difficult to write a test plan as traditionally you wouldn't know what's coming up. However, I do still write plans for test approach, automation & UAT.

  • Anonymous said:  

    Ray,

    Both business analysis and test anlysis require a person to have a logical and analytical mind. In agile, the boundary between BA & TA thins down, hence one culd potentially replace other. What matters at the end of the day is quality of specs written and tested - no matter what methodology gets followed.

    ssh

  • Anonymous said:  

    Nice post and nice blog Ray. Got the link to your blog just today. You seem to have my kind of values on testing in agile, only by reading 3 posts I really like it. Will get back on commenting your posts in my own blog, which is sort of in startup mode still.

    /Sigge