Behavior driven automation framework using JBehave ,Selenium and ExtentAPI
In this session, you'll learn about how to create an automation framework with Jbehave, selenium, and ExtentAPI. We will learn how to write test scenarios using Gherkin syntax. Once our scenarios are ready, we will learn how to write glue code for the same, Selenium page object model, how to create an internal DSL to simplify the test code and make it understandable to everyone and reporting of test case execution using ExtentAPI. We will also have a look on how to run the tests using remote web driver and Jenkins.
Outline/Structure of the Demonstration
- What is Behavior-driven development and Why is it beneficial?
- Gherkin syntax.
- What is JBehave?
- What is ExtentAPI?
- Why we need a test automation framework?
- Writing test scenarios.
- Test framework design
- JBehave annotations.
- Selenium web driver API.
- How to create an internal DSL?
- How to write glue code?
- How to integrate ExtentAPI for reporting?
- Execution of tests
- Execute tests manually.
- Execute tests via Jenkins.
- Attendees will learn how to create a custom test automation framework.
- How can reusable component minimize the lines of code?
- Getting started with Jenkins.
Prerequisites for Attendees
- Selenium web driver API and intermediate java knowledge.
- Laptop with Java 8 and maven version 3 installed.