Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

JUnit Threads still running after test ends

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I need some advice/help. I have a test suite as follows:



A test abstraction class:



A test as follows:



When i test this by running the test suite, a few threads are started in eclipse. After my test ends, these thread are still running. When i want to test again, again a few threads are started and this keeps going on and slows down the whole system everytime i try to test. Why are these threads not stopped? Should i use tearDown() to do this manually somewhere? Any help would be appreciated.

 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to stop your Selenium.
 
Zeki Karaca
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And where would i do that? In a tearDown() method? If so, where? I have 3 different classes, as seen above (all extend TestCase (in)directly).
 
Zeki Karaca
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Selenium RC with Java. Part of my code is here:



The selenium session is not killed! Selenium.stop() is not working? See generated output:


starting
com.thoughtworks.selenium.DefaultSelenium@1abc7b9
stopping
alive
com.thoughtworks.selenium.DefaultSelenium@1abc7b9



As i told before, some of the threads that are started are still running. What am i doing wrong?
 
These are not the droids you are looking for. Perhaps I can interest you in a tiny ad?
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic