Testcafe: API testing

Created on 17 Sep 2019  Â·  7Comments  Â·  Source: DevExpress/testcafe

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

level 2 enhancement

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

All 7 comments

I would recommended looking at cypress.io. They did a great job with http requests.

https://docs.cypress.io/api/commands/request.html#Arguments

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:

https://github.com/intuit/karate#hello-world

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

inikulin picture inikulin  Â·  3Comments

Turkirafaa picture Turkirafaa  Â·  3Comments

madroneropaulo picture madroneropaulo  Â·  3Comments

marchugon picture marchugon  Â·  4Comments

multivoltage picture multivoltage  Â·  3Comments