Regression Testing: Down the Rabbit Hole Neil Studd, Towers Watson - - PowerPoint PPT Presentation

regression testing down the rabbit hole
SMART_READER_LITE
LIVE PREVIEW

Regression Testing: Down the Rabbit Hole Neil Studd, Towers Watson - - PowerPoint PPT Presentation

Regression Testing: Down the Rabbit Hole Neil Studd, Towers Watson About Me 10 years of testing Cambridge-based Work for companies with red logos Only the names have changed Chasing the Holy Grail We ll hear lots today


slide-1
SLIDE 1

Regression Testing: Down the Rabbit Hole

Neil Studd, Towers Watson

slide-2
SLIDE 2

About Me

  • 10 years of testing
  • Cambridge-based
  • Work for companies

with red logos

slide-3
SLIDE 3

Only the names have changed…

slide-4
SLIDE 4

Chasing the Holy Grail

  • We’ll hear lots today

about how regression testing should be done

– …in an ideal world – …easiest for new projects – …or when starting afresh – …when there’s wider business buy-in, e.g. continuous delivery

  • The “holy grail” of

regression testing…

slide-5
SLIDE 5

I took the red pill

  • Desktop software
  • Infrequent releases
  • Client-driven features
  • Client-driven deadlines
  • (Time v features v quality:

Quality often loses)

  • Manual regression cycle
  • At the end of the release
slide-6
SLIDE 6

Our sacred texts

  • Tests are treated as a

product bible

  • Handed down through

generations

  • Revered and followed

without question

  • Very much “of their

time”; not modified to reflect new evidence

slide-7
SLIDE 7

Oh, the things I’ve seen…

  • Tests not testing what

they claimed to test

  • Expected result =

“a sensible error”

  • …but that was

actually a bug!

  • Not enough detail
  • Too much detail
slide-8
SLIDE 8

All the information, all at once

slide-9
SLIDE 9

Why was it done this way?

slide-10
SLIDE 10

We need to go deeper

  • Five whys:

– Not peer-reviewing – Short of time/resources – Fixed project deadline – Unrealistic promise to customer – Salespeople too far removed

  • Dev/test separation,

driven by disrespect (dev) and fear (test)

  • “Testing is a tester’s

problem”

slide-11
SLIDE 11

We fell for the dark side

  • Don’t allow your tools to

start working against you!

  • TFS: Supports multiple

references to one test

  • TFS: Supports “shared

steps” in tests = quickly multiplies setup/teardown

  • Just because you can

easily record a regression test, doesn’t mean you should

slide-12
SLIDE 12

What I didn’t do

  • Not burning books…
  • …written in good faith
  • …useful metadata
  • …cross-referencing
  • …gives information

about previous perceived severities

slide-13
SLIDE 13

How I’m surviving

  • Rewriting/reducing
  • Piecemeal
  • Session-based
  • To answer “Is there a

problem here?”

  • …Which involves

looking at the product

slide-14
SLIDE 14

How I’m trying to change things

  • Training devs to test
  • Pairing/reviewing

developer unit testing

  • Automating black &

white checks

  • (…but not to replace

human interaction)

  • More code reviews
  • …which feed testing
slide-15
SLIDE 15

There’s still room to improve

  • More automation
  • Run more easily/often
  • Increased testability
  • Address the causes
  • f regressions, rather

than fixing the fallout

  • Focus on providing

value and information

slide-16
SLIDE 16

Any questions?

  • More thought to come

(yes Simon I’ll write that article for The Testing Planet)

  • Blog: neilstudd.com
  • Twitter: @neilstudd