Hi Mauro and JBehave devs, first of all thank you for your prompt reply.
Your suggestion is really great for our purpose because, as you write in the previous e-mail, we want to submit stories execution status to the Rally (rallydev.com) database and also create the HTML reports in the continuous integration filesystem. The test case information result that is currently being inserted is: Test Case ID: identifier (string) Method signature: ClassName.methodName (string) Status: status (String) Exception Msg: optional (String) Defect ID: optional (String) Build No: 0.1-SNAPSHOT-number (String) It is possible to insert the Test result which is a set of steps. How can I add a new ViewGenerator implementation? Do I need to read the scenarios results from file before database update or do I have access to the execution context with all story (scenarios) execution status? The second option is better. I hope you can support us with this issue. Cheers. Date: Sat, 25 May 2013 21:42:32 +0200 From: mauro.tal...@aquilonia.org To: dev@jbehave.codehaus.org Subject: Re: [jbehave-dev] Submit reports to database Hi, To plugin a different kind of report generation, your main interface is ViewGenerator, of which you can write a database-centric implementation. You can start from the template-based implementation. https://github.com/jbehave/jbehave-core/blob/master/jbehave-core/src/main/java/org/jbehave/core/reporters/TemplateableViewGenerator.java Now this assumes that you just want to store the final view reports in a db, but you're still happy to have the single raw story reports being written to filesystem. Feel free to share your usecase. Maybe it's sufficiently generic that we may add support for it. Cheers On 25/05/2013 21:32, joao machado wrote: Hi all, I would like to know how to plug-in into JBehave an module that submit story/stories reports to the Database after the report generation. Any suggestion? Thanks in advance.