An introduction to performance testing with open source tools, with Simon Aronsson

Sdílet
Vložit
  • čas přidán 22. 08. 2024
  • Simon Aronsson giving an introduction on how to do performance testing with open-source tools. Recorded 14th January 2021 at the Passion for Testing online meetup.
    To join their excellent meetup, visit www.meetup.com...

Komentáře • 9

  • @srpelissier
    @srpelissier Před 2 lety

    const failures = new Rate('failed requests') must be written 'failed_requests' to avoid the error "reason: no metric name "failed_requests" found"

    • @gravielsosa688
      @gravielsosa688 Před 2 lety

      you should change the thresholds by threshold, this change fixed my error

    • @vishnunanditaramisetty2406
      @vishnunanditaramisetty2406 Před rokem +1

      Kindly change as below
      const failures = new Rate('failed Requests');
      export const options = {
      vus: 10,
      duration: '10s',
      thresholds: {
      http_req_failed: ['rate

  • @saikiranreddypasham3765
    @saikiranreddypasham3765 Před 2 lety +1

    How to authenticate the API with bearer token in K6..? Need help

    • @k6io
      @k6io  Před 2 lety +2

      Hi Saikiran! You can use headers to pass your bearer token. There's an example of how to use headers on these docs: k6.io/docs/using-k6/http-requests/

    • @aryandhakal11
      @aryandhakal11 Před 2 lety

      @@k6io Hii, I cannot seem to find the required information about passing bearer token as header except in Examples section of the docs, but that portion is complex and hard to understand. Could you please help in this matter?

    • @zeeshan.anjum.junaidi
      @zeeshan.anjum.junaidi Před 2 lety +1

      @@aryandhakal11 You can use something like this.
      const result = http.get(secret_url.toString(), {
      headers: {
      Authorization: `Bearer ${auth_token}`,
      "Content-Type": "application/json"
      }
      }).json();