2013-08-26 56 views
0

得到一個錯誤我嘗試運行與淨豆Magento的測試自動化框架,我得到這個錯誤我在Magento的測試自動化框架

PHP Warning: require_once(SymfonyComponents/YAML/sfYaml.php): failed to open stream: No such file or directory in C:\Programs\mtaf\framework\Mage\Selenium\Helper\File.php on line 29 
PHP Fatal error: require_once(): Failed opening required 'SymfonyComponents/YAML/sfYaml.php' (include_path='C:\Programs\mtaf\framework;C:\Programs\mtaf\testsuite;.;C:\Programs\PHP\pear') in C:\Programs\mtaf\framework\Mage\Selenium\Helper\File.php on line 29 

但是,所有的梨部件和單元組件安裝成功。

以下命令用於安裝pear和php單元。

C:\Programs\PHP>pear upgrade 
C:\Programs\PHP>pear channel-discover pear.phpunit.de 
C:\Programs\PHP>pear channel-discover pear.symfony-project.com 
C:\Programs\PHP>pear channel-discover components.ez.no 
C:\Programs\PHP>pear install phpunit/PHPUnit 
C:\Programs\PHP>pear install phpunit/PHPUnit_Selenium 
C:\Programs\PHP>pear install phpunit/DbUnit 
C:\Programs\PHP>pear install symfony/YAML 

回答

2

我還沒有tryed上Magento的單元測試,但我會按照從GitHub的Magento的TAF庫他們的指導。 你上安裝測試自動化框架看一看​​

我相信你的指令pear install pear.symfony.com/Yaml將安裝最新版本的YAML爲symfony1.2 2(Magento用於symfony-project.com忘記的指令> pear install pear.symfony-project.com/YAML-1.0.2 詳細說明 - > symfony的1 )