How to reuse/re-purpose existing steps?


Reuse/re-purpose existing steps in your code by using the pipe delimiter.

@Then(“^(I search for and select an existing user|I validate a user has been created)$”)

– Use this sparingly and make your BDD’s more readable.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s