Book Image

Cucumber Cookbook

By : Shankar Garg
Book Image

Cucumber Cookbook

By: Shankar Garg

Overview of this book

Table of Contents (13 chapters)
Cucumber Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Building a Web Automation framework


Selenium is a Web Automation tool that has made life a lot easier for testers because of its capabilities and powers, and is the number one choice for testers to automate websites. That's the reason we have also chosen Selenium for our framework.

When we create a framework, we should keep in mind that adding new test cases and making changes to existing test cases should be fairly easy and simple.

Let's learn how we can create a robust Web Automation framework using Cucumber and Selenium, along with keeping maintainability and scalability in mind.

Getting ready

Install Firefox on your system as per the version supported by the latest Selenium version. For more information on Selenium and browser support, visit the web page at http://docs.seleniumhq.org/about/platforms.jsp.

How to do it…

Let's first understand the test case that we will use in this framework. We will test the login functionality of https://github.com/. The following is the test case flow:

  1. We...