the art and science of test automation · the science of test automation •science: a...

17
The Art and Science of Test Automation Mandana Nabizadeh October 2018 1

Upload: others

Post on 24-May-2020

10 views

Category:

Documents


0 download

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 16: 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

Contact

[email protected]

Twitter: Mon_Donna

Linkedin: linkedin.com/in/mandananabizadeh

16

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

Q & A

17