class behave.runner.Context(runner)
Hold contextual information during the running of tests.
This object is a place to store information related to the tests you’re running. You may add arbitrary attributes to it of whatever value you need.
During the running of your tests the object will have additional layers of namespace added and removed automatically. There is a “root” namespace and additional namespaces for features and scenarios.
--
You received this message because you are subscribed to the Google Groups "Behaviour Driven Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to behaviordrivendeve...@googlegroups.com.
To post to this group, send email to behaviordriv...@googlegroups.com.
Visit this group at http://groups.google.com/group/behaviordrivendevelopment.
For more options, visit https://groups.google.com/d/optout.
I think you may have one of those rare cases in which two "when's" are applicable. I always try to describe scenarios from a user's perspective, but when you have an interaction between two users (where a system interaction or the passing of time may count) then it's sometimes better to model it as two "whens".
Given my system is ready
When Ollie Ops starts the server
And Ursula User starts the app
Then Ursula should be connected via the right port
And <she should see the thing she connected for>.
Phrasing it from 3rd person perspective on can help clarify this. You can always make these into 2 scenarios, but if starting the server has no value without connecting the app then I wouldn't bother.
Not all BDD tools support two "when's". I find this very occasionally annoying.
Cheers,
Liz.