Comments (7)
@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.
@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.
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.
@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.
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.
#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.
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)
- Can't install MFTF framework HOT 4
- Load URL with Basic Http Authentication in MFTF HOT 2
- Entity with a CreateDataKey of createSimpleProduct could not be found HOT 1
- Invalid argument supplied for foreach() at ../src/Magento/FunctionalTestingFramework/Extension/BrowserLogUtil HOT 1
- CLI command execution in MFTF throws error HOT 2
- How to add chrome browser desired capabilities for testing ? HOT 1
- Errors via allure dependency HOT 3
- upgrade:tests references nonexistent class HOT 2
- Entity with a CreateDataKey of createCustomer could not be found HOT 2
- Serialization of 'Closure' is not allowed HOT 1
- update symfony/http-foundation HOT 1
- run:test with --remove not creating testManifest.txt file HOT 3
- Filesystem::remove() argument #1 must be string, SplFileInfo given HOT 8
- v4.3.4 - Empty exception messages thrown after test failure HOT 2
- v4.3.4 - Action waitForElementClickable ignores the "time" argument HOT 1
- Upgrading Magento 2 functional testing framework above 4.2.1 breaks test because of Namespace Changes in allure-framework HOT 2
- cannot use strings with comma sign in locatorFunction as it is wrapped with " which breaks Php HOT 1
- Console command build:project starts subprocess with system-default PHP instead of the runtime PHP HOT 1
- symfony/console dependency mismatch in MFTF v4.7.2 Standalone and Magento v.2.4.7 HOT 1
- Helpers Autoload Issue - Class `Group\AppConfigDumpSuite` is not defined. Autoload it or include into '_bootstrap.php' file of 'tests' directory HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magento2-functional-testing-framework.