Explain the programmatic lifecycle of jbehave?

Sharad Jaiswal
Sharad Jaiswal

Posted On: Feb 25, 2020

 

JBehave mainly supports two ways to control the lifecycle of a story.

Programmatic lifecycle controls are code-centric. It is best suited for technical instead of functional controls. The @BeforeScenario and @AfterScenario allow the corresponding methods to be executed before and after each scenario. The @AfterStory allows the settings of an optional outcome which specifies whether the method should be executed depending on the outcomes of the scenarios.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    JBehave Interview Questions

    Explain what is JBehave?

    JBehave is a software-based in java language for Behaviour Driven Development (BDD). It is developed to make practices such as test-driven development(TDD) and Acceptance-driven design(ATD) which are ...

    JBehave Interview Questions

    Enlist the major features of JBehave?

    The following are the features of Jbehave:It has the feature of Ant integration which gives its stories an advantage to run via an Ant task. User stories can be written in JBehave syntax and Ghe...

    JBehave Interview Questions

    List different typs of modules in JBehave?

    The following are the different types of modules in JBehave are:Game of life: used to verify multi-line scenarios behavior Gherkin: it verifies to pass gherkin based features Groovy: verifies gr...