Top Banner
Scripting Recipes for Testers Adam Goucher Manager of Quality, Zerofootprint Software [email protected] http://adam.goucher.ca
23

Scripting Recipes KWSQA2009

Jan 16, 2015

Download

Technology

Adam Goucher

My 'Scripting Recipes for Testers' presentation at the 2009 KWSQA Conference (April 22, 2009).
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Scripting Recipes KWSQA2009

Scripting Recipes for TestersAdam Goucher

Manager of Quality, Zerofootprint Software

[email protected]://adam.goucher.ca

Page 2: Scripting Recipes KWSQA2009

Code craft is mandatoryReading and writing code extends and accelerates

critical thinking

Page 3: Scripting Recipes KWSQA2009

Language ChoiceThree things you don’t talk about in polite company:

sex, politics, language choice

Page 4: Scripting Recipes KWSQA2009

Language ChoiceThere is no such thing as right or wrong, but there is

right-er and wrong-er depending on the situation

Page 5: Scripting Recipes KWSQA2009

Increasing InsightUncover hidden technical debt

Page 6: Scripting Recipes KWSQA2009

Tip: Common CaseConverting both sides of a comparison to a common

case means you don’t have to worry about case

Page 7: Scripting Recipes KWSQA2009

Tip: YAGNIYou Ain’t Gonna Need It

Page 8: Scripting Recipes KWSQA2009

Increase InsightExploration (or Throw out your scripts)

Page 9: Scripting Recipes KWSQA2009

Increasing EaseJust because something was hard manually doesn’t mean

it always has to be hard

Page 10: Scripting Recipes KWSQA2009

Tip: One Line at a TimeSimple is better than complex - The Zen of Python

Page 11: Scripting Recipes KWSQA2009

Test SelectionBrowser Percentages

Page 12: Scripting Recipes KWSQA2009

Tip: Filter the dataYou are not the customer so you should not be in the

data

Page 13: Scripting Recipes KWSQA2009

Tip: Reinvent the wheelSometimes you can make a better wheel

Page 14: Scripting Recipes KWSQA2009

Tip: YAGNI is heuristicEven though YAGNI, if you can capture it easily then do

so

Page 15: Scripting Recipes KWSQA2009

Data GenerationWho says randomness in testing is bad?

Page 16: Scripting Recipes KWSQA2009

Tip: Can’t Pronounce? So what?

Page 17: Scripting Recipes KWSQA2009

Tip: Embrace ChaosThe world is a random place, why should your data be

organized?

Page 18: Scripting Recipes KWSQA2009

OraclesUnlike the one at Delphi, our oracles shouldn’t be

stoned on sulphur fumes

Page 19: Scripting Recipes KWSQA2009

Tip: ProximityThings that are related, should be together

Page 20: Scripting Recipes KWSQA2009

Reduce CostsWouldn’t you like your budget focused on your salary?

Page 21: Scripting Recipes KWSQA2009

Tip: Let scripts evolveJust like all living thing, scripts evolve

Page 22: Scripting Recipes KWSQA2009

Increase SpeedWe have the technology. ... Better than he was before.

Better, stronger, faster.

Page 23: Scripting Recipes KWSQA2009

Go Forth and Script!