Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API testing #4288

Closed
miherlosev opened this issue Sep 17, 2019 · 9 comments
Closed

API testing #4288

miherlosev opened this issue Sep 17, 2019 · 9 comments
Labels
FREQUENCY: level 2 TYPE: enhancement The accepted proposal for future implementation.

Comments

@miherlosev
Copy link
Collaborator

miherlosev commented Sep 17, 2019

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 - #2397

Notes:

Playwright 1.16 API testing: https://playwright.dev/docs/test-api-testing

@miherlosev miherlosev added the TYPE: enhancement The accepted proposal for future implementation. label Sep 17, 2019
@miherlosev miherlosev changed the title HTTP API testing API testing Sep 18, 2019
@devdelpiero
Copy link

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

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

@need-response-app need-response-app bot added the STATE: Need response An issue that requires a response or attention from the team. label Oct 4, 2019
@Farfurix Farfurix removed the STATE: Need response An issue that requires a response or attention from the team. label Oct 7, 2019
@rehael
Copy link

rehael commented Oct 11, 2019

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. :)

@need-response-app need-response-app bot added the STATE: Need response An issue that requires a response or attention from the team. label Oct 11, 2019
@Farfurix Farfurix removed the STATE: Need response An issue that requires a response or attention from the team. label Oct 11, 2019
@maximojoexpress
Copy link

Example of Karate, another API testing tool:

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

@need-response-app need-response-app bot added the STATE: Need response An issue that requires a response or attention from the team. label Oct 14, 2019
@AlexSkorkin AlexSkorkin removed the STATE: Need response An issue that requires a response or attention from the team. label Oct 14, 2019
@jianentrinsik
Copy link

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!

@need-response-app need-response-app bot added the STATE: Need response An issue that requires a response or attention from the team. label Oct 25, 2019
@Farfurix Farfurix removed the STATE: Need response An issue that requires a response or attention from the team. label Oct 28, 2019
@Channa-proxima
Copy link

Any hopes for API Testing (Roadmap) TestCafe Feature?

@need-response-app need-response-app bot added the STATE: Need response An issue that requires a response or attention from the team. label Feb 12, 2020
@LavrovArtem
Copy link
Contributor

@Channa-proxima
Any personal estimate may be misleading, so I cannot currently tell you a precise date.

@need-response-app need-response-app bot removed the STATE: Need response An issue that requires a response or attention from the team. label Feb 12, 2020
@AndreyBelym AndreyBelym added STATE: Stale An outdated issue that will be automatically closed by the Stale bot. FREQUENCY: level 2 and removed STATE: Stale An outdated issue that will be automatically closed by the Stale bot. labels Oct 19, 2020
@vlucas
Copy link

vlucas commented Jun 29, 2021

Frisby.js is another option that is promise based and widely used: https://github.com/vlucas/frisby (I am the author)

@need-response-app need-response-app bot added the STATE: Need response An issue that requires a response or attention from the team. label Jun 29, 2021
@AlexSkorkin AlexSkorkin removed the STATE: Need response An issue that requires a response or attention from the team. label Jun 30, 2021
@helen-dikareva
Copy link
Collaborator

helen-dikareva commented Jul 19, 2022

🚀 Happy to announce that TestCafe 1.20.0 release offers the t.request method that can be used for API testing right in your e2e tests. Read more in the corresponding guide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FREQUENCY: level 2 TYPE: enhancement The accepted proposal for future implementation.
Projects
None yet
Development

No branches or pull requests