There is nothing that stops from configuring both aspects in a single
class.   They have been separated in the examples for illustrative
purposes.

Here's how you can localised reports in your langugage:

http://jbehave.org/reference/stable/stories-in-your-language.html

BTW,  you should consider moving to 3.0, as the configuration is much
less inheritance-centric than 2.x.

On 14/09/2010 16:05, Diogo Luis Andrade Silva wrote:
> Hi,
>  
>   I used your examples: ItTraderScenario.java, to translate the
> scenarios for my language and TraderScenario.java to generate an html
> report. I can use them separately just extending one of them, but I'd
> like to have only ONE class that generate a html report AND translate
> the scenarios file, so I could write the scenarios in my language and
> have a report at the end of the execution of the test. Using these two
> classes OR I write the scenarios in my language OR I get the html
> report at the end.
>  
> Thanks,
> Diogo Luis Andrade Silva
>  
>
> ------------------------------------------------------------------------
> *From:* Mauro Talevi [mailto:[email protected]]
> *Sent:* segunda-feira, 13 de setembro de 2010 19:38
> *To:* [email protected]
> *Subject:* Re: [jbehave-user] HTML Report in other language
>
> Hi,
>
> not really understanding your use case.   Could you elaborate on it?
>
> On 13/09/2010 21:50, Diogo Luis Andrade Silva wrote:
>> Hi,
>>  
>>   I'm using JBehave 2.5.9 and followed the examples to generate a
>> html report and to change the language in the stories, creating two
>> classes that extends from JUnitScenario, one for each case, but I'd
>> like to join them in only one class to use both at the same time. Can
>> anyone help? Any example of them both together working?
>>  
>> Thanks,
>> Diogo Luis Andrade Silva
>

Reply via email to