magento / magento2-functional-testing-framework

Magento2 Functional Testing Framework
Other
155 stars 133 forks source link

Feature: REST support #829

Closed snez closed 1 year ago

snez commented 3 years ago

Codeception supports REST get/post requests - https://codeception.com/docs/modules/REST

These are useful for testing custom module endpoints and REST API/GraphQL/PWA storefronts.

Can this be added to MFTF?

m2-assistant[bot] commented 3 years ago

Hi @snez. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.

Please, add a comment to assign the issue: @magento I am working on this


jilu1 commented 3 years ago

@snez Thank you for your suggestion! It looks like a useful feature to support API testing. I have created internal ticket https://jira.corp.magento.com/browse/MQE-2685 and will update here when we start the work based on priority.

okolesnyk commented 1 year ago

Hi @snez We've implemented an ability to write Custom Helpers. That feature allows any kind of implementation you want, including adding Custom Helpers that will be able to use REST module actions. It'll only require you to pull dependency codeception/module-rest in your project. Also we are going to make Custom Helpers that are heavily used in MFTF tests native to Framework.

After some thought, we think that the best option for us currently is to use Web API Functional Testing framework. So since we currently don't see a need in this feature for our current needs, I'm going to close this issue.