Hi all! I know this has been discussed in the past but I am looking for up to date opinions.
We currently use postman for our api tests but are being encouraged to look for an alternative for automation, preferably open-source. We already use Playwright (typescript) for ui tests and make some api requests for data stubbing, so it feels like a logical transition . I’ve seen a number of resources that suggest this would be a sensible approach but wanted to reach out here .
Who is using Playwright for API testing? What do you like about it and what challenges do you face?
Glad to see you here! I have heard that you can use Playwright for API testing though my experience is with Cypress. Do you have access to the Playwright discord? They may have specific examples they can point you to, if no further information turns up here. I’m there myself and happy to invite you if you need an invite.
@lharney Playwright is designed with a browser-first mindset… and is recommended to use in hybrid testing (using API;s to set up UI state)…but if used strictly for backend API validation u may encounter lot of overhead and resource consumption…initialization that is starting the playwright test runner is slow compared to running a script with a specialized API library