|
From: <mar...@tu...> - 2008-07-31 12:58:57
|
Hi,
I've just seen that in its svn version, simpletest has selenium
extensions.
Is there a documentation or a tutorial for using it ? I didn't find it yet
:-(
I tryed like that:
class SeleniumTest_Start extends SeleniumTestCase
{
private $urlBase;
function SeleniumTest_Start($name="Start")
{
try {
$this->verificationErrors = array();
$this->host = $_SERVER['HTTP_HOST'];
$this->urlBase = "http://".$this
->host.HttpRequest::getPathUrl();
$this->setBrowser("*chrome");
$this->setBrowserUrl($this->urlBase);
$this->start();
$this->open($this->urlBase."/index.php");
}
catch (RuntimeException $re){
$this->stop();
}
}
}
which is nearly the code I used with phpunit extension
but get as errors:
Warning: call_user_func_array() [function.call-user-func-array]: First
argument is expected to be a valid callback, 'Array' was given in
\simpletest\extensions\selenium.php on line 73
Warning: call_user_func_array() [function.call-user-func-array]: First
argument is expected to be a valid callback, 'Array' was given in
\simpletest\extensions\selenium.php on line 73
Warning: call_user_func_array() [function.call-user-func-array]: First
argument is expected to be a valid callback, 'Array' was given in
\simpletest\extensions\selenium.php on line 73
Warning: call_user_func_array() [function.call-user-func-array]: First
argument is expected to be a valid callback, 'Array' was given in
\simpletest\extensions\selenium.php on line 73
SeleniumTest_Start
test_1_start_1_langue_fr parsed
Exception: test_1_start_1_langue_fr -> Unexpected exception of type
[Exception] with message [this code currently requires the curl extension]
in [\simpletest\extensions\selenium\remote-control.php line 107]
Thank you very much,
marilore
|