An introduction to performance testing with open source tools, with Simon Aronsson
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...
const failures = new Rate('failed requests') must be written 'failed_requests' to avoid the error "reason: no metric name "failed_requests" found"
you should change the thresholds by threshold, this change fixed my error
Kindly change as below
const failures = new Rate('failed Requests');
export const options = {
vus: 10,
duration: '10s',
thresholds: {
http_req_failed: ['rate
How to authenticate the API with bearer token in K6..? Need help
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/
@@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?
@@aryandhakal11 You can use something like this.
const result = http.get(secret_url.toString(), {
headers: {
Authorization: `Bearer ${auth_token}`,
"Content-Type": "application/json"
}
}).json();