the art and science of test automation · the science of test automation •science: a...
TRANSCRIPT
![Page 1: The Art and Science of Test Automation · The Science of Test Automation •Science: a systematically organized body of knowledge on a particular subject. •Test Automation Use of](https://reader030.vdocument.in/reader030/viewer/2022041019/5ecd27b8bace3934fb36621a/html5/thumbnails/1.jpg)
The Art and Science of Test
Automation Mandana Nabizadeh
October 2018
1
![Page 2: The Art and Science of Test Automation · The Science of Test Automation •Science: a systematically organized body of knowledge on a particular subject. •Test Automation Use of](https://reader030.vdocument.in/reader030/viewer/2022041019/5ecd27b8bace3934fb36621a/html5/thumbnails/2.jpg)
Agenda
• Why Test Automation
• Science of Test Automation
▫ Automation Framework
• Art of Test Automation
▫ What to Test
2
![Page 3: The Art and Science of Test Automation · The Science of Test Automation •Science: a systematically organized body of knowledge on a particular subject. •Test Automation Use of](https://reader030.vdocument.in/reader030/viewer/2022041019/5ecd27b8bace3934fb36621a/html5/thumbnails/3.jpg)
Why Test Automation
• Do you automate your tests?
• Entirely through the user interface?
• Do you still do most of your testing manually because your automated tests can’t support your testing objectives?
3
![Page 4: The Art and Science of Test Automation · The Science of Test Automation •Science: a systematically organized body of knowledge on a particular subject. •Test Automation Use of](https://reader030.vdocument.in/reader030/viewer/2022041019/5ecd27b8bace3934fb36621a/html5/thumbnails/4.jpg)
Types of Automated Tests
4
Source: The evolution of test automation Results from the 2018 QASymphony and TechWell Surrvey
![Page 5: The Art and Science of Test Automation · The Science of Test Automation •Science: a systematically organized body of knowledge on a particular subject. •Test Automation Use of](https://reader030.vdocument.in/reader030/viewer/2022041019/5ecd27b8bace3934fb36621a/html5/thumbnails/5.jpg)
The Science of Test Automation
• Science:
▫ a systematically organized body of knowledge on a particular subject.
• Test Automation
▫ Use of software to control the execution of tests
▫ Comparison of actual outcomes with predicted outcomes
5
![Page 6: The Art and Science of Test Automation · The Science of Test Automation •Science: a systematically organized body of knowledge on a particular subject. •Test Automation Use of](https://reader030.vdocument.in/reader030/viewer/2022041019/5ecd27b8bace3934fb36621a/html5/thumbnails/6.jpg)
Automation Framework
▫ Framework Selection
Type of application under test
Mobile
Web-based
Desktop
▫ Technology used
6
![Page 7: The Art and Science of Test Automation · The Science of Test Automation •Science: a systematically organized body of knowledge on a particular subject. •Test Automation Use of](https://reader030.vdocument.in/reader030/viewer/2022041019/5ecd27b8bace3934fb36621a/html5/thumbnails/7.jpg)
Behavioral Driven Development (BDD)
7
![Page 8: The Art and Science of Test Automation · The Science of Test Automation •Science: a systematically organized body of knowledge on a particular subject. •Test Automation Use of](https://reader030.vdocument.in/reader030/viewer/2022041019/5ecd27b8bace3934fb36621a/html5/thumbnails/8.jpg)
Step Definition (Glue)
8
![Page 9: The Art and Science of Test Automation · The Science of Test Automation •Science: a systematically organized body of knowledge on a particular subject. •Test Automation Use of](https://reader030.vdocument.in/reader030/viewer/2022041019/5ecd27b8bace3934fb36621a/html5/thumbnails/9.jpg)
POM.xml
9
![Page 10: The Art and Science of Test Automation · The Science of Test Automation •Science: a systematically organized body of knowledge on a particular subject. •Test Automation Use of](https://reader030.vdocument.in/reader030/viewer/2022041019/5ecd27b8bace3934fb36621a/html5/thumbnails/10.jpg)
Art of Test Automation
▫ Scalable, maintainable framework
▫ Valuable tests
▫ Testing is a scientific practice
10
![Page 11: The Art and Science of Test Automation · The Science of Test Automation •Science: a systematically organized body of knowledge on a particular subject. •Test Automation Use of](https://reader030.vdocument.in/reader030/viewer/2022041019/5ecd27b8bace3934fb36621a/html5/thumbnails/11.jpg)
Learn the fundamentals
▫ Testing is observing and analyzing
▫ Framework gives you Scaffolding
11
![Page 12: The Art and Science of Test Automation · The Science of Test Automation •Science: a systematically organized body of knowledge on a particular subject. •Test Automation Use of](https://reader030.vdocument.in/reader030/viewer/2022041019/5ecd27b8bace3934fb36621a/html5/thumbnails/12.jpg)
Learning to draw
▫ Developing successful automation suites are highly dependent on efficient test.
Apply D.R.Y concept to test case creation
Consider the value of the tests
Clear, concise, only one objective
Use test case design techniques
12
![Page 13: The Art and Science of Test Automation · The Science of Test Automation •Science: a systematically organized body of knowledge on a particular subject. •Test Automation Use of](https://reader030.vdocument.in/reader030/viewer/2022041019/5ecd27b8bace3934fb36621a/html5/thumbnails/13.jpg)
Stabilize Your Test Suites
• Automated suites are living artifacts
• Re-visit your suite, adjust if necessary
• Remove test with little or no value
• Add high impact tests
• Avoid Old Oak Tree Syndrome (Reference: Lesson learned
from Software Testing – A context driven approach)
13
![Page 14: The Art and Science of Test Automation · The Science of Test Automation •Science: a systematically organized body of knowledge on a particular subject. •Test Automation Use of](https://reader030.vdocument.in/reader030/viewer/2022041019/5ecd27b8bace3934fb36621a/html5/thumbnails/14.jpg)
Quantify & Measure
14
Source: The evolution of test automation Results from the 2018 QASymphony and TechWell Surrvey
![Page 15: The Art and Science of Test Automation · The Science of Test Automation •Science: a systematically organized body of knowledge on a particular subject. •Test Automation Use of](https://reader030.vdocument.in/reader030/viewer/2022041019/5ecd27b8bace3934fb36621a/html5/thumbnails/15.jpg)
Further reading
• Lessons Learned in Software Testing by Cem Kraner, James Bach, Brett Pettichord
• Thinking in Systems by Donella H. Meadows
• Testing Computer Software by Cem Kaner, Jack Falk and Hung Quoc Nguyen
• Selenium Design Patterns and Best Practices by Dima Kovalenko
• Continuous Testing For Devops Professionals by Eran Kinsbruner
15
![Page 17: The Art and Science of Test Automation · The Science of Test Automation •Science: a systematically organized body of knowledge on a particular subject. •Test Automation Use of](https://reader030.vdocument.in/reader030/viewer/2022041019/5ecd27b8bace3934fb36621a/html5/thumbnails/17.jpg)
Q & A
17