There is no explicit mechanism to pass objects from step to step.

You need to use member variables in the steps class to hold the result, or some other API for the same result.

Cheers

On 11/06/2013 19:16, Luigi Suardi wrote:

Hi there,

I am developing BDD tests for a REST interface. I have a story that creates an object with POST and then a story that deletes the same object using DELETE operation. The delete story needs the object ID that is generated by the post story. Is there a way for me to return this ID from the POST story and pass it to the DELETE story? There should be a way for the story writer to refer to the object created by the POST story while writing the DELETE story.

Hope it makes sense.

Thanks.

Luigi Suardi

PROS


Reply via email to