Giter Club home page Giter Club logo

Comments (13)

Jeroenhuisjes avatar Jeroenhuisjes commented on August 14, 2024

Any ideas?

from magento2-functional-testing-framework.

okolesnyk avatar okolesnyk commented on August 14, 2024

Hi @Jeroenhuisjes.
We'll figure it out.
Can provide command you used to run tests?
There are lots of possible issues can be and first of all I want to be sure you didn't try to run skipped tests.

from magento2-functional-testing-framework.

okolesnyk avatar okolesnyk commented on August 14, 2024

Also this error can occur if Magento is not using URL Rewrites.
If your link to Magento backend is : magento.local/index.php/admin then you should specify in .env file MAGENTO_BASE_URL=http://magento.local/index.php/.
Otherwise it should be MAGENTO_BASE_URL=http://magento.local/

from magento2-functional-testing-framework.

Jeroenhuisjes avatar Jeroenhuisjes commented on August 14, 2024

Hi @okolesnyk!
Hmm we do use url rewrites on our local environments so that doesn't seem to be the problem. They run with nginx though. On my own laptop where I just run Apache it seems to work just fine.

We tried vendor/bin/codecept run and variations of this and we tried different vendor/bin/robo commands.
We use a local Selenium install. Looks like phpunit fails some kind of assertion or can't make a connection with the shop?

from magento2-functional-testing-framework.

okolesnyk avatar okolesnyk commented on August 14, 2024

Hey @Jeroenhuisjes
I finally figured out what is wrong.
This is our bug we should resolve.
The problem is in this file: https://github.com/magento/magento2-functional-testing-framework/blob/develop/src/Magento/FunctionalTestingFramework/Module/MagentoRestDriver.php#L120

We didn't properly test it with nginx. Because I can only reproduce this with nginx webserver.

from magento2-functional-testing-framework.

okolesnyk avatar okolesnyk commented on August 14, 2024

Hi @Jeroenhuisjes. Thank you for the report. We created internal ticket MQE-897 to track the progress. We will update you here about progress on this issue.

from magento2-functional-testing-framework.

Jeroenhuisjes avatar Jeroenhuisjes commented on August 14, 2024

@okolesnyk Thanks!

from magento2-functional-testing-framework.

okolesnyk avatar okolesnyk commented on August 14, 2024

Hi @Jeroenhuisjes
After a while I can not reproduce this issue anymore.
We did some changes and probably we fixed it.
Can you please verify that this issue has gone?
If you still facing same problem, please make sure you using latest MFTF v. 2.1.2.

from magento2-functional-testing-framework.

Jeroenhuisjes avatar Jeroenhuisjes commented on August 14, 2024

@okolesnyk
Seems to be working! Thanks 👍

from magento2-functional-testing-framework.

sshrewz avatar sshrewz commented on August 14, 2024

Thanks for confirming, @Jeroenhuisjes! We'll go ahead and close this issue.

from magento2-functional-testing-framework.

alinlupoiu avatar alinlupoiu commented on August 14, 2024

Hi.
I have the same issue on magento 2.2.5 enterprise endition and my MFTF version is 2.1.2(the last one)

My base url is: magento.test.
If i change the MAGENTO_BASE_URL from: magento.test to magento.test/index.php/admin in (/dev/tests/acceptance/.env) the error dissapear and the tests start running but it doesen't know the correct base url and the test(s) fails.
Somehow the real base url returns 404 and the backend address return 200
Does anyone know how i can solve this issue?

from magento2-functional-testing-framework.

fgoppelt avatar fgoppelt commented on August 14, 2024

Hi, we are running into the same problem in 2.2.0. After some investigation we found out that the first API call made by vendor/bin/codecept run to get the API token goes to BASE_URL/rest//default/V1/integration/admin/token. On this url we are getting a 404 with postman too. After removing "default" from the url we could successfully receive a token. We checked all configuration options in the .env file but could not find any configuration regarding this default value in the url.

from magento2-functional-testing-framework.

alinlupoiu avatar alinlupoiu commented on August 14, 2024

Hi.
Meanwhile i solve the problem, and as you said, i remove "default" from the API call link.
You can do that in this path: dev/tests/acceptance/tests/functional.suite.dist.yml:18.

After you do that you should run: vendor/bin/robo build:project command

from magento2-functional-testing-framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.