Search code examples
pythonbddlettuce

Lettuce BDD : How to refer scenarios?


I am using Lettuce BDD framework for python, and I am wondering how to run one scenario from within another scenario..

For example, say there is a "registration" scenario that establishes some pre-conditions which will be used by a subsequent scenario (say "action" scenario") - how do I refer and call the "registration" scenario from "action" scenario?


Solution

  • There is a "behave_as" feature for Lettuce which should do this. Though there were some bugs with it last time I tried to use it. May be fixed now. I opened a bug on it with Gabriel, the author.