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
[jbehave-dev] Additional info in HTML report
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
RE: [jbehave-dev] Additional info in HTML report
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 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