Cucumber with the Java-Build Automation Framework with Minimal Code

Video description

Do you want to learn the lifesaver tool of the Quality Assurance (QA) industry in developing test frameworks with minimal programming knowledge? This course teaches you how to use the Cucumber framework to automate test cases for testing applications.

The course starts with an introduction to Cucumber and Gherkin syntaxes and takes you through the process of installing Cucumber on your machines. Next, you will l understand the Cucumber framework and learn how to reuse the code with regular expressions. Moving along, you will learn to perform data-driven testing with Cucumber and use hooks to manage the code workflow. Next, you will learn to generate reports for Cucumber tests and integrate the Cucumber framework with Maven, Jenkins, and Selenium. Finally, you will learn to use Jenkins to run the project and get a detailed understanding of the Git version control system.

By the end of this course, you will have mastered the concepts of the Cucumber framework needed to develop a test framework for testing web, mobile, and API applications.

What You Will Learn

  • Learn the Gherkin syntaxes
  • Understand the terminologies of the Cucumber framework
  • Use regular expression for developing reusable components
  • Schedule tests from Jenkins for continuous integration
  • Integrate the Cucumber framework with Selenium, Maven, and Jenkins
  • Find out how to create Git configuration and repositories

Audience

If you are new to automation testing or an experienced Quality assurance (QA) professional looking to learn the Cucumber framework for automation testing, this course is for you. You will learn all the concepts of the Cucumber framework from scratch.R

About The Author

Rahul Shetty: Rahul Shetty is the founder and trainer at Rahul Shetty Academy. He is a passionate software tester and has 13 years of rich experience in the IT industry. He has completed more than 300 offline training batches. Rahul has extensive knowledge in web automation testing, mobile automation testing, and API automation testing. He has also worked with various CMM-level organizations and managed the set-up of QA processes for projects.

Table of contents

  1. Chapter 1 : Introduction
    1. Introduction
    2. What is Gherkin syntax and How does it Work?
    3. Understanding Cucumber Scenario Usage
    4. Feature Files and Step Definition Importance in Cucumber
  2. Chapter 2 : Cucumber Installation
    1. Important Player Tips for Best Learning Experience
    2. Installing Java and Configuring in System Variables
    3. Cucumber Project Creation Template
    4. Understanding Cucumber Dependencies
  3. Chapter 3 : Getting Started with the Cucumber Framework
    1. Understanding the Terminologies of Automation
    2. Mapping Step Definitions to Feature Files
    3. Tidy Gherkin Plug-in to Generate Step Definitions
    4. Running Tests with Test Runner
  4. Chapter 4 : Code Reusability with Regular Expressions
    1. Importance of Regular Expressions in Feature Files
    2. Reusing Functions with Different Data
  5. Chapter 5 : Data-driven Testing with Cucumber
    1. Importance of a Data Table for Data-driven Testing
    2. Parameterizing Test Runs with Examples Keyword
  6. Chapter 6 : Cucumber - Core Framework Features
    1. Tagging Feature to Control Test Cases
    2. Importance of the Background Keyword in Cucumber Scenarios
  7. Chapter 7 : Setup and Teardown for Cucumber Tests
    1. Using Hooks in Setting Up Teardown and Setup Scripts
    2. Using Background and Hook Together for Robust Tests Building
  8. Chapter 8 : Cucumber Framework Reports and Test Runner Configurations
    1. Generating Reports of Cucumber Scenarios
    2. Importance of Attributes in Cucumber Options
    3. Addressing Common Problems with Cucumber Features
  9. Chapter 9 : Maven and Jenkins
    1. Importance of Maven in Framework Development
    2. Installing and Configuring Maven
    3. Understanding Terminologies of Maven
    4. Creating Maven Project and Importing it to Eclipse
    5. Understanding the Project Object Model (POM.xml) File and its Dependencies
    6. Importance of the SureFire Plug-in in Executing Tests
    7. Importance of Jenkins in Test Frameworks
    8. Installing and Configuring Jenkins
    9. Configuring Jenkin Settings and Workspace
  10. Chapter 10 : Integrating the Cucumber Framework with Jenkins
    1. Running the Cucumber Project from Maven
    2. Scheduling the Project from Jenkin Job
  11. Chapter 11 : Best Practices for Integrating Selenium with the Cucumber Framework - Part 1
    1. Getting Selenium Dependencies into the Cucumber Framework
    2. Web Applications to Practice Selenium Automation
    3. Test Case 1 - Automate Selenium Test Case with Step Definition Implementation
    4. Test Case 2 - Automate Selenium Test Case with Step Definition Implementation
    5. Centralizing the WebDriver Object for Accessibility across the Cucumber Framework
    6. Setting up Global Properties to Drive Data in the Cucumber Framework
    7. Implementing Page Object Design Pattern to Tests
    8. Making the Driver Accessible to Multiple Step Definition Files
    9. Parameterizing Selenium Tests with a Scenario Outline
  12. Chapter 12 : Best Practices for Integrating Selenium with the Cucumber Framework - Part 2
    1. Passing Cucumber Options from Command Line Arguments
    2. Creating Parameterized Jenkins Job for Selenium Cucumber Tests
  13. Chapter 13 : Git – A Version Control System
    1. Introduction to Git
    2. Importance of GitHub and its Uses
    3. Creating Git Configuration and Repositories
    4. Pushing Code to a Remote Repository
    5. Understanding Staging and Commit in Git
    6. Adding Remote Repository and Pushing the Committed Code
    7. End-to-End Working Example on Git Commands – Part 1
    8. End-to-End Working Example on Git Commands – Part 2
    9. Importance of Branching in Git
    10. Merging the Working Branch into Master
    11. Resolving Merge Conflicts with Git

Product information

  • Title: Cucumber with the Java-Build Automation Framework with Minimal Code
  • Author(s): Rahul Shetty
  • Release date: April 2018
  • Publisher(s): Packt Publishing
  • ISBN: 9781789349313