- ReportsCount is accessible via the ViewGenerator:

        ViewGenerator viewGenerator = configuration().viewGenerator();
viewGenerator.generateReportsView(outputDirectory, formats, viewResources);
        ReportsCount count = viewGenerator.getReportsCount();

- The reports are not yet accessible. Please raise a jira issue, also detailing the the enhancements required to the stats.

On 10/08/2012 19:16, Jorge Pombar wrote:

2 follow up questions:

-How can I access the ReportsCount class. Some sample code would be great!

-"We expose the Reports themselves...". Is the suggestion to write a script to parse "...stats.html" to get the stats required? I was thinking about doing that as a stop gap solution for now. I was hoping to do it as part of the JBehave execution so I can change the reports template slightly and add this info in them. Any sample code out there on how to accomplish this?

I would be great if you could add the scenarios x examples count to the ReportsCount. Seems to me like this would be the best long term solution.

Thanks,

Enrique

*From:*Mauro Talevi [mailto:[email protected]]
*Sent:* Friday, August 10, 2012 1:35 AM
*To:* [email protected]
*Subject:* Re: [jbehave-user] Get access to PostStoryStatisticsCollector

The reports stats are read in the TemplateableViewGenerator and encapsulated in the Report class. But only the ReportsCount class is exposed for the moment. We expose the Reports themselves and you could get the stats required, or we could add the scenarios x examples count the the ReportsCount.

On 09/08/2012 23:36, Jorge Pombar wrote:

    Hello, I'm trying to get the count of how many "test cases" ran

        testCases = scenarios x examples

    I can see all of this info in the "...stats.html". Looks like the
    class PostStoryStatisticsCollector has this information. I'm
    wondering how can I get access (and where in the code/execution)
    to this class?

    I'm I going the right way? Or is there a better way to achieve this?

    Thanks,

    Enrique


Reply via email to