How to pass parameter to Jbehave lifecycle

578 Views Asked by At

Can i pass parameter to Jbehave life cycle? Like the below?

Lifecycle:
Before:
Given I have logged in as <user>

Thanks!

1

There are 1 best solutions below

0
On BEST ANSWER

Sure you could, you can define multiple meta tags for predefined parameters as below.

Lifecycle:
Meta:
@param 1 2 3
Before:
Given I have logged in as <param>

Fetch the meta tag filer from the run time to select your preferred parameter.