>
> You can split each scenario into two scenarios, one for preparing input 
>> data, and second for checking results, and use metafilters to filter the 
>> scenarios to be run, for example:
>>
> Story - Checking the transaction Id=123

Scenario: Preparing input data for transaction Id=123

@Meta: build_batch

Given add transaction Id=123 to the batch with values X=33 and Y=66


Scenario: Checking results of  transaction Id=123 after running the bath 

@Meta: checking_results

Then a results file constains a result R=99 for transaction Id=123


Now you can run all scenarios in two phases (or three phases):
- in the first phase using meta-filter "+build_batch" - in this phase only 
the first scenario will be executed, and input data from all scenarios will 
be collected in the batch file
- then you can submit the batch file for the processing to your system, and 
then receive all results from it and store the results in a file
- and then run the second phase using meta-filter "+checking_results" - 
JBehave will run only the second story from all scenarios

Please see this link for 
detals: http://jbehave.org/reference/latest/meta-filtering.html

-- 
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 [email protected].
To post to this group, send an email to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/jbehave-user/6d0d91ab-f6cd-4047-b3f9-215892e02a18%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to