automating everyday tasks for better...

15
Automating Everyday Tasks for Better Productivity Predrag Skokovic

Upload: others

Post on 06-Jul-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Automating everyday tasks for better productivitynordictestingdays.eu/files/files/predrag_skokovic_automating_everyd… · Dorothy Graham - Blunders in Test Automation J. Bach & M

Automating Everyday Tasks for

Better Productivity

Predrag Skokovic

Page 2: Automating everyday tasks for better productivitynordictestingdays.eu/files/files/predrag_skokovic_automating_everyd… · Dorothy Graham - Blunders in Test Automation J. Bach & M

Agenda

Goal of Software Testing

Effort vs Result Driven Testing

What (not) to Automate?

Exercises

Conclusion

Page 3: Automating everyday tasks for better productivitynordictestingdays.eu/files/files/predrag_skokovic_automating_everyd… · Dorothy Graham - Blunders in Test Automation J. Bach & M

Goal of Software Testing

(c) kbuntu www.fotosearch.com Stock Photography

Page 4: Automating everyday tasks for better productivitynordictestingdays.eu/files/files/predrag_skokovic_automating_everyd… · Dorothy Graham - Blunders in Test Automation J. Bach & M

Effort vs Result Driven Testing

“Businesswoman breaking through a finish line ribbon” by Ron Leishman

Marathon Finish Line Clip Art (247246) http://ngmnexpo.com/marathon-finish-line-clip-art-247246/

Page 5: Automating everyday tasks for better productivitynordictestingdays.eu/files/files/predrag_skokovic_automating_everyd… · Dorothy Graham - Blunders in Test Automation J. Bach & M

“For many events, roughly 80% of the effects come

from 20% of the causes” – Vilfredo Pareto

Effort vs Result Driven Testing

80% RESULT20% EFFORT

Page 6: Automating everyday tasks for better productivitynordictestingdays.eu/files/files/predrag_skokovic_automating_everyd… · Dorothy Graham - Blunders in Test Automation J. Bach & M

What (not) to Automate

Page 7: Automating everyday tasks for better productivitynordictestingdays.eu/files/files/predrag_skokovic_automating_everyd… · Dorothy Graham - Blunders in Test Automation J. Bach & M

Let’s Do Some Exercises!

"Cartoon Businessman Exercise Set“ - Image courtesy of iosphere at FreeDigitalPhotos.net

Page 8: Automating everyday tasks for better productivitynordictestingdays.eu/files/files/predrag_skokovic_automating_everyd… · Dorothy Graham - Blunders in Test Automation J. Bach & M

Test phase: Reporting

Testing of AUT is finished. We are writing test report.

We have couple of minutes remaining to send final test

report and then we realize that we forgot to fill in

content of the test environment section.

What shall we do?

Add System Environment Details to Report

Exercise 1

Page 9: Automating everyday tasks for better productivitynordictestingdays.eu/files/files/predrag_skokovic_automating_everyd… · Dorothy Graham - Blunders in Test Automation J. Bach & M

Test phase: Reporting

While executing three SUT, a number of log files is

created. Although folder structure that keeps log files is

complex it is necessary to preserve log files as evidence

for future analysis.

How to avoid boring and error prone task of evidence

gathering?

Preserve Log Files as Evidence

Exercise 2

Page 10: Automating everyday tasks for better productivitynordictestingdays.eu/files/files/predrag_skokovic_automating_everyd… · Dorothy Graham - Blunders in Test Automation J. Bach & M

Test phase: Preparation

We are working in a complex environment in which initial

database configuration defines context of the system, by

enabling (or disabling) parts and functions of the SUT.

How to quickly switch test environment contexts?Database Switch

Exercise 3

Page 11: Automating everyday tasks for better productivitynordictestingdays.eu/files/files/predrag_skokovic_automating_everyd… · Dorothy Graham - Blunders in Test Automation J. Bach & M

Test phase: Preparation

We want to evaluate AUT behavior on the page that

shows all users available in the system.

How to quickly import details of 1000+ users (full name,

username, email address) into the system?Evaluate All Users Page

Exercise 4

Page 12: Automating everyday tasks for better productivitynordictestingdays.eu/files/files/predrag_skokovic_automating_everyd… · Dorothy Graham - Blunders in Test Automation J. Bach & M

All test phases

Execute test cases against the AUT, located here:

http://localhost/LoginRegistrationForm/

Test scenario 1: Login

Test scenario 2: Sign upData Driven Testing

Exercise 5

Page 13: Automating everyday tasks for better productivitynordictestingdays.eu/files/files/predrag_skokovic_automating_everyd… · Dorothy Graham - Blunders in Test Automation J. Bach & M

Data Driven Testing

Exercise 5

Action(fixture)

Data Storage (test cases)

Supporting Utility

Components mapping

Page 15: Automating everyday tasks for better productivitynordictestingdays.eu/files/files/predrag_skokovic_automating_everyd… · Dorothy Graham - Blunders in Test Automation J. Bach & M

Literature

Dorothy Graham - Blunders in Test Automation

J. Bach & M. Bolton - A Context-Driven Approach to Automation in Testing

Gojko Adzic - Avoiding the most common pitfall of large-scale agile

Elisabeth Hendrickson - Explore It!

Tim Koomen, et al. - TMap Next, for result-driven testing

Rex Black, et al. - Foundations of Software Testing ISTQB Certification

You Suck at Excel with Joel Spolsky

Al Sweigart - Automate the Boring Stuff with Python

M. Pyhäjärvi & L. Falco – The Mob Programming Guidebook