dshw124502 2013-08-26 12:29
浏览 51
已采纳

我的magento测试自动化框架出错了

I try to run the magento test automation framework with net beans, I got this error

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

But all the pear components and unit components are installed successfully.

The below commands are used to install the pear and php unit.

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
  • 写回答

1条回答 默认 最新

  • duan1982453 2013-08-26 12:52
    关注

    I haven't tryed Unit tests on Magento but I would follow their instructions from github's magento taf repository. You forgot an instruction > pear install pear.symfony-project.com/YAML-1.0.2 For more instructions on installing Test Automation Framework take a look here

    I believe that your instruction pear install pear.symfony.com/Yaml will install latest version of Yaml for symfony 2 (Magento uses symfony-project.com -> symfony 1)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 PSPICE制作一个加法器
  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问
  • ¥15 skd显示找不到头文件
  • ¥15 机器视觉中图片中长度与真实长度的关系
  • ¥15 fastreport table 怎么只让每页的最下面和最顶部有横线
  • ¥15 R语言卸载之后无法重装,显示电脑存在下载某些较大二进制文件行为,怎么办
  • ¥15 java 的protected权限 ,问题在注释里