Over 90 recipes to help you build and run automated tests for your web applications with Selenium WebDriver About This Book Learn to leverage the power of Selenium WebDriver with simple examples that illustrate real-world problems and their workarounds Explains the testing of mobile applications with Appium for mobile platforms such as iOS and Android A pragmatic manual with engaging recipes and attractive screenshots to test your web applications efficiently Who This Book Is For This book is intended for software quality assurance/testing professionals, software project managers, or software developers with prior experience in using Selenium and Java to test web-based applications. This books also provides examples for C#, Python and Ruby users. What You Will Learn Understand how the locators work and use various locator methods to build reliable tests Build reliable and maintainable tests with the Selenium WebDriver API Use the PageFactory pattern to build a robust and easy to maintain test framework Build data-driven tests and extend Selenium API to implement custom steps and checks Integrate and use ATDD/BDD tools such as Cucumber, SpecFlow, Capybara, and Behave with the Selenium WebDriver API Set up iPhone/iPad and Android simulators and devices to test your mobile web application with Appium Set up Selenium Grid for faster and parallel running of tests, increasing test coverage and reducing test execution time for cross-browser testing Build extended Selenium WebDriver tests for additional coverage In Detail This book is an incremental guide that will help you learn and use the advanced features of the Selenium toolset including the WebDriver API in various situations to build a reliable test automation. You start off by setting up the test development environment and gain tips on the advanced locater strategy and the effective use of the Selenium WebDriver API. After that, the use of design patterns such as data - driven tests and PageFactory are demonstrated. You will then be familiarised with extending Selenium WebDriver API by implementing custom tasks and setting up your own distributed environment to run tests in parallel for cross-browser testing. Finally, we give you some tips on integrating Selenium WebDriver with other popular tools and testing mobile applications. By the end of this book, you will have learned enough to solve complex testing issues on your own. Style and approach This recipe-based guide covers real-life scenarios of testing your web apps with Selenium. Each recipe begins with a short introduction and key concepts along with illustrated examples of use cases, and ends with detailed but informative descriptions of the inner workings of the example.
Build data-driven test frameworks using Selenium WebDriver, AppiumDriver, Java, and TestNG
Author: Carl Cocchiaro
Publisher: Packt Publishing Ltd
Take a deep dive into building data-driven test frameworks using Selenium WebDriver Key Features A comprehensive guide to designing data-driven test frameworks using the Selenium 3 WebDriver API, AppiumDriver API, Java-Bindings, and TestNG Learn how to use Selenium Page Object Design Patterns and D.R.Y. (Don’t Repeat Yourself) Approaches to software development in automated testing Discover the Selenium Grid Architecture and build your own grid for browser and mobile devices Use third party tools and services like ExtentReports for results processing, reporting, and SauceLabs for cloud-based test services Book Description The Selenium WebDriver 3.x Technology is an open source API available to test both Browser and Mobile applications. It is completely platform independent in that tests built for one browser or mobile device, will also work on all other browsers and mobile devices. Selenium supports all major development languages which allow it to be tied directly into the technology used to develop the applications. This guide will provide a step-by-step approach to designing and building a data-driven test framework using Selenium WebDriver, Java, and TestNG. The book starts off by introducing users to the Selenium Page Object Design Patterns and D.R.Y Approaches to Software Development. In doing so, it covers designing and building a Selenium WebDriver framework that supports both Browser and Mobile Devices. It will lead the user through a journey of architecting their own framework with a scalable driver class, Java utility classes, JSON Data Provider, Data-Driven Test Classes, and support for third party tools and plugins. Users will learn how to design and build a Selenium Grid from scratch to allow the framework to scale and support different browsers, mobile devices, versions, and platforms, and how they can leverage third party grids in the Cloud like SauceLabs. Other topics covered include designing abstract base and sub-classes, inheritance, dual-driver support, parallel testing, testing multi-branded applications, best practices for using locators, and data encapsulation. Finally, you will be presented with a sample fully-functional framework to get them up and running with the Selenium WebDriver for browser testing. By the end of the book, you will be able to design your own automation testing framework and perform data-driven testing with Selenium WebDriver. What you will learn Design the Selenium Driver Class for local, remote, and third party grid support Build Page Object Classes using the Selenium Page Object Model Develop Data-Driven Test Classes using the TestNG framework Encapsulate Data using the JSON Protocol Build a Selenium Grid for RemoteWebDriver Testing Construct Utility Classes for use in Synchronization, File I/O, Reporting and Test Listener Classes Run the sample framework and see the benefits of a live data-driven framework in real-time Who this book is for This book is intended for software quality assurance/testing professionals, software project managers, or software developers with prior experience in using Selenium and Java to test web-based applications.This book is geared towards the quality assurance and development professionals responsible for designing and building enterprise-based testing frameworks.The user should have a working knowledge of the Java, TestNG, and Selenium technologies
End-to-end automation testing for web and mobile browsers with Selenium WebDriver, 2nd Edition
Author: Unmesh Gundecha
Publisher: Packt Publishing Ltd
Real-world examples of cross-browser, mobile, and data-driven testing with all the latest features of Selenium WebDriver 3 Key Features Unlock the full potential of Selenium to test your web applications Use Selenium Grid for faster, parallel running, and cross-browser testing Test iOS and Android Apps with Appium Book Description Selenium WebDriver is an open source automation tool implemented through a browser-specific driver, which sends commands to a browser and retrieves results. The latest version of Selenium 3 brings with it a lot of new features that change the way you use and setup Selenium WebDriver. This book covers all those features along with the source code, including a demo website that allows you to work with an HMTL5 application and other examples throughout the book. Selenium WebDriver 3 Practical Guide will walk you through the various APIs of Selenium WebDriver, which are used in automation tests, followed by a discussion of the various WebDriver implementations available. You will learn to strategize and handle rich web UI using advanced WebDriver API along with real-time challenges faced in WebDriver and solutions to handle them. You will discover different types and domains of testing such as cross-browser testing, load testing, and mobile testing with Selenium. Finally, you will also be introduced to data-driven testing using TestNG to create your own automation framework. By the end of this book, you will be able to select any web application and automate it the way you want. What you will learn Understand what Selenium 3 is and how is has been improved than its predecessor Use different mobile and desktop browser platforms with Selenium 3 Perform advanced actions, such as drag-and-drop and action builders on web page Learn to use Java 8 API and Selenium 3 together Explore remote WebDriver and discover how to use it Perform cross browser and distributed testing with Selenium Grid Use Actions API for performing various keyboard and mouse actions Who this book is for Selenium WebDriver 3 Practical Guide is for software quality assurance/testing professionals, software project managers, or software developers interested in using Selenium for testing their applications. Prior programming experience in Java is necessary.
If you are a Java developer, a software architect, a technical project manager, a build manager, or a development or QA engineer, then this book is ideal for you. A basic understanding of the software development life cycle and Java development is needed, as well as a rudimentary understanding of Jenkins.
Easy solutions to test your Python projects using test-driven development and Selenium, 2nd Edition
Author: Greg L. Turnquist
Publisher: Packt Publishing Ltd
Fix everyday testing problems in Python with the help of this solution-based guide Key Features Use powerful tools such as doctest and unittest to make testing convenient Apply automation testing to an existing legacy system that isn't test oriented A practical guide to ease testing in Python using real-world examples Book Description Automated testing is the best way to increase efficiency while reducing the defects of software testing. It helps find bugs in code easily and at an early stage so that they can be tackled efficiently. This book delves into essential testing concepts used in Python to help you build robust and maintainable code. Python Testing Cookbook begins with a brief introduction to Python's unit testing framework to help you write automated test cases. You will learn how to write suitable test sets for your software and run automated test suites with Nose. You will then work with the unittest.mock library, which allows you to replace the parts of your system that are being tested with mock objects and make assertions about how they have been used. You will also see how to apply Test-driven Development (TDD) and Behavior-driven Development (BDD) and how to eliminate issues caused by TDD. The book explains how to integrate automated tests using Continuous Integration and perform smoke/load testing. It also covers best practices and will help you solve persistent testing issues in Python. The book concludes by helping you understand how doctest works and how Selenium can be used to test code efficiently. What you will learn Run test cases from the command line with increased verbosity Write a Nose extension to pick tests based on regular expressions Create testable documentation using doctest Use Selenium to test the Web User Interface Write a testable story with Voidspace Mock and Nose Configure TeamCity to run Python tests on commit Update project-level scripts to provide coverage reports Who this book is for If you’re a Python developer who wants to take testing to the next level and would like to expand your testing skills, this book is for you. It is assumed that you have some Python programming knowledge.
A practical cookbook, with a perfect package of simple, medium, and advanced recipes targeted at basic programmers as well as expert software testers, who will learn to create, manage, and run automated tests. It is packed with problem-solving recipes that are supported by simple examples. If you are a software tester or a programmer who is involved with testing automation using TestComplete, this book is ideal for you! You will be introduced to the very basics of using the tool, as well as polish any previously gained knowledge in using the tool. If you are already aware of programming basics, but are new to TestComplete, you will also be able to quickly learn the concepts through selected examples that are easily scalable for your specific needs.
Thoroughly updated and revised, this second edition of the bestselling Soil Sampling and Methods of Analysis presents several new chapters in the areas of biological and physical analysis and soil sampling. Reflecting the burgeoning interest in soil ecology, new contributions describe the growing number and assortment of new microbiological techniques, describe in-depth methods, and demonstrate new tools that characterize the dynamics and chemistry of soil organic matter and soil testing for plant nutrients. A completely new section devoted to soil water reviews up-to-date field- and laboratory-based methods for saturated and unsaturated soil hydraulic properties. Retaining the easy-to-follow, “cookbook” style of the original, this second edition provides a compilation of soil analytical techniques that are fast, straightforward, and relatively easy-to-use. Heavily referenced, peer-reviewed contributions from approximately 150 specialists make this a practical manual and resource handbook that describes a wide array of methods, both conventional and cutting-edge, for analyzing the chemical, biological, biochemical, and physical properties of many different soil types. Including several “primer” chapters that cover the overall principles and concepts behind the latest techniques, the book presents sufficient detail on the materials and procedures to characterize the potential and limitation of each method. It covers recent improvements in methodology, outlines current methods, and characterizes the best methods available for selecting the appropriate analysis technique. Promoting the research and practical application of findings in soil science, Soil Sampling and Methods of Analysis, Second Edition continues to be the most current, detailed, comprehensive tool for researchers and practitioners working with soil.
Learn to use some of the most exciting and powerful tools to deliver world-class quality software with continuous delivery and DevOps About This Book Get to know the background of DevOps so you understand the collaboration between different aspects of an IT organization and a software developer Deploy top-quality software and ensure software maintenance and release management with this practical guide This course covers some of the most exciting technology available to DevOps engineers, and demonstrates multiple techniques for using them Real-world and realistic examples are provided to help you as you go about the implementation and adoption of continuous delivery and DevOps Who This Book Is For This course is for developers who want to understand how the infrastructure that builds today's enterprises works, and how to painlessly and regularly ship quality software. What You Will Learn Set up and familiarize yourself with all the tools you need to be efficient with DevOps Design an application that is suitable for continuous deployment systems with DevOps in mind Test the code using automated regression testing with Jenkins Selenium Managing the lifecycle of hosts, from creation to ongoing management using Puppet Razor Find out how to manage, use, and work with Code in the Git version management system See what traps, pitfalls, and hurdles to look out for as you implement continuous delivery and DevOps In Detail Harness the power of DevOps to boost your skill set and make your IT organization perform better. If you're keen to employ DevOps techniques to better your software development, this course contains all you need to overcome the day-to-day complications of managing complex infrastructures the DevOps way. Start with your first module – Practical DevOps - that encompasses the entire flow from code from testing to production. Get a solid ground-level knowledge of how to monitor code for any anomalies, perform code testing, and make sure the code is running smoothly through a series of real-world exercise, and develop practical skills by creating a sample enterprise Java application. In the second module, run through a series of tailored mini-tutorials designed to give you a complete understanding of every DevOps automation technique. Create real change in the way you deliver your projects by utilizing some of the most commendable software available today. Go from your first steps of managing code in Git to configuration management in Puppet, monitoring using Sensu, and more. In the final module, get to grips with the continuous delivery techniques that will help you reduce the time and effort that goes into the delivery and support of software. This Learning Path combines some of the best that Packt has to offer in one complete, curated package. It includes content from the following Packt products: Practical DevOps by Joakim Verona DevOps Automation Cookbook by Michael Duffy Continuous Delivery and DevOps : A Quickstart Guide - Second Edition by Paul Swartout Style and approach This course is an easy to follow project based guide for all those with a keen interest in deploying world-class software using some of the most effective and remarkable technologies available.
Whether you are a novice or an expert in the darkroom, the second edition of The Elements of Black-and-White Printing will give you the tools necessary to control your print making. You will learn the proper techniques for exposing a print, how to choose the correct paper contrast, and ways to find the best combination of paper and developer for your images. In addition to explaining the procedures, this unique book contains exercises that help you calibrate these procedures with your own equipment with the materials you prefer. Photographers will find this book an essential resource in the darkroom. Elements of Black-and-White Printing will help you learn how to choose the right exposure and contrast for your negative; select papers, developers, and toners that complement each other; print negatives with extreme contrast ranges; salvage seemingly hopeless negatives and prints; print, develop, and store negatives and prints for maximun life; display your photographs in a way that enhances their message; properly align your enlarger; and more. New material on darkroom safety and working with chemicals Addresses practical concerns of photographers who are using complex mixtures Safe disposal methods for darkroom chemicals and wastes
With this book you will learn in a step-by-step manner and build solutions from the ground up using Mule ESB. Each tak is well illustrated through recipes and the code contained in the examples is very engaging.This book targets Java developers, architects, and IT managers who want to learn MuleESB and get solutions to their Enterprise and Web Service problem. This book requires familiarity with Java but no previous exposure to Mule or other ESBs.