magento2-functional-testing-framework
magento2-functional-testing-framework copied to clipboard
Entity with a CreateDataKey of createCustomer could not be found
Preconditions
- Magento version 2.4.6
- php 8.2
Steps to reproduce
- while executing the script, getting below error
- [Magento\FunctionalTestingFramework\Exceptions\TestReferenceException] Entity with a CreateDataKey of createCustomer could not be found
Expected result
- customer/category/product should create without any issue.
<createData entity="_defaultCategory" stepKey="createCategory"/> <createData entity="SimpleProduct" stepKey="createSimpleProduct"> <requiredEntity createDataKey="createCategory"/> </createData> <createData entity="Simple_US_Customer" stepKey="createCustomer"/> <deleteData createDataKey="createCategory" stepKey="deleteCategory"/> <deleteData createDataKey="createSimpleProduct" stepKey="deleteProduct"/> <deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
Actual result
[Magento\FunctionalTestingFramework\Exceptions\TestReferenceException] Entity with a CreateDataKey of createCustomer could not be found
Hi @Manjula-kalyan. Thank you for your report.
To speed up processing of this issue, make sure that you provided sufficient information.
Add a comment to assign the issue: @magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel.
- Magento 2.4.6
- PHP 8.1.2
- MFTF 4.2.1
I experience this issue in our custom MFTF tests as well.
Wherever the entity Simple_Customer_Without_Address
is to be created, the test crashes with the above error.