Thanks, that is interesting, i might use Playwright to test APIs as well since i'll be already using to e2e tests. Is it using a browser under the hood while API testing though? I hope not, as i don't see the need to have a browser context for that
Let's check if I understand correctly: you would like to watch a video that shows how to login via HTTP and then pass the session data to a browser session to save time?
@@ChecklyHQ perhaps Matko wants to see how to use global-setup where you can login and save the storageState.json, then load the storageStage before all the tests thus bypassing subsequent login flows.
Hi, thanks, nice tip. I just don t get, how do you send this API. You have only ulr and body, but you do not have any headers, protocol number and other API call attributes How come?. It does not look like API request I am used to see. Thanks for your reply in advance
Heyooo. 👋 I'm not sure I understand. The video shows an API request being made against a public GraphQL API. The request includes the protocol (`https`), the HTTP method (`post`) and a request body - that's all it takes to receive date from the shown API. If you need to call different APIs there might be different options required, but you can set these, too, if needed. 👉 playwright.dev/docs/api/class-apirequestcontext
i love checkly
Hope more videos on GraphQL API testing using Playwright
Let's see what we can do. :) Do you have any specific topics in mind?
Graphql api automation using bdd
Thanks, that is interesting, i might use Playwright to test APIs as well since i'll be already using to e2e tests. Is it using a browser under the hood while API testing though? I hope not, as i don't see the need to have a browser context for that
I'm pretty sure `request` doesn't spin up a browser. :)
is it possible to mock api response without installing browser ?
Great question! I haven't tested it but if you're only using request this should work without installing browsers.
Hello, which tool do you use for auto complete ? Thank for everything
It's Github's Copilot. :)
Great content! Can you make video API Authentication to bypass UI login. Ty! Cheers ☺️
Let's check if I understand correctly: you would like to watch a video that shows how to login via HTTP and then pass the session data to a browser session to save time?
@@ChecklyHQ perhaps Matko wants to see how to use global-setup where you can login and save the storageState.json, then load the storageStage before all the tests thus bypassing subsequent login flows.
@@ChecklyHQ Yeah, to perform auth via API post req and then use that session in test to save time
@@Matkotech Hello, you can check this GH repository for the solution: pajdekPL/pw_structure
How is secured to use this, like vulnerable attack for our api’s.
I'm not sure I understand. Could you rephrase the question and give more explanation of the security context?
Hi, thanks, nice tip. I just don t get, how do you send this API. You have only ulr and body, but you do not have any headers, protocol number and other API call attributes How come?. It does not look like API request I am used to see.
Thanks for your reply in advance
Heyooo. 👋 I'm not sure I understand. The video shows an API request being made against a public GraphQL API. The request includes the protocol (`https`), the HTTP method (`post`) and a request body - that's all it takes to receive date from the shown API. If you need to call different APIs there might be different options required, but you can set these, too, if needed. 👉 playwright.dev/docs/api/class-apirequestcontext
cool