私はSymfony2プロジェクトを持っていますが、WebDriverを正しく設定することができません。コードオートロード: 'WebDriver'が定義されていません
ログインfacebook/webdriverを:: バージョン: 私は作曲とFacebookのwebdriverをとcodeceptionインストールされている*を1.1.3
codeception/codeception: バージョン:*
2.2.5は、私はこれらの指示に従いました(そして、のautoloadが、成功せずに他の多くのソースを失敗したとき):プロジェクトのルートで http://codeception.com/11-20-2013/webdriver-tests-with-codeception.html
codeception.yml:
actor: Tester
paths:
tests: tests
log: tests/_output
data: tests/_data
support: tests/_support
envs: tests/_envs
settings:
bootstrap: _bootstrap.php
colors: true
memory_limit: 1024M
extensions:
enabled:
- Codeception\Extension\RunFailed
- WebDriver
config:
WebDriver:
url: 'http://localhost/'
browser: firefox
port: 4444
modules:
config:
Db:
dsn: ''
user: ''
password: ''
dump: tests/_data/dump.sql
私は受け入れテストが生成されており、私はcodeceptionを実行すると、次のエラーが発生します。 require_once __DIR__.'/../vendor/codeception/codeception/src/Codeception/Module/WebDriver.php';
パス以上:
[Codeception\Exception\ConfigurationException]
Class `WebDriver` is not defined. Autoload it or include into '_bootstrap.php' file of 'tests' directory
は私が/ _bootstrap.phpテストにこれを追加しようとしましたphpファイルが見つかりましたが、問題は残っています。 オートローディングやブートストラップをどのように行うべきでしょうか?
EDIT: WebDriverの有効化と設定を、ルートフォルダcodeception.ymlではなくtests/acceptance.suite.ymlにして、問題を乗り越えました。
これはなぜ起こりますか?
あなたはcodeception.yml' 'にwebdriverをを設定した後、'ベンダー/ binに/ codeceptのbuild'コマンドを実行しましたか? – BVengerov