Yes, the idea is that the timestamps are available in the xref and can be rendered into an html report. One will be provided out of the box but it'll be much easier to customise and even extend.

On 19/02/2014 15:44, Hans Schwäbli wrote:
I tried it now on 4.0 beta 4.
The precondition seems to use org.jbehave.core.reporters.StoryReporterBuilder.withCrossReference(new CrossReference()) when creating the org.jbehave.core.configuration.Configuration. Otherwise the two files xref.json and xref.xml are not created. But it is not how I thought it would be. I expected that I see the timestamps in the story report HTML. But there are no timstamps there. What is your concept behind the timestamps? Do I have to transform the xref.xml file myself into a HTML file in order to see the timestamps? By the way, my LocalFrameContextView is not shown anymore while executing the story with JBehave 4. Has something changed with how the StepMonitor is configured or something like that? It seems to use MatchingStepMonitor or NullStepMonitor instead of SeleniumStepMonitor.


2014-02-19 9:24 GMT+01:00 Mauro Talevi <[email protected] <mailto:[email protected]>>:

    The step timings is a functionality already available in 4.x
    http://jira.codehaus.org/browse/JBEHAVE-778

    In 3.x it'd be rather complicated to do.   Can you take the latest
    4.0 beta for a spin?


    On 18/02/2014 14:46, Hans Schwäbli wrote:

        I would like to add timestamps to the report logging,
        especially for the steps so that I can see when a step has
        started and how long it took to finish.
        What is the recommended way to accomplish this?
        Someone in this mailing list wrote to modify the Freemarker
        template which JBehave uses. But that solution seems not
        maintainable to me since I don't want to deal with that
        complexity just to add some timestamps to the report. I would
        rather don't use timestamps if I would have to touch the
        Freemarker templates of JBehave.



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

    http://xircles.codehaus.org/manage_email




Reply via email to