[ 
http://jira.codehaus.org/browse/JBEHAVE-390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=243739#action_243739
 ] 

Paul Hammant commented on JBEHAVE-390:
--------------------------------------

To reproduce, go to examples/trader-runner-webdriver change the steps class 
TraderWebSteps:

     @Given("user is on Home page")
     public void userIsOnHomePage(){        
        pages.home().open();        
        pages.home().open();
+        throw new RuntimeException("I cause the @AfterStories method to be 
bypassed");
     }


> browser not closing when done by @AfterStories
> ----------------------------------------------
>
>                 Key: JBEHAVE-390
>                 URL: http://jira.codehaus.org/browse/JBEHAVE-390
>             Project: JBehave
>          Issue Type: Bug
>          Components: Web Selenium
>    Affects Versions: web-3.1.1
>            Reporter: Paul Hammant
>
> PerStoriesWebDriverSteps has a before and after stories.  If there's a 
> WebDriver thrown exception (a derivative of RuntimeE), then the @AfterStores 
> annotated method is not called ..... and as such the browser frame is not 
> closed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

    http://xircles.codehaus.org/manage_email


Reply via email to