I'm runnig Selenium tests with PHPUnit.
I have some long test sequences split into several test files to make them easier to maintain. For higher speed I would like to re-use the browser session for these cases.
I am able to reuse the sessions (PHPUnit_Extensions_SeleniumTestCase::shareSession(true)), but I cannot figure out how to end the session and open a new one before starting the next tests (which require a fresh browser session).
I have tried using the following line in the tearDown() method of the test to kill the current browser session
$this->stop();
this kills the browser, but generates an error: "Session xxxxxx does not exist or was ended"
=> Exactly, but how do I get Selenium to start a new session in this case?
Thanks for any clues.