W2
Track 10/7/2009 11:30 AM
"What Would MacGyver Do?"
Presented by: Harry Robinson Microsoft
Brought to you by:
330 Corporate Way, Suite 300, Orange Park, FL 32073 888‐268‐8770 ∙ 904‐278‐0524 ∙ sqeinfo@sqe.com ∙ www.sqe.com
"What Would MacGyver Do?" Presented by: Harry Robinson - - PDF document
W2 Track 10/7/2009 11:30 AM "What Would MacGyver Do?" Presented by: Harry Robinson Microsoft Brought to you by: 330 Corporate Way, Suite 300, Orange Park, FL 32073 888 268 8770 904 278 0524 sqeinfo@sqe.com
Track 10/7/2009 11:30 AM
Presented by: Harry Robinson Microsoft
Brought to you by:
330 Corporate Way, Suite 300, Orange Park, FL 32073 888‐268‐8770 ∙ 904‐278‐0524 ∙ sqeinfo@sqe.com ∙ www.sqe.com
Harry Robinson is Principal Software Development Engineer in Test for Microsoft's Bing team. He has twenty years of software development and testing experience at AT&T Bell Labs, Hewlett-Packard, Microsoft, and Google as well as time spent in the startup trenches. While at Bell Labs, Harry created a model-based testing system that won the 1995 AT&T Award for Outstanding Achievement in the Area of Quality. At Microsoft, he pioneered the model-based test generation technology, which won the Microsoft Best Practice Award in 2001. Harry holds two patents for software test automation methods, maintains the site www.model-based- testing.org, and speaks and writes frequently on software testing and automation issues.
9/9/2009 1
Harry Robinson Microsoft Principal SDET, Bing
Harry Robinson Microsoft Principal SDET, Bing
9/9/2009 2
“The contraption wasn't very handsome, but it worked.” ‐ James Lovell, Apollo 13
bing!
9/9/2009 3
yipes!
Deals on underwater cameras Plan your next vacation today Obama education speech · <tacky phrase here> · Laura Bush · Tropica…
9/9/2009 4
Deals on underwater cameras Plan your next vacation today Obama education speech · Congressional hearing · Laura Bush · Trop…
“porn viedo” “porn video” “porn viedo”
9/9/2009 5
C d i
Desperation tends to make one sort of flexible – Angus MacGyver
9/9/2009 6
“The trap consists of a hollowed‐out coconut chained to a stake. The coconut has some rice inside which can be grabbed through a small hole. The hole is big enough so that the monkey's hand can go in, but too small for his fist with rice in it to come out. The k h i d i dd l t d Well, he should … see if things he thought were important really were important and, well, stop yanking and just stare at the coconut for a while. … what general advice would you give the poor monkey? monkey reaches in and is suddenly trapped ... Before long he should get a nibble from a little fact wondering if he is interested in it.” ‐Robert Pirsig Zen and the Art of Motorcycle Maintenance
Wh hi ' b k h i hi i h i When something's broken, the easiest thing is to throw it away, forget about it. But if you just step back and take a look at what you've got, you find a totally different way for it to work. ‐ Angus MacGyver
9/9/2009 7
Expertise Creative‐thinking skills Motivation Creativity
“Creative thinking … refers to how people approach problems and solutions – their capacity to put existing ideas together in new combinations.” ‐ Teresa Amabile Motivating creativity in organizations
9/9/2009 8
“… mental walls that block the problem‐solver from correctly perceiving a problem or conceiving its solution.” ‐ James L. Adams Conceptual Blockbusting
Perceptual
Emotional
Cultural Environmental
p g
Cultural
Environmental
9/9/2009 9
“Automated tests represent the automation of a manual process.” Harold F Tipton Micki Krause – Harold F. Tipton, Micki Krause “The most important benefit of automated testing over conventional manual testing is the minimization of costs over repeated tests.” – Markus Helfen, Michael Lauer “We have found that it is essential for tests to execute very quickly; our target is We have found that it is essential for tests to execute very quickly; our target is under 30 seconds for the typical test run.” – Shaun Smith, Gerard Mezaros
The less you know sometimes, the better. – Angus MacGyver
“I have never been convinced that finding ‘new’ bugs is a realistic expectation for test automation.” – I.M. Testy “After you have run your automated tests for the first time, you are done finding new bugs. Never again will you find a new issue. ” – Steve Rowe “Running automated test scripts can not be used to find new bugs in the software …” – Cordell Vail
9/9/2009 10
“Oracle: A mechanism to produce the predicted outcomes to compare with p p p the actual outcomes of the software under test.” – BS 7925‐1 “A test oracle is a mechanism for predicting the expected results.” ‐ Andreas Spillner; Tilo Linz; Hans Schaefer “In real testing the outcome is predicted and documented before the test is run.” i i – Boris Beizer
Why can t a test program be used for exploratory testing?
Never laugh at what you don't know. – Angus MacGyver
9/9/2009 11
Imagination is the most important thing the human mind has. – Angus MacGyver
9/9/2009 12
– Create explicit domain
– Validate upon data entry – Validate upon data entry
– Input from
– Check with
9/9/2009 13
– Input from
– Check with
– Input from
– Check with
If you don't have the right equipment for the job, you just have to make it yourself. – Angus MacGyver
9/9/2009 14
– Test approaches – Your product – Available tools – Creative problem‐solving
h l b
Always carry around a knapsack to pick up things you find along the way. – Angus MacGyver
Ed Smylie accepts the first Great Moments in Engineering award
that kept astronauts alive on the ill‐fated mission 35 years ago.
Any problem can be solved with a little ingenuity. – Angus MacGyver
9/9/2009 15 The most important tool for survival isn't duct tape or a Swiss Army Knife, it's your wits. Always keep them about you. – Angus MacGyver
10/7/2009 1
Harry Robinson Microsoft Principal SDET, Bing
Harry Robinson Microsoft Principal SDET, Bing
10/7/2009 2
“The contraption wasn't very handsome, but it worked.” ‐ James Lovell, Apollo 13
bing!
10/7/2009 3
yipes!
Deals on underwater cameras Plan your next vacation today Obama education speech · tacky phrase goes here · Laura Bush · Trop…
10/7/2009 4
Deals on underwater cameras Plan your next vacation today Obama education speech · Congressional hearing · Laura Bush · Trop…
“porn viedo” “porn video” “porn viedo”
10/7/2009 5
C d i
Desperation tends to make one sort of flexible – Angus MacGyver
10/7/2009 6
“The trap consists of a hollowed‐out coconut chained to a stake. The coconut has some rice inside which can be grabbed through a small hole. The hole is big enough so that the monkey's hand can go in, but too small for his fist with rice in it to come out. The k h i d i dd l t d monkey reaches in and is suddenly trapped ...
“The trap consists of a hollowed‐out coconut chained to a stake. The coconut has some rice inside which can be grabbed through a small hole. The hole is big enough so that the monkey's hand can go in, but too small for his fist with rice in it to come out. The k h i d i dd l t d … what general advice would you give the poor monkey? monkey reaches in and is suddenly trapped ...
10/7/2009 7
“The trap consists of a hollowed‐out coconut chained to a stake. The coconut has some rice inside which can be grabbed through a small hole. The hole is big enough so that the monkey's hand can go in, but too small for his fist with rice in it to come out. The k h i d i dd l t d Well, he should … see if things he thought were important really were important and, well, stop yanking and just stare at the coconut for a while. … what general advice would you give the poor monkey? monkey reaches in and is suddenly trapped ... Before long he should get a nibble from a little fact wondering if he is interested in it.” ‐Robert Pirsig Zen and the Art of Motorcycle Maintenance
Wh hi ' b k h i hi i h i When something's broken, the easiest thing is to throw it away, forget about it. But if you just step back and take a look at what you've got, you find a totally different way for it to work. ‐ Angus MacGyver
10/7/2009 8
Expertise Creative‐thinking skills Motivation Creativity
“Creative thinking … refers to how people approach problems and solutions – their capacity to put existing ideas together in new combinations.” ‐ Teresa Amabile Motivating creativity in organizations
10/7/2009 9
“Conceptual blocks are mental walls that block the problem‐solver from correctly perceiving a problem or conceiving its solution.” ‐ James L. Adams
Perceptual
Emotional
Conceptual Blockbusting
Cultural
Environmental
10/7/2009 10
A steel pipe is embedded in the concrete floor of a bare room… The inside diameter is 0.06” larger than the diameter of the ping‐pong ball (1.50”) that is resting at the bottom of the pipe. You are one of a group of six people in the room, along with the following objects:
from Conceptual Blockbusting by James L. Adams List as many ways as you can think of to get the ball out of the pipe without damaging the ball, the pipe or the floor.
A steel pipe is embedded in the concrete floor of a bare room… The inside diameter is 0.06” larger than the diameter of the ping‐pong ball (1.50”) that is resting at the bottom of the pipe. You are one of a group of six people in the room, along with the following objects:
from Conceptual Blockbusting by James L. Adams List as many ways as you can think of to get the ball out of the pipe without damaging the ball, the pipe or the floor.
Notice that having tools can distract you from a good solution!
10/7/2009 11
MacGyver Gets Lazy
http://xkcd.com/444/
You can do more with a gun that just fire it. – Angus MacGyver
“Automated tests represent the automation of a manual process.” Harold F Tipton Micki Krause – Harold F. Tipton, Micki Krause “The most important benefit of automated testing over conventional manual testing is the minimization of costs over repeated tests.” – Markus Helfen, Michael Lauer “We have found that it is essential for tests to execute very quickly; our target is We have found that it is essential for tests to execute very quickly; our target is under 30 seconds for the typical test run.” – Shaun Smith, Gerard Mezaros
The less you know sometimes, the better. – Angus MacGyver
10/7/2009 12
“I have never been convinced that finding ‘new’ bugs is a realistic expectation for test automation.” – I.M. Testy “After you have run your automated tests for the first time, you are done finding new bugs. Never again will you find a new issue. ” – Steve Rowe “Running automated test scripts can not be used to find new bugs in the software …” – Cordell Vail
“Oracle: A mechanism to produce the predicted outcomes to compare with p p p the actual outcomes of the software under test.” – BS 7925‐1 “A test oracle is a mechanism for predicting the expected results.” ‐ Andreas Spillner; Tilo Linz; Hans Schaefer “In real testing the outcome is predicted and documented before the test is run.” i i – Boris Beizer
10/7/2009 13
Why can t test automation be used for exploratory testing?
Never laugh at what you don't know. – Angus MacGyver
I i j i d f M
Imagination is the most important thing the human mind has. – Angus MacGyver
10/7/2009 14
– Create explicit domain
– Validate upon data entry – Validate upon data entry
10/7/2009 15
– Input from
– Check with
– Input from
– Check with
10/7/2009 16
– Input from
– Check with
If you don't have the right equipment for the job, you just have to make it yourself. – Angus MacGyver
Commercial filter
Do these results differ?
Results web Results
10/7/2009 17
Narrator: “It had been an unavoidable accident; one of those rare times when fog forms right out of mid‐air and in five minutes the visibility goes from ten miles down to
Narrator: “It had been an unavoidable accident; one of those rare times when fog forms right out of mid‐air and in five minutes the visibility goes from ten miles down to
Outlaw: “[Your] rule number eight told him never to land away from an airport. In his last five minutes of visibility, he flew over eight hundred thirty‐seven landing places – smooth fields and level pastures – but they were not ‘designated airports’ … so he didn’t even think about landing …
10/7/2009 18
Narrator: “It had been an unavoidable accident; one of those rare times when fog forms right out of mid‐air and in five minutes the visibility goes from ten miles down to
“Outlaw”: “[Your] rule number eight told him never to land away from an airport. In his last five minutes of visibility, he flew over eight hundred thirty‐seven landing places – smooth fields and level pastures – but they were not ‘designated airports’ … so he didn’t even think about landing … “It’s up to us to keep flight alive in a world of airplane drivers – the people who come out of your school, concerned only with moving straight and level from airport to airport. We’re trying to keep a few real pilots left in the air. “ Narrator: “It had been an unavoidable accident; one of those rare times when fog forms right out of mid‐air and in five minutes the visibility goes from ten miles down to
“Outlaw”: “[Your] rule number eight told him never to land away from an airport. In his last five minutes of visibility, he flew over eight hundred thirty‐seven landing places – smooth fields and level pastures – but they were not ‘designated airports’ … so he didn’t even think about landing … “It’s up to us to keep flight alive in a world of airplane drivers – the people who come out of your school, concerned only with moving straight and level from airport to airport. We’re trying to keep a few real pilots left in the air. “ ‐ Richard Bach A Gift of Wings
10/7/2009 19
– Test approaches – Your product – Available tools – Creative problem‐solving
h l b
Always carry around a knapsack to pick up things you find along the way. – Angus MacGyver
Ed Smylie accepts the first Great Moments in Engineering award
that kept astronauts alive on the ill‐fated mission 35 years ago.
Any problem can be solved with a little ingenuity. – Angus MacGyver
10/7/2009 20 The most important tool for survival isn't duct tape or a Swiss Army Knife, it's your wits. Always keep them about you. – Angus MacGyver The most important tool for survival isn't duct tape or a Swiss Army Knife, it's your wits. Always keep them about you. – Angus MacGyver