I am trying JBehave and I need to understand why maintains data (instance 
variables from the steps) across scenarios (testCases -> Given/When/Then).

I mean, is it possible to clear the instance variable maintained during the 
execution of each scenario (Given/When/Then) without using @BeforeScensario?

Example:

public class GenerateReportSteps {

private String a;private String b;private String c;
@BeforeScenariopublic void beforeEachScenario() {
    a = null;
    b = null;
    c = null;}

.. .. }

If I'm not wrong, I understand that each scenario (Given/When/Then) have to 
be atomic, so the framework JBehave should initialize to null the instance 
variables before run each scenario per user story.

Thanks.-

-- 
You received this message because you are subscribed to the Google Groups 
"JBehave User" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jbehave-user+unsubscr...@googlegroups.com.
To post to this group, send an email to jbehave-user@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/jbehave-user/6806a298-8b2b-4ae3-a35b-bdad1a644d25%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to