user2379867
user2379867

Reputation:

Is there a way to get the feature name during runtime using cucumber + ruby

In my cucumber+watir+ruby tests I have the results of each going to results.html. I would like to use the feature name instead.

Something like:

<%= feature_name %>.html

Is this possible?

Upvotes: 1

Views: 1167

Answers (1)

Bala
Bala

Reputation: 11244

scenario.feature.name 
scenario.scenario_outline.feature.name

This should get you the name

Upvotes: 1

Related Questions