1

I know we can call one scenario into other with syntax

* def ret = call read('fileName.feature@scenarioName')

This is fine, but if i wish to call other scenario from same feature file, it doesn't makes sense to pass file name. I would like some relative path like feature to avoid maintenance if someone renames file.

So my question - is it possible to call other scenario in same feature file without mentioning feature file name?

1 Answer 1

1

No this is absolutely not possible. Also, this will confuse the hell out of people trying to read your test-suite in the future.

Note that you can use variables (fixed in 0.9.6.RC1)

* def common = 'common.feature'
* def ret = call read(common + '@scenarioName')
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.