php - Selenium/PHPUnit: End a session when re-using browser sessions? -
php - Selenium/PHPUnit: End a session when re-using browser sessions? -
i'm runnig selenium tests phpunit.
i have long test sequences split several test files create them easier maintain. higher speed re-use browser session these cases.
i able reuse sessions (phpunit_extensions_seleniumtestcase::sharesession(true)), cannot figure out how end session , open new 1 before starting next tests (which require fresh browser session).
i have tried using next line in teardown() method of test kill current browser session
$this->stop(); this kills browser, generates error: "session xxxxxx not exist or ended"
=> exactly, how selenium start new session in case?
thanks clues.
when create few tests method in test class (test file), i don't use $this->stop(); in teardown() method. noticed @ end of each test, browser closes itself. set browser , browser url in setup() method , open in every test method using
$this->open('/');have tried in simple way?
php selenium phpunit
Comments
Post a Comment