[Checkins] SVN: gocept.selenium/trunk/ Fixes #6485: Quit browser when the testrunner terminates

Wolfgang Schnerring wosc at wosc.de
Sat Dec 4 12:59:23 EST 2010


Log message for revision 118708:
  Fixes #6485: Quit browser when the testrunner terminates
  

Changed:
  U   gocept.selenium/trunk/CHANGES.txt
  U   gocept.selenium/trunk/src/gocept/selenium/base.py

-=-
Modified: gocept.selenium/trunk/CHANGES.txt
===================================================================
--- gocept.selenium/trunk/CHANGES.txt	2010-12-04 17:45:18 UTC (rev 118707)
+++ gocept.selenium/trunk/CHANGES.txt	2010-12-04 17:59:22 UTC (rev 118708)
@@ -6,6 +6,7 @@
 
 - Show current test case in command log (#7876).
 - Raise readable error when connection to RC server fails (#6489).
+- Quit browser when the testrunner terminates (#6485).
 
 
 0.8 (2010-10-22)

Modified: gocept.selenium/trunk/src/gocept/selenium/base.py
===================================================================
--- gocept.selenium/trunk/src/gocept/selenium/base.py	2010-12-04 17:45:18 UTC (rev 118707)
+++ gocept.selenium/trunk/src/gocept/selenium/base.py	2010-12-04 17:59:22 UTC (rev 118708)
@@ -12,6 +12,7 @@
 #
 ##############################################################################
 
+import atexit
 import gocept.selenium.selenese
 import selenium
 import socket
@@ -55,6 +56,7 @@
                 'Failed to connect to Selenium RC server at %s:%s,'
                 ' is it running? (%s)'
                 % (self._server, self._port, e))
+        atexit.register(self.selenium.stop)
 
     def tearDown(self):
         self.selenium.stop()



More information about the checkins mailing list