How to test and monitor your APIs with Playwright

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ต.ค. 2024

ความคิดเห็น • 15

  • @tiagosutter8821
    @tiagosutter8821 5 หลายเดือนก่อน +1

    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

    • @ChecklyHQ
      @ChecklyHQ  5 หลายเดือนก่อน

      I'm pretty sure `request` doesn't spin up a browser. :)

  • @_unreal_engineer
    @_unreal_engineer 6 หลายเดือนก่อน +3

    i love checkly

  • @glebmirosnikovs6722
    @glebmirosnikovs6722 22 วันที่ผ่านมา

    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

    • @ChecklyHQ
      @ChecklyHQ  21 วันที่ผ่านมา

      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

  • @_unreal_engineer
    @_unreal_engineer 6 หลายเดือนก่อน +1

    Hello, which tool do you use for auto complete ? Thank for everything

    • @ChecklyHQ
      @ChecklyHQ  6 หลายเดือนก่อน +1

      It's Github's Copilot. :)

  • @uvitalkumar
    @uvitalkumar 5 หลายเดือนก่อน

    Hope more videos on GraphQL API testing using Playwright

    • @ChecklyHQ
      @ChecklyHQ  5 หลายเดือนก่อน

      Let's see what we can do. :) Do you have any specific topics in mind?

    • @epicgamers1998
      @epicgamers1998 3 หลายเดือนก่อน

      Graphql api automation using bdd

  • @Matkotech
    @Matkotech 6 หลายเดือนก่อน +1

    Great content! Can you make video API Authentication to bypass UI login. Ty! Cheers ☺️

    • @ChecklyHQ
      @ChecklyHQ  6 หลายเดือนก่อน +1

      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?

    • @carldmitch
      @carldmitch 6 หลายเดือนก่อน +1

      @@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.

    • @Matkotech
      @Matkotech 5 หลายเดือนก่อน

      @@ChecklyHQ Yeah, to perform auth via API post req and then use that session in test to save time

    • @adampajda3204
      @adampajda3204 28 วันที่ผ่านมา

      @@Matkotech Hello, you can check this GH repository for the solution: pajdekPL/pw_structure