The feature should allow to send an HTTP request and check the response details.
See these tools for more information:
There is a separate proposal for t.request action - https://github.com/DevExpress/testcafe/issues/2397
I would recommended looking at cypress.io. They did a great job with http requests.
Just a note – when designing this feature remember about OAuth and auth via bearer tokens. Cookies are not enough sometimes.
For direct communication with our μ–services API from within TestCafe scripts we now use Axios with Axios-OAuth interceptor. If the TestCafe's API testing feature would enable similar flexibility, it'd be awesome! Keeping fingers crossed. :)
Example of Karate, another API testing tool:
Like @devdelpiero said, cypress is the main competitor. I had to implement my own helper functions using request-promise module, but it would be really nice if testcafe can provide some built-in support on this!
Any hopes for API Testing (Roadmap) TestCafe Feature?
@Channa-proxima
Any personal estimate may be misleading, so I cannot currently tell you a precise date.
Most helpful comment
I would recommended looking at cypress.io. They did a great job with http requests.
https://docs.cypress.io/api/commands/request.html#Arguments