Hi Graham,

no, there are no @Before/AfterStep annotations.

If you want to monitor the step execution, the recommend way is to implement your own StoryReporter. The whole step as text is passed to the different methods, depending on the execution status.

A DB-based implementation can then provide access to your log system.

Cheers

On 15/02/2012 11:36, Graham Abell wrote:
Hi,

Does anyone know if it's possible to create beforeStep(), afterStep() methods? how can I register methods like that to be called?

We're managing our logs in a DB so I basically want to be able to indicate in the logs that a step has started and therefore all logs below it belong to that step and then finish the step. So ideally I'd like to be able to pass the test of the step including any parameters for example,

@"when my order total is $value"
public void placeOrder(double value)
{
...
}

I'd like to be able to call:
createStepInLogs("when my order total is 50");

thanks!
graham


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to