How to run jbehave script several times in a row

There is a JBehave script. For example, Given something a certain record in the database (inserts some record in the database) When a service performs an action (call some service)

Is there a way to run this script many times in a one-step run?

+6
source share
1 answer

Another approach:

Run jbehave scenario multiple times sequentially Narrative: In order to run jbehave scenario multiple times sequentially As a development team I want to use examples table Scenario: run jbehave scenario multiple times sequentially GivenStories: path/to/story/we/want/to/run/multiple/times/storyname.story Then some null step Examples: |x| |1| |2| ... ... ... |100000| 

If you do not want to copy / paste rows of the example table into the history, load the table from the file:

  Examples: /path/to/file/with/parameters/somefile.table 

For more information, see Loading Parameters from an External Resource .

+7
source

Source: https://habr.com/ru/post/979445/


All Articles