Cucumber Cookbook
eBook - ePub

Cucumber Cookbook

Shankar Garg

Buch teilen
  1. 162 Seiten
  2. English
  3. ePUB (handyfreundlich)
  4. Über iOS und Android verfügbar
eBook - ePub

Cucumber Cookbook

Shankar Garg

Angaben zum Buch
Buchvorschau
Inhaltsverzeichnis
Quellenangaben

Häufig gestellte Fragen

Wie kann ich mein Abo kündigen?
Gehe einfach zum Kontobereich in den Einstellungen und klicke auf „Abo kündigen“ – ganz einfach. Nachdem du gekündigt hast, bleibt deine Mitgliedschaft für den verbleibenden Abozeitraum, den du bereits bezahlt hast, aktiv. Mehr Informationen hier.
(Wie) Kann ich Bücher herunterladen?
Derzeit stehen all unsere auf Mobilgeräte reagierenden ePub-Bücher zum Download über die App zur Verfügung. Die meisten unserer PDFs stehen ebenfalls zum Download bereit; wir arbeiten daran, auch die übrigen PDFs zum Download anzubieten, bei denen dies aktuell noch nicht möglich ist. Weitere Informationen hier.
Welcher Unterschied besteht bei den Preisen zwischen den Aboplänen?
Mit beiden Aboplänen erhältst du vollen Zugang zur Bibliothek und allen Funktionen von Perlego. Die einzigen Unterschiede bestehen im Preis und dem Abozeitraum: Mit dem Jahresabo sparst du auf 12 Monate gerechnet im Vergleich zum Monatsabo rund 30 %.
Was ist Perlego?
Wir sind ein Online-Abodienst für Lehrbücher, bei dem du für weniger als den Preis eines einzelnen Buches pro Monat Zugang zu einer ganzen Online-Bibliothek erhältst. Mit über 1 Million Büchern zu über 1.000 verschiedenen Themen haben wir bestimmt alles, was du brauchst! Weitere Informationen hier.
Unterstützt Perlego Text-zu-Sprache?
Achte auf das Symbol zum Vorlesen in deinem nächsten Buch, um zu sehen, ob du es dir auch anhören kannst. Bei diesem Tool wird dir Text laut vorgelesen, wobei der Text beim Vorlesen auch grafisch hervorgehoben wird. Du kannst das Vorlesen jederzeit anhalten, beschleunigen und verlangsamen. Weitere Informationen hier.
Ist Cucumber Cookbook als Online-PDF/ePub verfügbar?
Ja, du hast Zugang zu Cucumber Cookbook von Shankar Garg im PDF- und/oder ePub-Format sowie zu anderen beliebten Büchern aus Computer Science & Quality Assurance & Testing. Aus unserem Katalog stehen dir über 1 Million Bücher zur Verfügung.

Information

Jahr
2015
ISBN
9781785286001

Cucumber Cookbook


Table of Contents

Cucumber Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Writing Feature Files
Introduction
Writing your first Feature file with one Scenario
How to do it…
How it works…
Feature
Scenarios
Steps
Creating Scenarios with different Steps
How to do it…
How it works…
Creating a Scenario with the And and But keywords
Getting ready…
How to do it…
How it works…
Writing a Feature file with multiple Scenarios
How to do it…
How it works…
Adding Backgrounds to Feature files
Getting ready
How to do it…
How it works…
Sending multiple arguments in Steps
How to do it…
How it works…
Using complex data types to store data
Getting ready
How to do it…
How it works…
Implementing Scenario Outlines
Getting ready
How to do it…
How it works…
Creating a Feature file in a language other than English
How to do it…
How it works…
Combining Scenarios, Backgrounds, and Scenario Outlines
How to do it…
How it works…
2. Creating Step Definitions
Introduction
Creating your first Step Definitions file
How to do it…
How it works…
Step Definitions
Undefined Steps
Pending Steps
Implemented Steps
Identifying Duplicate and Ambiguous Step Definitions
How to do it…
How it works…
Using Regular Expressions to optimize Step Definitions
How to do it…
How it works…
Using Optional Capture and Noncapture Groups
How to do it…
How it works…
Transforming Data Tables to parse the test data
How to do it…
How it works…
Implementing data table diffs to compare tables
How to do it…
How it works…
Using Doc Strings to parse big data as one chunk
How to do it…
How it works…
Combining Doc Strings and Scenario Outlines
How to do it…
How it works…
Defining String transformations for better conversions
Getting ready
How to do it…
How it works…
3. Enabling Fixtures
Introduction
Tagging
Getting ready
How to do it…
How it works…
ANDing and ORing Tags
Getting ready
How to do it…
How it works…
Adding Hooks to Cucumber code
Getting ready
How to do it…
How it works…
There's more…
Tagging the Hooks
Getting ready
How to do it…
How it works…
ANDing and ORing tagged Hooks
Getting ready
How to Do it
How it works…
4. Configuring Cucumber
Introduction
Integrating Cucumber with JUnit
How to do it…
How it works…
Overriding the Cucumber Options
How to do it…
How it works…
Running Strict and Running Dry
How to do it…
How it works…
Configuring the Cucumber Console output
How to do it…
How it works…
Directing the Cucumber output to a file
How to do it…
How it works…
Configuring the naming conventions
How to do it…
How it works…
5. Running Cucumber
Introduction
Integrating Cucumber with Maven
Getting ready
How to do it…
How it works…
Running Cucumber from the Terminal
How to do it…
How it works…
Overriding Options from the Terminal
How to do it…
How it works…
Integrating Cucumber with Jenkins and GitHub
Getting ready
How to do it…
How it works…
Running Cucumber test cases in parallel
How to do it…
How it works…
6. Building Cucumber Frameworks
Introduction
Building a Web Automation framework
Getting ready
How to do it…
How it works…
Building a Mobile Automation framework
Getting ready
How to do it…
How it works…
Building a REST Automation framework
How to do it…
How it works…
Index

Cucumber Cookbook

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: May 2015
Production reference: 1260515
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78528-600-1
www.packtpub.com

Credits

Author
Shankar Garg
Reviewers
John Kamenik
Nguyen Quang Phuong
Abhishek Yadav
Commissioning Editor
Priya Singh
Acquisition Editor
Larissa Pinto
Content Development Editor
Sriram Neelakantan
Technical Editors
Namrata Patil
Bharat Patil
Copy Editors
Puja Lalwani
Laxmi Subramanian
Project Coordinator
Vijay Kushlani
Proofreaders
Stephen Copestake
Safis Editing
Indexer
Rekha Nair
Graphics
Jason Monteiro
Production Coordinator
Melwyn D'sa
Cover Work
Melwyn D'sa

About ...

Inhaltsverzeichnis