Hi Luigi,

You need to store created resources uris than use an @AfterStory to clean
them
You may take a look at this class which does exactly what you want
https://github.com/lgueye/jbehave-poc/blob/master/src/test/java/org/diveintojee/poc/jbehave/stories/steps/AuthorizationSteps.java

Cheers


Cordialement/Regards,

Louis GUEYE
linkedin <http://fr.linkedin.com/in/louisgueye> |
blog<http://deepintojee.wordpress.com/>|
twitter <http://twitter.com/#%21/lgueye>


2013/6/11 Luigi Suardi <[email protected]>

>  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