magento / magento/magento2-functional-testing-framework
"Schema validation error complex type 'actionsRefType': The content model is not determinist" Error Thrown While Generating Tests
- Dominant language
- PHP
- Stars
- 154
- Forks
- 134
- PR merge metrics
- No merged PRs in 30d
Description
## Actual Behavior
I'm trying to generate tests using a standalone instance of MFTF and Magento 2.4.7-p5, but I am getting [this error](https://gist.github.com/JosephLeedy/2fc2952a5159151a513a3f5c83dcfc05). It's similar to this [bug](https://github.com/magento/magento2/pull/38553), which was fixed in Magento 2.4.8.
**Here is the relevant portion of the linked error report:**
```
PHP 31. DOMDocument->schemaValidate($filename = '/home/joseph/Development/Tools/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/mergedActionGroupSchema.xsd') /home/joseph/Development/Tools/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Config/Dom.php:298
FAILURE: Schema validation error complex type 'actionsRefType': The content model is not determinist.Line: 17
```
## Expected Behavior
MFTF tests should generate without throwing errors.
## Additional Details
**OS Version:** Fedora 41
**Magento Version**: 2.4.7-p5
**MFTF Version:** 5.0.4 (Standalone)
**PHP Version**: 8.3.19
**LibXML Version:**: `libxml2.x86_64 2.12.10-1.fc41`*
**\* Full list of XML libraries:**
```
$ dnf list installed "libxml*"
Updating and loading repositories:
Repositories loaded.
Installed packages
libxml++.x86_64 2.42.3-4.fc41 fedora
libxml2.i686 2.12.10-1.fc41
libxml2.x86_64 2.12.10-1.fc41
libxml2-devel.x86_64 2.12.10-1.fc41
libxmlb.x86_64 0.3.22-1.fc41
```
Contributor guide
Research direction
Start with the validation call in src/Magento/FunctionalTestingFramework/Config/Dom.php at line 298 and inspect the referenced src/Magento/FunctionalTestingFramework/Test/etc/mergedActionGroupSchema.xsd, especially the actionsRefType definition. Reproduce standalone test generation with Magento 2.4.7-p5 and MFTF 5.0.4, then verify generation completes without the schema validation error on the reported PHP and libxml versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, xml
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100