Closed
Description
I am trying to build our own suite to run tests. I am testing using MFTF standalone per the directions here https://devdocs.magento.com/mftf/2.3/getting-started.html#set-up-a-standalone-mftf. When I try to generate a single test or our suite, I get errors from other (unrelated) tests.
See Slack thread for more info: https://magentocommeng.slack.com/archives/C82DDUSNP/p1542748941043300
Preconditions
- Using standalone MFTF per https://devdocs.magento.com/mftf/2.3/getting-started.html#set-up-a-standalone-mftf
- Have 2.3.0-beta32 installed
- Have a custom suite (or at minimum custom test) in a custom module
Steps to reproduce
- Run
bin/mftf generate:suite MySuite
orbin/mftf generate:test MySingleTest
Expected result
- Suite or Test should generate (or throw an error only about specific tests)
Actual result
The following files all fail validation for different reasons. I only captured the actual errors from the first one. I manually deleted the files at each run to try to get the generation of just our suite to run. I also ran the generation with the debug flag (-d) to get this output
- ee23/vendor/magento/module-multiple-wishlist/Test/Mftf/Section/StorefrontCreateMultipleWishlistSection.xml
In ActionMergeUtil.php line 278:
ee23/vendor/magento/module-multiple-wishlist/Test/Mftf/Section/StorefrontCreateMultipleWishlistSection.xml
Invalid Document
Element 'element', attribute 'type': [facet 'enumeration'] The value 'image' is not an element of the set {'text', 'textarea', 'input', 'button', 'checkbox', 'radio', 'checkboxset', 'radioset', 'date', 'file', 'select', 'multiselect', 'wysiwyg', 'iframe', 'block'}.
Line: 12
Element 'element', attribute 'type': 'image' is not a valid value of the atomic type 'uiElementType'.
Line: 12
.
Exception occurred parsing action at StepKey "ApiVersionNA"
generate:suite [-r|--remove] [--] <suites> (<suites>)...
- ee23/vendor/magento/module-customer-custom-attributes/Test/Mftf/Section/CustomerAccountSection.xml
- ee23/vendor/magento/module-theme/Test/Mftf/Section/StorefrontFooterSection.xml
- ee23/vendor/magento/module-configurable-product/Test/Mftf/Test/ConfigurableProductPriceAdditionalStoreViewTest.xml
- ee23/vendor/magento/module-catalog/Test/Mftf/Test/AdminAddImageToWYSIWYGProductTest.xml