No, that's currently not supported. Please raise a JIRA issue for this.

On 06/04/2015 19:35, Patel, Nikunj (GE Healthcare) wrote:

Thanks Mauro. I was able to implement custom html output.

One more question- I want to print some items (i.e- browser name, build ) from our .properties files in to this HTML report. Is it possible to define variables from .properties file or java class to ftl template?

*From:*Mauro Talevi [mailto:mauro.tal...@aquilonia.org]
*Sent:* Tuesday, March 31, 2015 3:10 AM
*To:* dev@jbehave.codehaus.org
*Subject:* Re: [jbehave-dev] Additional info in HTML report

That's because the html output is configured in the CustomHtmlOutput class.

Follow the example, it shows you how to configure the custom html output template.

On 30/03/2015 21:57, Patel, Nikunj (GE Healthcare) wrote:

    Thanks Mauro.

    I am following below link for custom template but having issue
    with location.

    
https://github.com/jbehave/jbehave-core/blob/master/examples/core/src/main/java/org/jbehave/examples/core/CustomCoreStories.java

    Currently, I have custome files under  src/main/java/ftl  and
    using below to call it but doesn’t seem to be working? Getting
    file not found.

    viewResources.put("reports", " ftl/custom-html-output.ftl");

    where should I put this custom report file?

    Thanks,

    Nikunj

    *From:*Mauro Talevi [mailto:mauro.tal...@aquilonia.org]
    *Sent:* Monday, March 30, 2015 12:37 PM
    *To:* dev@jbehave.codehaus.org <mailto:dev@jbehave.codehaus.org>
    *Subject:* Re: [jbehave-dev] Additional info in HTML report

    The successful/failed information is implicit in the colour-coding
    - green for success and red for failure.

    If you want you can adapt your the html report template to
    prepend/append the words.    Look for macro called renderStep.

    Cheers

    On 30/03/2015 19:23, Patel, Nikunj (GE Healthcare) wrote:

        Hi,

        I would like know if there is a way to add additional logging
        in HTML report specially for successful steps. We are required
        to provide objective evidence in test results and as part of
        it we are thinking to add “PASSED” or “SUCCESS” before/after
        each successful step.

        What do you suggest to achieve above goal?

        Approaches I took so far:

        1. I tried it below class which is writing info in log4j.txt
        file but I really want add info in HTML report.

        cid:image001.png@01D06ADF.46CEBEB0

        2.I am thinking about creating custom freemarker template
        using jbehave-html-output.ftl but not sure it will work.

        Thanks,

        Nikunj


Reply via email to