Selenium Testing Tools Cookbook

Unmesh Gundecha · CERN Document Server (European Organization for Nuclear Research) · 2012

Over 90 recipes to build, maintain, and improve test automation with WebDriver Overview Learn to leverage the power of WebDriver with simple examples that illustrate real world problems and their workarounds Each sample demonstrates key concepts allowing you to advance your knowledge of WebDriver in a practical and incremental way Explains testing of mobile web applications with Drivers for platforms such as iOS and Android In Detail Web technologies are becoming increasingly complex and there is a need to test your web applications against a vast number of browsers and platforms, so you need to build highly reliable and maintainable test automation. This book will help you test your web applications effectively and efficiently with WebDriver. Selenium Testing Tools Cookbook is an incremental guide that will help you learn and use advanced features of WebDriver API in various situations for building reliable test automation. You will learn how to effectively use features of using simple and detailed examples. This book will also teach you best practices, design patterns, and how to extend Selenium. Selenium Testing Tools Cookbook shows developers and testers who already use Selenium, how to go to the next step and build a highly maintainable and reliable test framework using advanced features of the tool. The book starts with tips on advanced location strategy and effective use of WebDriver API. Then it demonstrates the use of design patterns such as Data Driven Tests and PageFactory for building maintainable test automation. It also explains extending WebDriver API along with implementing custom tasks and setting up your own distributed environment to run tests in parallel. It concludes with tips on integrating WebDriver with other popular tools, testing mobile web applications, and capturing videos of test runs. This books provides examples in Java, C#, Ruby, and Python. Selenium Testing Tools Cookbook will help you in building a highly robust and maintainable test automation framework from start to finish. What you will learn from this book Understand Locators and use various locator methods to build reliable tests Build reliable and maintainable tests with WebDriver API Use PageFactory Pattern to build a robust and easy- to-maintain test framework Build data driven tests and extend API to implement custom steps and checks Learn to integrate and use ATDD/BDD tools such as JBehave, SpecFlow, and FitNesses with WebDriver Set up iPhone/iPad & Android simulators and devices for testing your mobile web application Set up Grid for faster and parallel run of tests, increasing test coverage and reducing test execution time Capture screenshots and videos of test runs Approach This is a cookbook packed with code examples and step-by-step instructions to ease your learning curve. Who this book is written for This book is intended for software quality assurance/testing professionals, software project managers, or software developers with prior experience in using and Java for testing web-based applications. This book also provides examples for C#, Python, and Ruby users.

Read the paper · More papers on PaperTik