TestingDocs.com
Software Testing website
  • JBehave
  • Selenium
  • Testlink
  • Maven
  • Git
  • RAPTOR
  • Questions

What is JBehave Framework?

Tweet
Pin it

Document Contents

  • Introduction
  • Overview of JBehave Framework
  • Write Stories
  • Map steps
  • Configure Stories
  • Run stories
  • View Run Reports
  • JBehave distributions

Introduction

In this post, we will discuss an overview of the JBehave framework with key steps involved. It is a framework for Behavior-Driven Development ( in short BDD)

Overview of JBehave Framework

First things first, BDD is an evolution of test-driven development (TDD) and acceptance-test driven design. It shifts the vocabulary from being test-based to behavior-based. ( https://www.testingdocs.com/what-is-behavior-driven-development-bdd/ 

 

JBehave Framework

Write Stories

Write Stories in Plain Text, Using BDD we can start defining the stories via scenarios that express the desired behavior in a plain text format.

Write_A_Story

 

Map steps

Map steps to Java POJO: JBehave maps textual steps to Java methods via Candidate steps. The scenario writer needs only to provide annotated methods that match, by regex patterns, the textual steps.

Configure Stories

Configure Stories: JBehave runs the stories with the Embedder, which provides an entry point to all of  JBehave’s functionality that is embeddable into launchers( Eclipse, IntelliJ IDEA, etc). The inject-able Embedder with an Embeddable which represents a runnable facade to Embedder runs the stories.

 

Configure_Stories_JBehave

 

Run stories

JBehave main design feature is to be embedded in different development environments (IDE’s ) such as Eclipse, IntelliJ, JUnit, Maven, etc. The JBehave core module contains support for running stories as JUnit tests.

 

Run_Stories

View Run Reports

After all the stories have run, we can view the reports under the project folder. The default path is target\jbehave\view folder.

 

JBehave distributions

The main distributions of JBehave are:

1.  JBehave Core
2. JBehave Web

 

 

 

JBehave Web is an extension of the Core distribution, providing support for web functionality.

 

JBehave Tutorials on this website can be found at:
https://www.testingdocs.com/jbehave-framework-tutorial/

For more details on the JBehave framework, visit the official JBehave website at:
http://jbehave.org

Related Posts

JBehave /

Cucumber Java BDD Selenium Framework

JBehave /

JBehave + Serenity Sample Project

JBehave /

Serenity BDD Automation Framework

JBehave /

Serenity Maven Artifacts

JBehave /

Introduction to Serenity BDD

Tag Cloud

Agile Appium Tutorials C++ Eclipse Tutorials Git Tutorials IntelliJ Tutorials Java Java Tutorial JBehave Jenkins Jira Cloud JUnit Tutorial Maven Object-oriented Flowchart Python Tutorials Raptor Flowcharts Selenium IDE TestLink Tutorials

Random Posts

  • TestLink Bitnami Cloud Image
    Overview In this tutorial, we will see the steps

    Read more

  • Code Coverage Tools
    Overview Let’s look at some of the code coverage

    Read more

  • pCloudy Continuous Testing Cloud
    Overview pCloudy is a continuous testing cloud

    Read more

Latest Tweets

Tweets by @TestingDocs

Back to Top

TestingDocs.com

  • Privacy Policy
  • Cookie Policy
  • JBehave
  • Selenium
  • Testlink
  • Maven
  • Git
  • RAPTOR
  • Questions
www.TestingDocs.com | All Rights Reserved