Giter Club home page Giter Club logo

Comments (7)

powli avatar powli commented on August 11, 2024

@KevinBKozan I see you implemented the magentoCLI support initially - do you remember why it was deemed necessary to execute the commands via separate CURL call instead of a process calling on the bin/magento command?
Since you need file access anyway to the tested Magento instance for reading the test configurations I see no real benefit over shell execution.

from magento2-functional-testing-framework.

KevinBKozan avatar KevinBKozan commented on August 11, 2024

@powli Good question, the reason is because MFTF needs to support running against a local Magento instance as well as a remote Magento instance (i.e. cloud environments). That essentially outlined the need to create an endpoint for MFTF to be able to interact with bin/magento.

It's obviously tricky though, as I'm sure you've found, given the nearly endless ways Magento can be set up. We had #333 for nginx configuration docs, and I think that would satisfy documented in the setup guides for MFTF.

from magento2-functional-testing-framework.

powli avatar powli commented on August 11, 2024

Ok, that's right, but don't you need file access anyway for the ModuleResolver or am I misreading something?
Maybe a configuration setting in the functional.suite.yml for preference would be nice for that. I can update my PR accordingly if necessary.

from magento2-functional-testing-framework.

KevinBKozan avatar KevinBKozan commented on August 11, 2024

@powli It's been a while since I've looked at it, but from what I remember ModuleResolver prefers the local Magento instances registered modules, but is capable of falling back onto pattern matching (this is as I remember it, I need to double check this claim).

As far as your PR, I think it would be interesting to allow both CURL and Shell execution of bin/magento. I'll comment on the PR with suggestions.

from magento2-functional-testing-framework.

parveen12345 avatar parveen12345 commented on August 11, 2024

Hello
How we test a hello world using functional testing please guide me we install the MTFT successful and selenium server is install and we Crete a hello world module but when we run the command then it show errors. Please tell me how we test a hello world module using functional testing

from magento2-functional-testing-framework.

soumyau avatar soumyau commented on August 11, 2024

#343 is merged and is in develop, waiting to be released with the next MFTF version. @powli thank you for your contribution!

from magento2-functional-testing-framework.

gwharton avatar gwharton commented on August 11, 2024

I still value the remote execution option, I just wish it was implemented differently.

I run MFTF against my dev environment which is local, but when I deploy, I then adjust the ".env" file to point to my live site, and I run a number of tests against the live site, but initiated from the staging environment codebase. Its a last minute part of the deploy process for me to validate the deploy worked correctly.

I might just take a copy of the command.php script, edit it to suite the correct paths, and place it in pub, obviously with the appropriate security safeguards.

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.