2011-02-06 9 views
0

あなたはSelenium RCのようなサーバーを知っていますか?私はWindowsでxamppを使っていますが、私はLocalHostでSeleniumを実行できません。 私はPHP言語を使いたいです。セレンrcのような任意のサーバー?

私はこのエラーを取得しています:

Warning: require_once(PHPUnit/Framework/TestCase.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampplite\htdocs\robot\GoogleTest.php on line 5 

Fatal error: require_once() [function.require]: Failed opening required 'PHPUnit/Framework/TestCase.php' (include_path='.;C:\xampplite\php\PEAR;./PEAR/') in C:\xampplite\htdocs\robot\GoogleTest.php on line 5 

はPHPUnit /フレームワーク/ TestCase.phpである場合、私は知りません。

OK、最後のステップ。私はphpunitをインストール中にこのエラーが発生しました:

C:\xampplite\php>pear install phpunit/PHPUnit 
Unknown remote channel: components.ez.no 
Unknown remote channel: components.ez.no 
phpunit/PHPUnit requires PEAR Installer (version >= 1.9.1), installed version is 
1.9.0 
phpunit/PHPUnit can optionally use PHP extension "dbus" 
phpunit/DbUnit requires PEAR Installer (version >= 1.9.1), installed version is 
1.9.0 
phpunit/File_Iterator requires PEAR Installer (version >= 1.9.1), installed vers 
ion is 1.9.0 
phpunit/PHP_CodeCoverage requires PEAR Installer (version >= 1.9.1), installed v 
ersion is 1.9.0 
phpunit/PHP_CodeCoverage requires package "channel://components.ez.no/ConsoleToo 
ls" (version >= 1.6) 
phpunit/PHP_CodeCoverage requires package "phpunit/File_Iterator" (version >= 1. 
2.2) 
phpunit/PHP_CodeCoverage can optionally use PHP extension "xdebug" (version >= 2 
.0.5) 
phpunit/PHPUnit_MockObject requires PEAR Installer (version >= 1.9.1), installed 
version is 1.9.0 
phpunit/PHPUnit_Selenium requires PEAR Installer (version >= 1.9.1), installed v 
ersion is 1.9.0 
phpunit/PHP_TokenStream requires PEAR Installer (version >= 1.9.1), installed ve 
rsion is 1.9.0 
phpunit/PHP_TokenStream requires package "channel://components.ez.no/ConsoleTool 
s" (version >= 1.6) 
No valid packages found 
install failed 
+2

なぜあなたは実行することはできませんセレン:PHPUnitの/セレンのインストールPHPUnitのガイドはここ

のですか? – BoltClock

+0

私は知らない。動いていない。使用ガイドはありません。とても貧しい –

+0

@shameless_joあなたはそれが機能していないことをどうやって知っていますか?特定の問題のエラーメッセージまたは説明が開始されます。 –

答えて

4

このエラーは、PHPUnitがインストールされていないことを示しています。あなたは梨でインストールできます:

pear channel-update pear.php.net 
pear upgrade-all 
pear channel-discover pear.phpunit.de 
pear channel-discover components.ez.no 
pear install --alldeps phpunit/PHPUnit 

セレンは、言語に依存しないツールです。あなたはPHPでセレンをインストールするためのチュートリアル/ガイドを調べる必要があります。最もよく知られている実装はPHPUnitです。 PHPUnitはテストフレームワークであり、Seleniumはテストのもう一つの方法なので意味があります。 http://www.phpunit.de/manual/3.6/en/selenium.html

+1

あなたは最高です:)あなたはこの仕事を知っています。あなたは教祖です。百万回ありがとう。あなたは私を助けてくれました。私はあなたのstackoverflowを愛して:) –

関連する問題