Upload
rhoda-miles
View
215
Download
0
Embed Size (px)
Citation preview
A HITCHHIKER’S GUIDE TO THESOFTWARE TESTING GALAXY
Graham ThomasIndependent Software
Testing Consultant
Next Generation Testing Conference5th November 2009
Kensington Close HotelLondon
1
2
ABSTRACTAs Douglas Adams wrote in his book The Hitch-Hikers Guide to the Galaxy,
“Space is big. Really big. You just won’t believe how mind-bogglingly big it is.”
Well, the galaxy of software testing isn’t quite that big, but it is large, getting larger, and can be very confusing to begin with. So how do we navigate safely through the software testing galaxy and keep up with its expansion?
This presentation will;
Learn some of the lessons from the Hitchhikers Guide
Take a look at the Software Testing Galaxy, in the style of the Hitch Hikers Guide
Propose a real life Hitchhikers Guide to Software Testing
3
THE HISTORY
The book was written from the original radio series in the late 1970’s, became a television series, and recently a Hollywood “blockbuster” movie (which we won’t discuss).
The plot was interspersed, in a funny way, with Douglas Adams’s experiences of Computing and Management Methodology of the time.
He was quite visionary, in that the Guide was a brilliant prediction of how useful internet search engines and mobile computing would become, and with the new range of lightweight and powerful mobile devices, combined with Google and Wikipedia we are fast approaching his vision. These insights have never been more relevant, current, and useful than in today’s fast changing world.
4
THE CHARACTERS & STORY
The GuideThe Guide serves as the narrator to the series and expands on some of the finer aspects of Galactic society, culture and history
Arthur DentArthur is a six foot tall, carbon-based, bipedal life form descended from an ape.
Ford PrefectFord is not descended from an ape. He is in fact from a small planet somewhere in the vicinity of Betelgeuse
Zaphod BeebleBroxPresident of the Known Galaxy. Has two heads and three arms. Suave, smooth talking, but completely narcissistic and self-obsessed
MarvinMarvin is a 'personality prototype' from the Sirius Cybernetic Corporation's new line of robots and regards life, the universe and everyone in it with utter contempt.
TrillianTrillian has a degree in mathematics and a doctorate in astrophysics, so when she met Zaphod at a party in Islington, she jumped at the chance to see the galaxy
5
AGENDA
The Guide in use
People & Skills
Method & Process
Some Quotes
A Look Through the
Eyes of the Guide
A Few Thoughts
Summary
Thanks
6
THE GUIDE IN USE
The Guide serves as the narrator to the series and expands on some of the finer aspects of Galactic society, culture and history. Many of the most memorable sequences in the series are entries from the Guide.
By its own admission The Guide contains much information that is apocryphal, or at least wildly inaccurate, but what it does have is a cheap price, the words DON'T PANIC in large friendly letters on the front and a voice that speaks its entries in a calm and level tone.
7
8
9
PEOPLE AND SKILLS
Across the five books Douglas
Adams has made many
references to people, their
behaviour, their skills and
their aptitude
We will take a look some of the
key highlights and draw
analogies to software testing
And why can’t a Trilogy be in Five
Parts?
10
A Trilogy in Five Parts
DON’T PANIC
Lets take a look at why the Hitchhikers Guide has the words DON'T PANIC written in friendly letters on the front cover.
Remember Arthur has just had his house demolished, his planet demolished, been beamed aboard an alien spaceship, encountered an alien species, and realised his friend of 10 years is also an alien.
He is to put it mildly, having a bad day, and needs all the help he can get.
And then he is handed the Hitchhiker’s Guide to the Galaxy
11
12
The first thing that happens when sci-fi writers head out into space is they have to work out how to solve the language barrier
Hitchhikers Guide does this with the Babel Fish
How important is it in software testing to be able to speak the same language as; the business, the developers, the project managers, other testers, etc. etc.
The Guide also has some cautionary words to say about what happens when you can communicate with everybody!
BABEL FISH
13
14
MARVINTHE PARANOID
ANDROIDMarvin is an Android from the Sirius Cybernetics Corporation.
“Your Plastic Pal whose fun to be with”
He has a brain the size of a planet, and a Genuine People
Personality!
Some quotes from Marvin;
“Life! Don't talk to me about life.”
“It's funny how just when you think life just can't possibly get any worse it suddenly does.”
“Life, loathe it or ignore it, you can't like it.”
Have you ever met someone like Marvin?
Have you ever thought that the rest of the project might view
the Testing Team like Marvin???
15
16
17
METHOD & PROCESS It is said: “The History of every major Galactic Civilization tends to
pass through three distinct and recognizable phases, those of Survival, Inquiry and Sophistication, otherwise known as the
How, Why and Where phases” For instance,
the first phase is characterized by the question How do we eat?the second by the question Why do we eat?and the third by the question Where shall we eat?
I think this is brilliant for software testers when we are detecting aberrant behaviour:Survival When we spot unusual behaviour - How is it doing that?Inquiry When we diagnose behaviour - Why is it doing that?Sophistication When we want to fix the error - Where is it doing that?
18
SITUATIONAL AWARENESS
The books consistently use Zaphod Beeblebrox, President of the Known Galaxy, to demonstrate; management ineffectiveness, inability to lead, slavish devotion to technology, cowardice, etc. etc.
Joo Janta 200 Super-Chromatic Peril Sensitive Sunglasses
19
20
21
22
SOME DOUGLAS ADAMS QUOTATIONS
We are stuck with technology when what we really want is just stuff that works.”
“[The World Wide Web] is the only thing I know of whose shortened form — www — takes three times longer to say than what it's short for.”
“I love deadlines. I like the whooshing sound they make as they fly by.” (This quote was used by Scott Adams in a Dilbert comic strip)
“I refuse to answer that question on the grounds that I don't know the answer.”
“Technology is a word that describes something that doesn't work yet.”
“Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.”
23
24
THROUGH THE EYES OF THE GUIDE
So lets take a look at the world of Software Testing through the eyes of The Hitch Hikers Guide
For this example I am going to look at Risk Based Testing
I am going to try and use the same approach as The Guide but there are some exceptionso I don’t have the voice of Peter Jones
o I don’t have the graphical skills of the H2G2 animators
o I don’t know what apocryphal means!
25
Softw
are
Softw
are
Test
ing
Test
ing
PRIORITISATION BY RISKIt is quite common that as test execution nears
the end of the testing window, it becomes apparent that not all of the testing will be completed in time, so the outstanding workload (Requirements) is assessed by Risk
The outstanding workload is then tackled in highest priority Risk order first, leading to a Prioritisation by Risk
Because we we run out of time we don’t cover (or test) all of the requirements
Some lower risk requirements have already been tested, whilst some higher risk ones are not tested
This is not Risk Based Testing26
RequirementsCatalogue
# Requirement
1
2
3
4
5
6
n
XXxxxx Xxxx XXx
XXxxxx Xxxx XXx
XXxxxx Xxxx XXx
XXxxxx Xxxx XXx
XXxxxx Xxxx XXx
XXxxxx Xxxx XXx
XXxxxx Xxxx XXx
Risk
H
L
H
M
L
L
M
Don’tPanic
RISK BASED TESTING
The business, operational and functional risks to the delivered solution are assessed and weighted by Impact and Likelihood
The areas which carry the highest risk are tested first
Low risk areas may not be targeted by testing
Some risks may be mitigated by means other than testing
This is Risk Based Testing
27
Risk Profile
Likelihood
Impact
H
M
L
L M H
174
33293
141314
Risk Mitigation View
Date
Web Architecture
Functionality
Security
Performance
Legacy Integration
New Business
Don’tPanic
TAKING RISKS WITH TESTING !
28
Testing RISK Dial
LOWWhere we would ideally like all
of our testing to be
MediumWhen we begin to take some
risks
HighWhere a lot of testing
generally takes place
ExtremeWhere we sometimes end up
MachoThe kind of testing that we
should at all costs avoid!
0
Don’tPanic
29
THE BIGGER QUESTION
So in preparing this presentation it was inevitable that I was going to ask the bigger question
“Why don’t we have a Hitch Hikers Guide to the Software Testing Galaxy?”
And to answer that you also have to answer these questions as well:o So what could it actually look like?o Who would use it?o What would it take to put together?o How would it be maintained?o What value would it really add?o Would it be worth the effort?
30
31
JUST IMAGINE IF . . .
32
test case
test casecoverage
test condition
test casedesigntechnique
test specification
test basis test plan
test result
test dataDEFINITION
EXAMPLEwww.findonehere.com
USAGE
VARIANTS
OPINION
. . . . .
. . . . .
. . . . .
A set of inputs, execution preconditions, and expected outcomes developed for a particular objective, such as to exercise a particular program path or to verify compliance with a specific requirement. After [IEEE,dob]
If we take the 3D Mind Map and bring that together through the eyes of The Guide
Don’tPanic
LETS TRY THE QUESTIONS
So what could it actually look like?o A domain based, 3d Mind-Map visualization, with click through linkso Including HHG like detail, description & definitions plus colour
Who would use it?o Everyone, the Testing community, Developers, Project Managers,
Sponsors, Stakeholders, Customers, Suppliers, and all.
What would it take to put together?o It could start small, but build big
How would it be maintained?o By the (Testing) community – implies ownershipo Anyone who wants to, without agenda, not for profit o But would want to avoid the wiki scenario of endless edits
What value would it really add?o Massive, if it could provide access to information, descriptions,
definitions, relationships, variants, opinions, colour and flavour
Would it be worth the effort?o Can we afford not to do it? Why doesn’t the whole of IT do this?
33
SO WHAT NEXT? Discuss the possibilities further and wider in the testing community –
Presentations like this one Influence others into thinking along the same lines
o Networking, discussions, bog posts etc.
Workshop some Testing Guide entries at the Nov. Testing Retreat Think about community based development
o to avoid the endless edits scenarioo How ownership works
Get a view form solution providers like; Google, Microsoft and others
Capture my passiono I have decided in future to only do voluntary testing community work if the output
is freely available to all
34
35
SUMMARY
36
Learnt some relevant lessons from the Hitchhikers Guide
Taken a look at Software Testing through the eyes, and voice, of the
Hitchhikers Guide
Received some wisdom from Douglas Adams
Asked the question “Why?”
“Why don’t we have a Hitchhikers Guide to Software Testing?”
Proposed an exciting solution to providing information for testing that
you may wish to get involved in
Hope I have left you with an appetite for more Hitchhikers Guide
Had some fun
37
MY THANKS GOTO
Douglas Adams 11 March 1952 – 11 May 2001
The cast of The Hitchhikers Guide to the Galaxy HTC Magic, Google & Wikipedia NASA Image of the Day European Southern Observatory (Trifid Nebula) Wikiquote www.testingstandards.co.uk Paul Gerrard, Isabel Evans & Geoff Thompson for
bouncing the ideas around
Bill Gates, Microsoft and countless Project Managers, Analysts and Developers who make Software Testing such fun
38
Paul Isabel Geoff
CONTACT DETAILS
Graham Thomas
Independent SoftwareTesting Consultant
[email protected] +44 7973 387 853 www.badgerscroft.com
39