title: JUnit, Selenium and tearDown
body: <p>Such a junit : </p>
  
  <pre><code>    @Test
      public void testA {
  //some code here...
  }
  
      @Test
      pulic void testB {
  //some code here...
  }   
      @After
      public void closeBrowsers() throws Exception {
  selenium.stop();
  }
  </code></pre>
  
  <p>Here is the question : closeBrowsers() method called after every test method; in that case it is called twice and i got  "Wrong test finished." from JUnit. I need a junit method/annotation which will be called after all tests finised (just called once after all tests finished), is it possible ?</p>
  
  <p>Also i tried to check if selenium is up or not in closeBrowsers() but no way i couldn't find
  any solution.</p>
  
  <p>P.S : I 've read this one : <a href="https://stackoverflow.com/questions/1317844/how-to-close-a-browser-on-a-selenium-rc-server-which-lost-its-client">How to close a browser on a selenium RC server which lost it&#39;s client</a></p>
  
  <p>but i couldn't understand the solution and also currently <a href="http://www.santiycr.com.ar/djangosite/blog/posts/2009/aug/25/close-remaining-browsers-from-selenium-rc" rel="nofollow noreferrer">http://www.santiycr.com.ar/djangosite/blog/posts/2009/aug/25/close-remaining-browsers-from-selenium-rc</a>  blog side is down</p>