Before The Code: First Steps to Automation in Testing
Before The Code: First Steps to Automation in Testing
About the Book
One of the hottest topics today in software testing is automation. Why is that? Because of multiple reasons ranging from using a tool to perform the mundane tasks to improving a team's ability to produce reliable and stable software quickly. But the common mistake testers and companies make is jumping in blindly by just grabbing a tool and scripting everything as fast as they can. This just leads to flaky tests, hard to maintain automation code, and failure. They make the mistake of putting the cart before the horse.
This book focuses on the front-end processes — the work involved in implementing and maintaining test automation and emphasizing a tool agnostic mindset. The information is based on multiple years of work experience using many different tools with a wide range of application & development technologies. This information comes from my experiences in the Software Testing Trenches.
Table of Contents
Table of Contents About the Author 7 Acknowledgments 8 Introduction 9
Chapter 1 – Starting Off 11 Where to Start 11 Initiation of Implementation 12 Summary 18 References 18
Chapter 2 - Automagic 19 Automation Myths & Misconceptions 19 Summary 22 References 23
Chapter 3 – Test Automation Pyramid 25 Demystifying the Test Automation Pyramid 25 Dealing with Management 30 The Reality of the Current Situation 31 Summary 32 References 32
Chapter 4 – Educating Management 33 Educating and Convincing Management 33 The End Game 36 Summary 39 References 41
Chapter 5 – The Automation Team 43 Recruiting an External Person 43 Recruiting a Contractor or Consultant 49 Finding an Internal Resource 49 Technical vs. Non-Technical Tester 50 Summary 52 References 52
Chapter 6 - Training 53 Training Staff 53 Learning Automation 56 Summary 57 References 58
Chapter 7 – Basic Automation Development 59 Automation Development 59 Summary 63 References 64
Chapter 8 – Selection of Tests 65 Selecting Tests for Automation 65 Appropriateness of Tests 65 Readiness of Tests 65 Grouping Tests into Suites 66 Prioritizing Tests 68 Combined Methods 69 Summary 74 References 74
Chapter 9 – Automation Testability 75 Testability 75 Methodologies 76 Common Issues - GUI Level 77 Testability Attributes - GUI Level 79 Common Issues - API/Services Level 80 Testability Attributes - API/Services Level 80 Common Issues - Code/Unit Test Level 81 Testability Attributes - Code/Unit Test Level 81 Testability Standards - General 82 Testability Aids 83 Other Factors to Consider Regarding Testability 83 Benefits 84 Summary 84 References 85
Chapter 10 – Proof of Concept 87 Proof of Concept & Tool Evaluation 87 Presenting the Findings 92 Making the Final Decision 93 Summary 94 References 94
Chapter 11 – Framework Concepts 95 Frameworks 95 Selection of a Framework 101 Construction of Framework 102 Summary 103 References 104
Chapter 12 – Automation Framework Design 105 Basic Framework Design 105 Pieces of the Puzzle 106 Summary 112 References 112
Chapter 13 – Where to Run the Tests 113 Automation Test Lab 113 Summary 118 References 118
Chapter 14 – Self Learning 119 Getting Yourself Ready for Automation 119 Software Testing 119 Software Development Life Cycle (SDLC) 121 General Programming Techniques 125 Programming Principles (Not Patterns) 126 Automation Programming Techniques 127 Algorithms to Understand for Automation 129 Automation Tools 130 Practice Automation 131 Summary 132 References 133
Chapter 15 – Craft of Automation in Testing 135 Craftsmanship for Automation in Testing 135 What is Craftsmanship? 135 Automation in Testing Craftsmanship 137 Putting It All Together 139 Summary 140 References 140
Authors have earned$9,886,858writing, publishing and selling on Leanpub, earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.
Learn more about writing on Leanpub
The Leanpub 45-day 100% Happiness Guarantee
Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
Top Books
C++ Best Practices
Jason TurnerLevel up your C++, get the tools working for you, eliminate common problems, and move on to more exciting things!
OpenIntro Statistics
David Diez, Christopher Barr, Mine Cetinkaya-Rundel, and OpenIntroA complete foundation for Statistics, also serving as a foundation for Data Science.
Leanpub revenue supports OpenIntro (US-based nonprofit) so we can provide free desk copies to teachers interested in using OpenIntro Statistics in the classroom and expand the project to support free textbooks in other subjects.
More resources: openintro.org.
Functional Design and Architecture
Alexander GraninSoftware Design in Functional Programming, Design Patterns and Practices, Methodologies and Application Architectures. How to build real software in Haskell with less efforts and low risks. The first complete source of knowledge.
Atomic Kotlin
Bruce Eckel and Svetlana IsakovaFor both beginning and experienced programmers! From the author of the multi-award-winning Thinking in C++ and Thinking in Java together with a member of the Kotlin language team comes a book that breaks the concepts into small, easy-to-digest "atoms," along with exercises supported by hints and solutions directly inside IntelliJ IDEA!
R Programming for Data Science
Roger D. PengThis book brings the fundamentals of R programming to you, using the same material developed as part of the industry-leading Johns Hopkins Data Science Specialization. The skills taught in this book will lay the foundation for you to begin your journey learning data science. Printed copies of this book are available through Lulu.
I am a Software Engineer and I am in Charge
Alexis Monville and Michael DoyleI am a Software Engineer and I am in Charge is a real-world, practical book that helps you increase your impact and satisfaction at work no matter who you work with.
In the book, we will follow Sandrine, a fictional character who learns to think in a new way enabling her to take a different course of action.
C++20
Rainer GrimmC++20 is the next big C++ standard after C++11. As C++11 did it, C++20 changes the way we program modern C++. This change is, in particular, due to the big four of C++20: ranges, coroutines, concepts, and modules.
Invest In Digital Health - The Medical Futurist's Guide
Dr. Bertalan MeskoArtificial Intelligence and Digital Health are booming. In this book, we explain why now it's a good time to invest in Digital Health and give recommendations on where to invest by looking at the top 24 technological trends we find the most promising.
Ansible for DevOps
Jeff GeerlingAnsible is a simple, but powerful, server and configuration management tool. Learn to use Ansible effectively, whether you manage one server—or thousands.
The Hundred-Page Machine Learning Book
Andriy BurkovEverything you really need to know in Machine Learning in a hundred pages.
Top Bundles
- #1
Software Architecture for Developers: Volumes 1 & 2 - Technical leadership and communication
2 Books
"Software Architecture for Developers" is a practical and pragmatic guide to modern, lightweight software architecture, specifically aimed at developers. You'll learn:The essence of software architecture.Why the software architecture role should include coding, coaching and collaboration.The things that you really need to think about before... - #2
CCIE Service Provider Ultimate Study Bundle
2 Books
Piotr Jablonski, Lukasz Bromirski, and Nick Russo have joined forces to deliver the only CCIE Service Provider training resource you'll ever need. This bundle contains a detailed and challenging collection of workbook labs, plus an extensively detailed technical reference guide. All of us have earned the CCIE Service Provider certification... - #3
The Future of Digital Health
6 Books
We put together the most popular books from The Medical Futurist to provide a clear picture about the major trends shaping the future of medicine and healthcare. Digital health technologies, artificial intelligence, the future of 20 medical specialties, big pharma, data privacy and how technology giants such as Amazon or Google want to conquer... - #4
Cisco CCNA 200-301 Complet
4 Books
Ce lot comprend les quatre volumes du guide préparation à l'examen de certification Cisco CCNA 200-301. - #5
Modern Management Made Easy
3 Books
Read all three Modern Management Made Easy books. Learn to manage yourself, lead and serve others, and lead the organization. - #6
CCDE Practical Studies (All labs)
3 Books
CCDE lab - #7
Modern C++ by Nicolai Josuttis
2 Books
- #8
"The C++ Standard Library" and "Concurrency with Modern C++"
2 Books
Get my books "The C++ Standard Library" and "Concurrency with Modern C++" in a bundle. The first book gives you the details you should know about the C++ standard library; the second one dives deeper into concurrency with modern C++. In sum, you get more than 600 pages full of modern C++ and about 250 source files presenting the standard library... - #9
Linux Administration Complet
4 Books
Ce lot comprend les quatre volumes du Guide Linux Administration :Linux Administration, Volume 1, Administration fondamentale : Guide pratique de préparation aux examens de certification LPIC 1, Linux Essentials, RHCSA et LFCS. Administration fondamentale. Introduction à Linux. Le Shell. Traitement du texte. Arborescence de fichiers. Sécurité... - #10
Advanced Product Management
3 Books
Get The Art of Strategy, Product Discovery and Lean Product Management with a 20% discount.