Hi,

        It is enough. Thank a lot for all.


Regards,
        
William Breternitz | analista de teste de software | Tel: +55 19 3794
1681Ramal: 1707 |  
Synchro Solução Fiscal – 18 anos | SPED | NFe | CTe | Classificação Fiscal

-----Mensagem original-----
De: Mauro Talevi [mailto:[email protected]] 
Enviada em: segunda-feira, 20 de setembro de 2010 06:10
Para: [email protected]
Assunto: Re: RES: [jbehave-user] Can I get scenario's title before test
start?

 Hi,

while this is a possible workaround, the @BeforeScenario was not really
intended for that purpose.

To report the current scenario the recommended way is to use the
reporters/monitors, which
one can decorate to add-on the selenium specific behaviour.

I've added an example of how to do this in JBehave 3.x:

http://git.codehaus.org/gitweb.cgi?p=jbehave-web.git;a=blob;f=examples/trade
r-runner-stories/src/main/java/org/jbehave/web/examples/trader/TraderWebStor
ies.java

An example using JBehave 2.x can be found here:

https://svn.codehaus.org/picocontainer/java/2.x/trunk/web/examples/ajax-emai
l/ajax-email-webapp/src/test/org/picocontainer/web/sample/ajaxemail/scenario
s/steps/AjaxEmailScenario.java

Cheers

On 16/09/2010 09:44, [email protected] wrote:
> The way I handle using the scenario name is to provide a Spring bean 
> (effectively a singleton that is created at system startup).  The 
> BeforeScenario annotated method calls a method on the bean to store the 
> current scenario name, and provides a method to use this name later.
>
> It's not an ideal solution, but it suffices for my needs.
>
>
> Rob
>
>
>
>
****************************************************************************
******* This e-mail and attachments are intended for the above name only and
may be confidential. If they have come to you in error, you must take no
action based on them, nor must copy or show them to anyone; please reply to
this e-mail and report the error. 
> Security warning: Please note that this e-mail has been created in the
knowledge that the internet is not a one hundred percent secure
communication medium. We advise that you understand and observe this lack of
security when e-mailing us. 
> Virus: Although we have taken steps to ensure that this e-mail and
attachments are free from any virus, we advise that in keeping with good
practice the recipient should ensure they are actually virus free. 
> If you have received this e-mail in error please notify:
[email protected]
> YELL ADWORKS is a business name of YELL MEDIAWORKS LIMITED
> Registered Office: Queens Walk, Oxford road, Reading, Berkshire, England,
RG1 7PT.
> Registered in England and Wales, registered number 06649631
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to