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.
Never Miss an Articles from us.