magento2-functional-testing-framework icon indicating copy to clipboard operation
magento2-functional-testing-framework copied to clipboard

Entity with a CreateDataKey of createCustomer could not be found

Open Manjula-kalyan opened this issue 1 year ago • 2 comments

Preconditions

  1. Magento version 2.4.6
  2. php 8.2

Steps to reproduce

  1. while executing the script, getting below error
  2. [Magento\FunctionalTestingFramework\Exceptions\TestReferenceException] Entity with a CreateDataKey of createCustomer could not be found

Expected result

  1. 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

Manjula-kalyan avatar May 09 '23 13:05 Manjula-kalyan

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.

m2-assistant[bot] avatar May 09 '23 13:05 m2-assistant[bot]

  • 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.

densen45 avatar Jun 13 '23 06:06 densen45