Cucumber Cookbook
eBook - ePub

Cucumber Cookbook

Shankar Garg

Share book
  1. 162 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Cucumber Cookbook

Shankar Garg

Book details
Book preview
Table of contents
Citations

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on ā€œCancel Subscriptionā€ - itā€™s as simple as that. After you cancel, your membership will stay active for the remainder of the time youā€™ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlegoā€™s features. The only differences are the price and subscription period: With the annual plan youā€™ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, weā€™ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Cucumber Cookbook an online PDF/ePUB?
Yes, you can access Cucumber Cookbook by Shankar Garg in PDF and/or ePUB format, as well as other popular books in Computer Science & Quality Assurance & Testing. We have over one million books available in our catalogue for you to explore.

Information

Year
2015
ISBN
9781785286001
Edition
1

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 ...

Table of contents