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

  Рет қаралды 7,184

k6

k6

Күн бұрын

Пікірлер: 9
@saikiranreddypasham3765
@saikiranreddypasham3765 2 жыл бұрын
How to authenticate the API with bearer token in K6..? Need help
@k6io
@k6io 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 2 жыл бұрын
@@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 2 жыл бұрын
@@aryandhakal11 You can use something like this. const result = http.get(secret_url.toString(), { headers: { Authorization: `Bearer ${auth_token}`, "Content-Type": "application/json" } }).json();
@srpelissier
@srpelissier 2 жыл бұрын
const failures = new Rate('failed requests') must be written 'failed_requests' to avoid the error "reason: no metric name "failed_requests" found"
@gravielsosa688
@gravielsosa688 2 жыл бұрын
you should change the thresholds by threshold, this change fixed my error
@vishnunanditaramisetty2406
@vishnunanditaramisetty2406 Жыл бұрын
Kindly change as below const failures = new Rate('failed Requests'); export const options = { vus: 10, duration: '10s', thresholds: { http_req_failed: ['rate
Performance Testing your web app with k6
38:25
Chris James
Рет қаралды 59 М.
What's in the clown's bag? #clown #angel #bunnypolice
00:19
超人夫妇
Рет қаралды 36 МЛН
When mom gets home, but you're in rollerblades.
00:40
Daniel LaBelle
Рет қаралды 86 МЛН
Ouch.. 🤕⚽️
00:25
Celine Dept
Рет қаралды 27 МЛН
Frontend Performance Testing Using Xk6
25:47
Automation Testing with Joe Colantonio
Рет қаралды 4,4 М.
Testing Types (k6 Office Hours #88)
1:01:58
k6
Рет қаралды 503
Schema testing with k6 (k6 Office Hours #87)
59:49
Microsoft Makes Windows Worse With AI
9:34
Mental Outlaw
Рет қаралды 172 М.
The Best Performance And Load Testing Tool? k6 By Grafana Labs
36:08
DevOps Toolkit
Рет қаралды 46 М.
What's in the clown's bag? #clown #angel #bunnypolice
00:19
超人夫妇
Рет қаралды 36 МЛН