我尝试使用magento自动化框架运行测试,但结果显示为“没有测试用例执行”,输出错误显示为
Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Unable to parse file "C:\Users\huongnguyen\mtaf\config\browsers.yml": Unable to parse line 27 (---).' in E:\xampp\php\pear\SymfonyComponents\YAML\sfYaml.php:100
Stack trace:
#0 C:\Users\huongnguyen\mtaf\lib\Mage\Selenium\Helper\File.php(52): sfYaml::load('C:\Users\huongn...')
#1 C:\Users\huongnguyen\mtaf\lib\Mage\Selenium\TestConfiguration.php(387): Mage_Selenium_Helper_File->loadYamlFile('C:\Users\huongn...')
#2 C:\Users\huongnguyen\mtaf\lib\Mage\Selenium\TestConfiguration.php(264): Mage_Selenium_TestConfiguration->_loadConfigData()
#3 C:\Users\huongnguyen\mtaf\lib\Mage\Selenium\TestConfiguration.php(163): Mage_Selenium_TestConfiguration->_initConfig()
#4 C:\Users\huongnguyen\mtaf\lib\Mage\Selenium\TestConfiguration.php(147): Mage_Selenium_TestConfiguration->init()
#5 C:\Users\huongnguyen\mtaf\bootstrap.php(44): Mage_Selenium_TestConfiguration::initInstance()
#6 E:\xampp\php\pear\PHPUnit\Util\Fileloader.php(92): include_once('C:\Users\huongn...')
#7 in E:\xampp\php\pear\SymfonyComponents\YAML\sfYaml.php on line 100
有没有像以前那样见过面?
答案 0 :(得分:1)
我已经通过将Symfony Yaml软件包升级到最新版本来解决这个问题:
pear channel-discover pear.symfony-project.com
pear install symfony/YAML
似乎" ---" v.1.0.6支持语法(此时最新的稳定版)。