Cucumber Feature Parameter Tutorial

We can use Feature files to pass in a Cucumber Feature Parameter. When writing Feature files there will be many moments where you will want to actually pass a value from your scenario and into your Java code step definitions. Passing a value from a Feature file and into a Java class can be achieved through Feature Parameters.

Cucumber Feature Parameter Video Tutorial

cucumber feature parameter

Direct Video Link

When trying to pass a value from your Feature file and into your Java class we can achieve this very easily by using regex in your Java code. This is a good trade off as this also great flexibility when trying to map one to one between Scenarios and step definitions.

Mo

I am a passionate tester, father, husband and gamer. I love to upload videos on my YouTube channel, write blogs about Software Testing and generally contribute back to the Software Testing world.

More Posts - Twitter - Facebook - Google Plus

Published by

Mo

I am a passionate tester, father, husband and gamer. I love to upload videos on my YouTube channel, write blogs about Software Testing and generally contribute back to the Software Testing world.

Leave a Reply