-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid entity_type specified: catalog_product #27
Comments
Hi @adam-j-martin thanks for your feedback and issue report. I just tried to replicate your issue on my environment but without luck unfortunately. The error you are getting is coming straight out of Magento which is not able to find a specific entity into EAV. Could you please verify that the BehatMage extension is enabled in the behat.yml file and that the data-install scripts has been properly executed? Do you know how to verify that? Also, did you refreshed or reloaded the page to ensure that the data-install script runs. Please let me know how do you get on with it. Thanks, |
Hi Debo,
perhaps I am missing something in my composer.json?
{
"name": "magento-bdd",
"description": "Magento BDD",
"config": {
"bin-dir": "bin"
},
|
Actually I had to change composer as I got an error about mink sahi driver, so added the following:
"magetest/magento-behat-extension": "dev-develop",
"magetest/magento-phpspec-extension": "_",
"behat/mink": "_",
"fabpot/goutte": "1.0.x-dev",
"behat/mink-extension": "dev-master",
"behat/mink-goutte-driver":"dev-master",
"behat/mink-sahi-driver": "*"
Is it possible to see both your behat.yml and the composer file |
Still having issues with this. Not sure of the next steps to be honest. The error occurs when running bin/behat before writing any code for Magento. That is, this is failing trying with the product fixture. The exact problem code is:
which is found on line 63 of class Product (which implements FixtureInterface) |
I have not had time to test but I think using the mink extension as well as the magento extension may be the problem. Can you possibly try only loading the Magento extension in you behat.yml? |
Hi @adam-j-martin, yes, if you followed the guide in the README.md it tells you to create a data-install script to add an attribute to the product, did you created that script and ensured it ran? Yesterday I went through the documentation to be sure I didn't miss anything and I've not been able to replicate. Investigation is still going on... |
Hi @marcodebortoli - I appreciate your help on this. I understand what you are saying around the data-install script.. but the error I am getting is in the checking if the product exists - not the check on the new required attribute. @alistairstead - I did try again with the following behat.yml
sorry about the formatting |
@adam-j-martin : I understand, but that's indeed Magento raising an exceptions because it cannot find a particular entity for what I can see and it's investigated also here: Regarding the behat.yml file this is what I'm currently using: |
@adam-j-martin can you please gist the output of the following command: $ bin/behat -dl Thanks |
@marcodebortoli One thing to mention is that I am testing with Enterprise 1.13.0.1 |
Mmmm the last given in your list looks a bit suspicious to me. This is my output after following steps by steps the README.me https://gist.github.com/MarcoDeBortoli/dc9b2a418641d878fac3 Could you please verify and confirm that your context file extends MagentoContext? |
https://gist.github.com/adam-j-martin/5877032 this is the verbose output - I have just copied your behat.yml exactly (changing the base url) and now the error is not a fatal (good) but a failing test (good)... but not getting the message about missing attribute but still the message about invalid entity_type. |
Hi @adam-j-martin ok in complete honesty I didn't try the extension with the that EE version yet. I'm going to test it straight away and let you know as soon as I have some results. |
Hi @marcodebortoli - Magento have removed the download of that version - so let me know if you need me to send you a copy... or I could zip up my bdd project completely for you (along with db) |
I have that version, but yes, if you can share with me your project, given it doesn't contain any sensitive informations, that will surely help me nail down the problem especially if it's due by something specifically related to it. Thanks. |
@marcodebortoli - Shall I wetransfer.com the archive to you? what email address please |
@adam-j-martin I just emailed you. |
Hi there,
Great work on this. However, I have the following error when following the example in the documentation here.
any help appreciated :)
The text was updated successfully, but these errors were encountered: