Download - Scripting Recipes KWSQA2009
![Page 1: Scripting Recipes KWSQA2009](https://reader035.vdocument.in/reader035/viewer/2022062511/54b820a64a79598b168b4619/html5/thumbnails/1.jpg)
Scripting Recipes for TestersAdam Goucher
Manager of Quality, Zerofootprint Software
[email protected]://adam.goucher.ca
![Page 2: Scripting Recipes KWSQA2009](https://reader035.vdocument.in/reader035/viewer/2022062511/54b820a64a79598b168b4619/html5/thumbnails/2.jpg)
Code craft is mandatoryReading and writing code extends and accelerates
critical thinking
![Page 3: Scripting Recipes KWSQA2009](https://reader035.vdocument.in/reader035/viewer/2022062511/54b820a64a79598b168b4619/html5/thumbnails/3.jpg)
Language ChoiceThree things you don’t talk about in polite company:
sex, politics, language choice
![Page 4: Scripting Recipes KWSQA2009](https://reader035.vdocument.in/reader035/viewer/2022062511/54b820a64a79598b168b4619/html5/thumbnails/4.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062511/54b820a64a79598b168b4619/html5/thumbnails/5.jpg)
Increasing InsightUncover hidden technical debt
![Page 6: Scripting Recipes KWSQA2009](https://reader035.vdocument.in/reader035/viewer/2022062511/54b820a64a79598b168b4619/html5/thumbnails/6.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062511/54b820a64a79598b168b4619/html5/thumbnails/7.jpg)
Tip: YAGNIYou Ain’t Gonna Need It
![Page 8: Scripting Recipes KWSQA2009](https://reader035.vdocument.in/reader035/viewer/2022062511/54b820a64a79598b168b4619/html5/thumbnails/8.jpg)
Increase InsightExploration (or Throw out your scripts)
![Page 9: Scripting Recipes KWSQA2009](https://reader035.vdocument.in/reader035/viewer/2022062511/54b820a64a79598b168b4619/html5/thumbnails/9.jpg)
Increasing EaseJust because something was hard manually doesn’t mean
it always has to be hard
![Page 10: Scripting Recipes KWSQA2009](https://reader035.vdocument.in/reader035/viewer/2022062511/54b820a64a79598b168b4619/html5/thumbnails/10.jpg)
Tip: One Line at a TimeSimple is better than complex - The Zen of Python
![Page 11: Scripting Recipes KWSQA2009](https://reader035.vdocument.in/reader035/viewer/2022062511/54b820a64a79598b168b4619/html5/thumbnails/11.jpg)
Test SelectionBrowser Percentages
![Page 12: Scripting Recipes KWSQA2009](https://reader035.vdocument.in/reader035/viewer/2022062511/54b820a64a79598b168b4619/html5/thumbnails/12.jpg)
Tip: Filter the dataYou are not the customer so you should not be in the
data
![Page 13: Scripting Recipes KWSQA2009](https://reader035.vdocument.in/reader035/viewer/2022062511/54b820a64a79598b168b4619/html5/thumbnails/13.jpg)
Tip: Reinvent the wheelSometimes you can make a better wheel
![Page 14: Scripting Recipes KWSQA2009](https://reader035.vdocument.in/reader035/viewer/2022062511/54b820a64a79598b168b4619/html5/thumbnails/14.jpg)
Tip: YAGNI is heuristicEven though YAGNI, if you can capture it easily then do
so
![Page 15: Scripting Recipes KWSQA2009](https://reader035.vdocument.in/reader035/viewer/2022062511/54b820a64a79598b168b4619/html5/thumbnails/15.jpg)
Data GenerationWho says randomness in testing is bad?
![Page 16: Scripting Recipes KWSQA2009](https://reader035.vdocument.in/reader035/viewer/2022062511/54b820a64a79598b168b4619/html5/thumbnails/16.jpg)
Tip: Can’t Pronounce? So what?
![Page 17: Scripting Recipes KWSQA2009](https://reader035.vdocument.in/reader035/viewer/2022062511/54b820a64a79598b168b4619/html5/thumbnails/17.jpg)
Tip: Embrace ChaosThe world is a random place, why should your data be
organized?
![Page 18: Scripting Recipes KWSQA2009](https://reader035.vdocument.in/reader035/viewer/2022062511/54b820a64a79598b168b4619/html5/thumbnails/18.jpg)
OraclesUnlike the one at Delphi, our oracles shouldn’t be
stoned on sulphur fumes
![Page 19: Scripting Recipes KWSQA2009](https://reader035.vdocument.in/reader035/viewer/2022062511/54b820a64a79598b168b4619/html5/thumbnails/19.jpg)
Tip: ProximityThings that are related, should be together
![Page 20: Scripting Recipes KWSQA2009](https://reader035.vdocument.in/reader035/viewer/2022062511/54b820a64a79598b168b4619/html5/thumbnails/20.jpg)
Reduce CostsWouldn’t you like your budget focused on your salary?
![Page 21: Scripting Recipes KWSQA2009](https://reader035.vdocument.in/reader035/viewer/2022062511/54b820a64a79598b168b4619/html5/thumbnails/21.jpg)
Tip: Let scripts evolveJust like all living thing, scripts evolve
![Page 22: Scripting Recipes KWSQA2009](https://reader035.vdocument.in/reader035/viewer/2022062511/54b820a64a79598b168b4619/html5/thumbnails/22.jpg)
Increase SpeedWe have the technology. ... Better than he was before.
Better, stronger, faster.
![Page 23: Scripting Recipes KWSQA2009](https://reader035.vdocument.in/reader035/viewer/2022062511/54b820a64a79598b168b4619/html5/thumbnails/23.jpg)
Go Forth and Script!