Closed
Description
When trying to access _CREDS
from inside of a suite before section utilizing an action group that calls fillField you we receive the error:
FATAL ERROR. TESTS NOT FINISHED.
Uncaught Error: Class 'Group\CredentialStore' not found in vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Group/MyCustomSuite.php:70
The issue appears to be that the generated class does not import the full namespace for the CredentialStore class. Manually adding that import to the generated class temporarily resolves the issue.
Preconditions
- Tested using Magento 2.3.2 with MFTF 2.3.14
- Create a custom module that includes MFTF tests and a suite.xml file
- Have a before block in the suite that calls an action group
- The action group should either directly reference
_CREDS
or have arguments that are filled using_CREDS
Steps to reproduce
- Try to run the suite using
vendor/bin/mftf r:g MyCustomSuite
Expected result
- Suite should executed and populate credentials allowing tests to run
Actual result
- See summary at top for error message.
Metadata
Metadata
Assignees
Labels
No labels