0

我尝试使用 net beans 运行 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
4

1 回答 1

2

我没有在 Magento 上尝试过单元测试,但我会按照 github 的 magento taf 存储库中的说明进行操作。您忘记了说明> pear install pear.symfony-project.com/YAML-1.0.2 有关安装测试自动化框架的更多说明,请查看此处

我相信您的指令pear install pear.symfony.com/Yaml将为 symfony 2 安装最新版本的 Yaml(Magento 使用 symfony-project.com -> symfony 1)

于 2013-08-26T12:52:05.153 回答