eBooks-it.org Logo
eBooks-IT.org Inner Image

Application Testing with Capybara

Application Testing with Capybara Image

Book Details:

Publisher:Packt Publishing
Series: Packt
Author:Matthew Robbins
Edition:1
ISBN-10:1783281251
ISBN-13:9781783281251
Pages:104
Published:Sep 23 2013
Posted:Nov 19 2014
Language:English
Book format:PDF
Book size:7.51 MB

Book Description:

Confidently implement automated tests for web applications using Capybara Overview Learn everything to become super productive with this highly acclaimed test automation library Using some advanced features, turn yourself into a Capybara ninja! Packed with practical examples and easy-to-follow sample mark-up and test code In Detail Everybody understands why implementing automated tests is important but at the same time developing them can be costly and time consuming, and tests can be also be fragile and prone to false positives. By using Capybara, you can develop robust tests quickly and run them in multiple drivers ensuring greater re-use; Capybaras API also extends the human readable style made popular by frameworks such as Cucumber and RSpec. "Application Testing with Capybara" takes you from installing the gem to getting up and running with a Google Search scenario within the first two chapters. We then look deeper into the API, using Rack-Test for applications built with Rails or Sinatra and see how to test handle Asynchronous JavaScript and black box components such as Flash. Finally, we consider some advanced topics such as looking at alternatives to Selenium and accessing the native driver directly. This book takes you from the basics of installing Capybara, through its API and onto advanced topics. You will learn how to use Capybaras extensive API to interact with your application, covering topics such as navigation, filling in forms, and querying your page for expected content. Beyond this we will consider why Capybara is so well suited to testing applications written in frameworks such as Rails and Sinatra. We will look at strategies for validating seemingly untestable components such as HTML5 or Flash by building out a testable API. Finally we will turn you into a Capybara ninja by covering advanced topics such as accessing functionality in the base driver, advanced driver configuration, and alternative flavours of drivers outside Selenium and Rack-Test. What you will learn from this book Install and configure Capybara Use Capybara and Cucumber to test scenarios Exploit Capybaras API for interacting with web pages Employ Capybara to test Rack applications implemented using Rails or Sinatra Handle asynchronous JavaScript Apply Capybara to test black box components such as Flash or HTML5 Canvas, Audio, and Video Practise Capybara outside Cucumber in bespoke frameworks Use Capybara with popular Ruby test frameworks Explore advanced driver configuration Work with alternative drivers such as Capybara-Webkit and Capybara-Mechanize Approach Start performing integration testing with Capybara immediately. This book will get you up and running quickly and assumes no knowledge or experience of the technology. Who this book is written for This book is for developers and testers who have had some exposure to Ruby but who want to know how to test their applications using Capybara and its compatible drivers, such as Selenium-Webdriver and Rack-Test. The examples are deliberately kept simple and example HTML mark-up is always included so that you can copy the examples to practice and experiment on your own machine.

Download Link:

Related Books:

Android Application Testing Guide

Android Application Testing Guide Image
Adroid Application Testing Guide is a highly detailed book which gives step-by-step examples for a great variety of real-world cases, providing professional guidelines and recommendations that will be extremely valuable for optimizing your development time and resources. In the chapters you will find an introduction to specific testing techniques, and tools for specific situations. If you are an Android developer looking to test your applications or optimize your application development process, then this book is for you. No previous experience in application testing is required....

Scripted GUI Testing with Ruby

Scripted GUI Testing with Ruby Image
Scripted GUI Testing with Ruby is a practical, quick-moving tutorial based on real life, and real-world GUI applications. Right out of the gate you'll start working with code to drive a desktop GUI. You'll discover the kinds of gotchas and edge cases that don't exist in simple, toy programs. As you add more tests, you'll learn how to organize your test code and write lucid examples. The result is a series of "smoke tests" team will run on Continuous Integration servers. Next, we'll explore a variety of different testing tips and tricks. You'll employ a series of increasingly random and punishing test monkeys to try to crash programs. Table-driven techniques will show you how to check dozens of different input combinations. See how to use lo...

Web Penetration Testing with Kali Linux

Web Penetration Testing with Kali Linux Image
A practical guide to implementing penetration testing strategies on websites, web applications, and standard web protocols with Kali Linux Overview Learn key reconnaissance concepts needed as a penetration tester Attack and exploit key features, authentication, and sessions on web applications Learn how to protect systems, write reports, and sell web penetration testing services In Detail Kali Linux is built for professional penetration testing and security auditing. It is the next-generation of BackTrack, the most popular open-source penetration toolkit in the world. Readers will learn how to think like real attackers, exploit systems, and expose vulnerabilities. Even though web applications are developed in a very secure environment and have an ...



2007 - 2021 © eBooks-IT.org