How to test and monitor your APIs with Playwright

Поділитися
Вставка
  • Опубліковано 6 лют 2025

КОМЕНТАРІ • 20

  • @_unreal_engineer
    @_unreal_engineer 9 місяців тому +3

    i love checkly

  • @uvitalkumar
    @uvitalkumar 9 місяців тому +1

    Hope more videos on GraphQL API testing using Playwright

    • @ChecklyHQ
      @ChecklyHQ  9 місяців тому +1

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

    • @Tgcars1998
      @Tgcars1998 7 місяців тому +1

      Graphql api automation using bdd

  • @tiagosutter8821
    @tiagosutter8821 9 місяців тому +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  9 місяців тому

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

  • @vladimirovodenko7320
    @vladimirovodenko7320 2 місяці тому +1

    is it possible to mock api response without installing browser ?

    • @ChecklyHQ
      @ChecklyHQ  2 місяці тому

      Great question! I haven't tested it but if you're only using request this should work without installing browsers.

  • @_unreal_engineer
    @_unreal_engineer 9 місяців тому +1

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

    • @ChecklyHQ
      @ChecklyHQ  9 місяців тому +1

      It's Github's Copilot. :)

  • @Matkotech
    @Matkotech 9 місяців тому +2

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

    • @ChecklyHQ
      @ChecklyHQ  9 місяців тому +2

      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 9 місяців тому +2

      @@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 9 місяців тому

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

    • @adampajda3204
      @adampajda3204 4 місяці тому

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

  • @MoahmedAmaan
    @MoahmedAmaan Місяць тому

    How is secured to use this, like vulnerable attack for our api’s.

    • @ChecklyHQ
      @ChecklyHQ  Місяць тому

      I'm not sure I understand. Could you rephrase the question and give more explanation of the security context?

  • @glebmirosnikovs6722
    @glebmirosnikovs6722 4 місяці тому

    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  4 місяці тому

      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

  • @emboytido
    @emboytido Місяць тому

    cool