我正在尝试使用Selenium进行M2功能测试。但是,在dev / tests / function下的所有测试用例都无法正常工作。
我的Magento版本是2.3。
我正在使用适用于Firefox的最新版本的Selenium和GeckoDriver。
以下是我在运行任何测试用例时遇到的常见错误:
vendor/bin/phpunit --filter CreateSimpleProductEntityByAttributeMaskSkuTest
PHPUnit 6.5.14 by Sebastian Bergmann and contributors.
Runtime: PHP 7.1.7
Configuration: /Applications/MAMP/htdocs/m2/htdocs/webroot/dev/tests/functional/phpunit.xml
E 1 / 1 (100%)
Time: 9.65 seconds, Memory: 36.00MB
有1个错误:
Exception: Configuration settings are not applied! Url: http://m2.local:8888/index.php/admin/admin/admin/system_config/save/section/catalog
data: Array
(
[groups] => Array
(
[fields_masks] => Array
(
[fields] => Array
(
[sku] => Array
(
[value] => {{name}} {{country_of_manufacture}}
)
)
)
)
)