This is the first time I try running functional test case with Selenium RC. I'm getting the following error, have no idea what is means... I'm following SiteTest.php example on blog tutorial.
PHPUnit_Framework_Exception: Result is neither "true" nor "false": 'OR Server Exception: sessionId led to start new browser session: java.lang.RuntimeException: SystemRoot apparently not set! doesn't exist; perhaps this session was already stopped?'
(note: I've tested Selenium RC settings by following simple example from PHPUnit site and it worked fine. I think my yii settings for the test is not correct but don't know where to look.)
Page 1 of 1
Error in running functional test Error in running functional test
#2
Posted 06 December 2011 - 09:52 AM
It is solved.
I added below line to WebTestCase setUp() and it runs without Exception now.
I added below line to WebTestCase setUp() and it runs without Exception now.
$this->setBrowser('*firefox');
#3
Posted 06 December 2011 - 10:08 AM
When my testcase fails, now I get this error (instead of the line no of failed test.)
Anyone has idea?
Argument 2 passed to PHPUnit_Framework_ExpectationFailedException::__construct() must be an instance of PHPUnit_Framework_ComparisonFailure, string given
Anyone has idea?
#4
Posted 06 December 2011 - 10:22 AM
Are you using PHPUnit 3.6? Then it's probably related to a bug that recently got fixed. (https://github.com/s...enium/issues/79)
#5
Posted 06 December 2011 - 10:40 AM
Thank you Tropi. That was exactly my problem.
Until the new release comes out, I just changed to remove the 2nd parm of this call:
PHPUnit_Framework_ExpectationFailedException($buffer, $message);
in SeleniumTestCase.php and it runs fine now.
Until the new release comes out, I just changed to remove the 2nd parm of this call:
PHPUnit_Framework_ExpectationFailedException($buffer, $message);
in SeleniumTestCase.php and it runs fine now.
#6
Posted 20 February 2013 - 02:18 AM
I so careless that I edit
yii-1.1.13.e9e4a0/framework/cli/views/webapp/protected/tests/WebTestCase.php,but I actually should edit webTest/protected/tests/WebTestCase.php!
yii-1.1.13.e9e4a0/framework/cli/views/webapp/protected/tests/WebTestCase.php,but I actually should edit webTest/protected/tests/WebTestCase.php!
Share this topic:
Page 1 of 1

Help











