Book description
Build a powerful, stable, and automated test suite using Selenium WebDriver
In Detail
Selenium WebDriver is a global leader in automated web testing. It empowers users to perform complex testing scenarios with its simple and powerful interface.
This guide will provide you with all the skills you need to successfully create a functional Selenium test suite. Starting from the very beginning of the Selenium IDE, this book will show you how to transition into a real programing language such as Ruby or Java. You will quickly learn how to improve your code quality with refactoring and the skills needed to plan for the future development of your website to future-proof your test suite. With ample test examples running against a life-like e-commerce store and detailed step-by-step code review and explanations, you will be ready to test any challenge web developers might throw your way.
This book is intended for anyone who wants to create a test suite that is easy to maintain by expanding your knowledge until you feel truly confident and comfortable with Selenium.
What You Will Learn
- Control Selenium WebDriver within any major programing language such as Java, Ruby, Python, and .NET
- Learn how to implement a simple test script or a complex Page Objects framework
- Set up each test to automatically deal with AJAX and jQuery
- Remove test instabilities by blocking third-party services
- Deal with data uncertainties by using fixtures, JSON APIs, and API stubbing
- Improve your test suite continuously by refactoring code and using the DRY principle
- Stabilize your tests by using patterns such as the Action Wrapper and Black Hole Proxy patterns
Publisher resources
Table of contents
-
Selenium Design Patterns and Best Practices
- Table of Contents
- Selenium Design Patterns and Best Practices
- Credits
- Foreword
- About the Author
- Acknowledgments
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. Writing the First Test
-
2. The Spaghetti Pattern
- Introducing the Spaghetti pattern
- Testing the product review functionality
- Reasons for failures
- The Chain Linked pattern
- The Big Ball of Mud pattern
- Summary
- 3. Refactoring Tests
- 4. Data-driven Testing
- 5. Stabilizing the Tests
- 6. Testing the Behavior
- 7. The Page Objects Pattern
-
8. Growing the Test Suite
- Strategies for writing test suites
- Continuous Integration
- Frequently Asked Questions
- Summary
- A. Getting Started with Selenium
- Index
Product information
- Title: Selenium Design Patterns and Best Practices
- Author(s):
- Release date: September 2014
- Publisher(s): Packt Publishing
- ISBN: 9781783982707
You might also like
book
Selenium Framework Design in Data-Driven Testing
Take a deep dive into building data-driven test frameworks using Selenium WebDriver About This Book A …
video
Design Selenium Test framework from scratch-Architect level
Are you struggling with understanding test automation frameworks and clearing top company's interviews? Do you only …
book
Selenium WebDriver Quick Start Guide
Get writing tests and learn to design your own testing framework with Selenium WebDriver API Key …
book
Selenium WebDriver 3 Practical Guide - Second Edition
Real-world examples of cross-browser, mobile, and data-driven testing with all the latest features of Selenium WebDriver …