k6-cucumber-steps 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +17 -0
- package/.env.example +17 -0
- package/.github/workflows/k6-load-test.yml +35 -0
- package/.vscode/extensions.json +5 -0
- package/.vscode/settings.json +10 -0
- package/LICENSE +21 -0
- package/README.md +179 -0
- package/assets/k6-cucumber-report.png +0 -0
- package/assets/paschal logo (2).png +0 -0
- package/cucumber.js +26 -0
- package/generateReport.js +24 -0
- package/libs/helpers/buildK6Script.js +94 -0
- package/libs/helpers/generateHeaders.js +29 -0
- package/libs/helpers/resolveBody.js +55 -0
- package/libs/utils/k6Runner.js +71 -0
- package/package.json +60 -0
- package/reports/load-results.json +231 -0
- package/reports/report.html +1234 -0
- package/step_definitions/load_test_steps.js +130 -0
- package/step_definitions/world.js +13 -0
- package/temp/k6_script.js +27 -0
- package/tmp/k6_script_01d24b4b-b76e-45b1-a457-9668fb82d33a.js +32 -0
- package/tmp/k6_script_1438a7b8-37a7-4556-8da9-12e588e666da.js +32 -0
- package/tmp/k6_script_15971355-7bba-45c2-85a8-81899162beab.js +32 -0
- package/tmp/k6_script_32f4609f-8abb-4d48-9454-321bd66409eb.js +32 -0
- package/tmp/k6_script_42cd4c8b-dee1-4b23-997b-ca1b0b8aae34.js +32 -0
- package/tmp/k6_script_49e30b01-9631-4b7f-a2e9-f538bfdade19.js +31 -0
- package/tmp/k6_script_4c01eb2e-b7d2-4597-a146-a6990dd92853.js +32 -0
- package/tmp/k6_script_4d779cfb-0c34-472c-b5fe-85ceb25f2422.js +31 -0
- package/tmp/k6_script_4f00954e-7f02-4c0c-8a89-df8183266fac.js +32 -0
- package/tmp/k6_script_4f166411-c40b-44a9-9561-94ab8d4c97bd.js +32 -0
- package/tmp/k6_script_4fba8ca6-c90f-467e-bc49-15f30a8eae81.js +32 -0
- package/tmp/k6_script_5054b6db-ae03-453e-ad29-8b79869c17b7.js +32 -0
- package/tmp/k6_script_5d64d2e5-7cde-4313-969c-ca14c9178bff.js +32 -0
- package/tmp/k6_script_61db2aea-6187-4b51-b450-67f773c8050c.js +32 -0
- package/tmp/k6_script_6b6147df-69a8-4ed3-9479-0edd8a3e64cd.js +32 -0
- package/tmp/k6_script_6dda7a7d-dd36-4775-87f5-d0365715ae2b.js +32 -0
- package/tmp/k6_script_6fca496e-f9d3-47e6-b214-8b998b69e9c8.js +32 -0
- package/tmp/k6_script_7ca87434-af5c-4ecc-9a7e-0ce7ae5c05c3.js +32 -0
- package/tmp/k6_script_7ff302b6-5bfd-440d-a7e4-bf60cf3ec23b.js +31 -0
- package/tmp/k6_script_817f7c24-46a8-4c8e-8c8b-7d63ae8c90f9.js +32 -0
- package/tmp/k6_script_88b6b615-94b7-4af4-a05b-40439f73c38a.js +32 -0
- package/tmp/k6_script_8a9b2d06-fdf9-408b-98e6-4228e039f66b.js +32 -0
- package/tmp/k6_script_93acfc41-ce38-4363-8394-faf4568c62a7.js +33 -0
- package/tmp/k6_script_9424816a-7712-400d-80b1-235cf298b102.js +32 -0
- package/tmp/k6_script_a8ddb599-632f-4a05-9d6f-b99c93e7533f.js +32 -0
- package/tmp/k6_script_a9b18f14-bf36-4423-a706-1e132ff3cfda.js +32 -0
- package/tmp/k6_script_a9eb065f-d0b9-42b8-b4fa-90d9c67787a4.js +32 -0
- package/tmp/k6_script_aac9cc10-b5cd-4fd6-9ba7-ad37b55a5e0c.js +32 -0
- package/tmp/k6_script_ac7f2225-f35b-4330-aa95-ea7468d652ed.js +32 -0
- package/tmp/k6_script_acb5057c-60cc-47b3-b8aa-718912587694.js +32 -0
- package/tmp/k6_script_aecaaf81-a2e9-4342-a90b-3077eba3fdbe.js +32 -0
- package/tmp/k6_script_b054781a-fbe3-41ab-8a55-52c7923bb4e3.js +32 -0
- package/tmp/k6_script_b210e574-c636-4b1a-9245-f9d9ce9ba731.js +32 -0
- package/tmp/k6_script_b4abecc0-91a9-4dc4-8e40-480a31b7954e.js +32 -0
- package/tmp/k6_script_b5a61631-afe3-47c4-af92-40213c3afe1a.js +32 -0
- package/tmp/k6_script_b6c1de34-edde-4e1d-be3f-504147837617.js +32 -0
- package/tmp/k6_script_be52dc14-7325-4ba0-ba2c-125c1dffab0c.js +42 -0
- package/tmp/k6_script_c2dbe965-703c-4c8d-83f0-db2eb73b1ab3.js +32 -0
- package/tmp/k6_script_c2ecca4f-7a01-4560-9fe0-4a5184497482.js +33 -0
- package/tmp/k6_script_cd13c408-4d59-490a-b788-f2e69ab5aeac.js +32 -0
- package/tmp/k6_script_cde84f7c-9d97-4c51-a315-005af6463f40.js +33 -0
- package/tmp/k6_script_cfbf49b0-d50a-4e00-b0ee-c1f37ae101bc.js +32 -0
- package/tmp/k6_script_d0599a1d-7fe5-4a58-b1f7-571a9c586732.js +32 -0
- package/tmp/k6_script_d1cd0a14-dc18-4034-a859-cd8b30da7c68.js +32 -0
- package/tmp/k6_script_d2365925-9612-48b5-87e9-4ecd81212133.js +32 -0
- package/tmp/k6_script_d38531f2-a437-4117-a4d3-076a11f7dfa6.js +32 -0
- package/tmp/k6_script_d415abc5-41b3-4445-a8bf-9c13c3208c59.js +32 -0
- package/tmp/k6_script_d9a6e7f4-5b88-4fcf-90d8-0183a1b96608.js +32 -0
- package/tmp/k6_script_e70b4a0a-1d52-431c-92e1-a53fd6739dfc.js +32 -0
- package/tmp/k6_script_e7bc2c96-7603-468b-b4be-d609d3c2f6ce.js +32 -0
- package/tmp/k6_script_e9687b8a-7885-48e5-91ad-9dcd21acc401.js +32 -0
- package/tmp/k6_script_ee2c199b-643d-4a78-b8df-7319e02783c1.js +32 -0
- package/tmp/k6_script_fe495d2f-7943-4151-a7fe-004ad443083d.js +32 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
import http from 'k6/http';
|
|
3
|
+
import { check } from 'k6';
|
|
4
|
+
|
|
5
|
+
export const options = {
|
|
6
|
+
"vus": 100,
|
|
7
|
+
"duration": "15s",
|
|
8
|
+
"thresholds": {
|
|
9
|
+
"http_req_failed": [
|
|
10
|
+
"rate<0.05"
|
|
11
|
+
],
|
|
12
|
+
"http_req_duration": [
|
|
13
|
+
"p(95)<3000"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default function () {
|
|
19
|
+
|
|
20
|
+
const resolvedUrl0 = "https://runthrough-two.seamlesshrms.com/api/v1/performance/appraisal/cycle/list";
|
|
21
|
+
const res0 = http.request("GET", resolvedUrl0, null, {
|
|
22
|
+
headers: {
|
|
23
|
+
"Content-Type": "application/json",
|
|
24
|
+
"Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3J1bnRocm91Z2gtdHdvLnNlYW1sZXNzaHJtcy5jb20vYXBpL3YxL2F1dGgvbG9naW4iLCJpYXQiOjE3NDU2MjAwNDEsImV4cCI6MTc0NTYyMzY0MSwibmJmIjoxNzQ1NjIwMDQxLCJqdGkiOiJkQmZHZW9Takh3MlZ0NEF6Iiwic3ViIjoiMjI2IiwicHJ2IjoiYzIwM2QyYmJmODZhN2IyNzcyZWUyNGNhODIyNzBmOTA5NTgyZjg3YyJ9.WGdq8QMpSZvCJB6cj0hn3xrUIfhIbOE4Ft4bo8u1JKw"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
check(res0, {
|
|
28
|
+
"status is 2xx": (r) => r.status >= 200 && r.status < 300
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
import http from 'k6/http';
|
|
3
|
+
import { check } from 'k6';
|
|
4
|
+
|
|
5
|
+
export const options = {
|
|
6
|
+
"vus": 10,
|
|
7
|
+
"duration": "5s",
|
|
8
|
+
"thresholds": {
|
|
9
|
+
"http_req_failed": [
|
|
10
|
+
"rate<0.05"
|
|
11
|
+
],
|
|
12
|
+
"http_req_duration": [
|
|
13
|
+
"p(95)<1000"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default function () {
|
|
19
|
+
|
|
20
|
+
const resolvedUrl0 = "https://runthrough-two.seamlesshrms.com/api/v1/performance/appraisal/cycle/list";
|
|
21
|
+
const res0 = http.request("GET", resolvedUrl0, null, {
|
|
22
|
+
headers: {
|
|
23
|
+
"Content-Type": "application/json",
|
|
24
|
+
"Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3J1bnRocm91Z2gtdHdvLnNlYW1sZXNzaHJtcy5jb20vYXBpL3YxL2F1dGgvbG9naW4iLCJpYXQiOjE3NDU2MjAwNDEsImV4cCI6MTc0NTYyMzY0MSwibmJmIjoxNzQ1NjIwMDQxLCJqdGkiOiJkQmZHZW9Takh3MlZ0NEF6Iiwic3ViIjoiMjI2IiwicHJ2IjoiYzIwM2QyYmJmODZhN2IyNzcyZWUyNGNhODIyNzBmOTA5NTgyZjg3YyJ9.WGdq8QMpSZvCJB6cj0hn3xrUIfhIbOE4Ft4bo8u1JKw"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
check(res0, {
|
|
28
|
+
"status is 2xx": (r) => r.status >= 200 && r.status < 300
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
import http from 'k6/http';
|
|
3
|
+
import { check } from 'k6';
|
|
4
|
+
|
|
5
|
+
export const options = {
|
|
6
|
+
"vus": 10,
|
|
7
|
+
"duration": "5s",
|
|
8
|
+
"thresholds": {
|
|
9
|
+
"http_req_failed": [
|
|
10
|
+
"rate<0.05"
|
|
11
|
+
],
|
|
12
|
+
"http_req_duration": [
|
|
13
|
+
"p(95)<5000"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default function () {
|
|
19
|
+
|
|
20
|
+
const resolvedUrl0 = "https://runthrough-two.seamlesshrms.com/api/v1/performance/appraisal/cycle/list";
|
|
21
|
+
const res0 = http.request("GET", resolvedUrl0, null, {
|
|
22
|
+
headers: {
|
|
23
|
+
"Content-Type": "application/json",
|
|
24
|
+
"Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3J1bnRocm91Z2gtdHdvLnNlYW1sZXNzaHJtcy5jb20vYXBpL3YxL2F1dGgvbG9naW4iLCJpYXQiOjE3NDU2MjAwNDEsImV4cCI6MTc0NTYyMzY0MSwibmJmIjoxNzQ1NjIwMDQxLCJqdGkiOiJkQmZHZW9Takh3MlZ0NEF6Iiwic3ViIjoiMjI2IiwicHJ2IjoiYzIwM2QyYmJmODZhN2IyNzcyZWUyNGNhODIyNzBmOTA5NTgyZjg3YyJ9.WGdq8QMpSZvCJB6cj0hn3xrUIfhIbOE4Ft4bo8u1JKw"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
check(res0, {
|
|
28
|
+
"status is 2xx": (r) => r.status >= 200 && r.status < 300
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
import http from 'k6/http';
|
|
3
|
+
import { check } from 'k6';
|
|
4
|
+
|
|
5
|
+
export const options = {
|
|
6
|
+
"vus": 10,
|
|
7
|
+
"duration": "5s",
|
|
8
|
+
"thresholds": {
|
|
9
|
+
"http_req_failed": [
|
|
10
|
+
"rate<0.05"
|
|
11
|
+
],
|
|
12
|
+
"http_req_duration": [
|
|
13
|
+
"p(95)<1000"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default function () {
|
|
19
|
+
|
|
20
|
+
const res0 = http.request("GET", "/api/v1/performance/appraisal/cycle/list", null, {
|
|
21
|
+
headers: {
|
|
22
|
+
"Content-Type": "application/json",
|
|
23
|
+
"Authorization": "Bearer "
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
check(res0, {
|
|
27
|
+
"status is 2xx": (r) => r.status >= 200 && r.status < 300
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
import http from 'k6/http';
|
|
3
|
+
import { check } from 'k6';
|
|
4
|
+
|
|
5
|
+
export const options = {
|
|
6
|
+
"vus": 50,
|
|
7
|
+
"duration": "10s",
|
|
8
|
+
"thresholds": {
|
|
9
|
+
"http_req_failed": [
|
|
10
|
+
"rate<0.05"
|
|
11
|
+
],
|
|
12
|
+
"http_req_duration": [
|
|
13
|
+
"p(95)<1500"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default function () {
|
|
19
|
+
|
|
20
|
+
const resolvedUrl0 = "https://runthrough-two.seamlesshrms.com/api/v1/performance/appraisal/cycle/list";
|
|
21
|
+
const res0 = http.request("GET", resolvedUrl0, null, {
|
|
22
|
+
headers: {
|
|
23
|
+
"Content-Type": "application/json",
|
|
24
|
+
"Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3J1bnRocm91Z2gtdHdvLnNlYW1sZXNzaHJtcy5jb20vYXBpL3YxL2F1dGgvbG9naW4iLCJpYXQiOjE3NDU2MjAwNDEsImV4cCI6MTc0NTYyMzY0MSwibmJmIjoxNzQ1NjIwMDQxLCJqdGkiOiJkQmZHZW9Takh3MlZ0NEF6Iiwic3ViIjoiMjI2IiwicHJ2IjoiYzIwM2QyYmJmODZhN2IyNzcyZWUyNGNhODIyNzBmOTA5NTgyZjg3YyJ9.WGdq8QMpSZvCJB6cj0hn3xrUIfhIbOE4Ft4bo8u1JKw"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
check(res0, {
|
|
28
|
+
"status is 2xx": (r) => r.status >= 200 && r.status < 300
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
import http from 'k6/http';
|
|
3
|
+
import { check } from 'k6';
|
|
4
|
+
|
|
5
|
+
export const options = {
|
|
6
|
+
"vus": 50,
|
|
7
|
+
"duration": "10s",
|
|
8
|
+
"thresholds": {
|
|
9
|
+
"http_req_failed": [
|
|
10
|
+
"rate<0.05"
|
|
11
|
+
],
|
|
12
|
+
"http_req_duration": [
|
|
13
|
+
"p(95)<3000"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default function () {
|
|
19
|
+
|
|
20
|
+
const resolvedUrl0 = "https://runthrough-two.seamlesshrms.com/api/v1/performance/appraisal/cycle/list";
|
|
21
|
+
const res0 = http.request("GET", resolvedUrl0, null, {
|
|
22
|
+
headers: {
|
|
23
|
+
"Content-Type": "application/json",
|
|
24
|
+
"Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3J1bnRocm91Z2gtdHdvLnNlYW1sZXNzaHJtcy5jb20vYXBpL3YxL2F1dGgvbG9naW4iLCJpYXQiOjE3NDU2MjAwNDEsImV4cCI6MTc0NTYyMzY0MSwibmJmIjoxNzQ1NjIwMDQxLCJqdGkiOiJkQmZHZW9Takh3MlZ0NEF6Iiwic3ViIjoiMjI2IiwicHJ2IjoiYzIwM2QyYmJmODZhN2IyNzcyZWUyNGNhODIyNzBmOTA5NTgyZjg3YyJ9.WGdq8QMpSZvCJB6cj0hn3xrUIfhIbOE4Ft4bo8u1JKw"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
check(res0, {
|
|
28
|
+
"status is 2xx": (r) => r.status >= 200 && r.status < 300
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
import http from 'k6/http';
|
|
3
|
+
import { check } from 'k6';
|
|
4
|
+
|
|
5
|
+
export const options = {
|
|
6
|
+
"vus": 200,
|
|
7
|
+
"duration": "20s",
|
|
8
|
+
"thresholds": {
|
|
9
|
+
"http_req_failed": [
|
|
10
|
+
"rate<0.05"
|
|
11
|
+
],
|
|
12
|
+
"http_req_duration": [
|
|
13
|
+
"p(95)<3000"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default function () {
|
|
19
|
+
|
|
20
|
+
const resolvedUrl0 = "https://runthrough-two.seamlesshrms.com/api/v1/performance/appraisal/cycle/list";
|
|
21
|
+
const res0 = http.request("GET", resolvedUrl0, null, {
|
|
22
|
+
headers: {
|
|
23
|
+
"Content-Type": "application/json",
|
|
24
|
+
"Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3J1bnRocm91Z2gtdHdvLnNlYW1sZXNzaHJtcy5jb20vYXBpL3YxL2F1dGgvbG9naW4iLCJpYXQiOjE3NDU2MjAwNDEsImV4cCI6MTc0NTYyMzY0MSwibmJmIjoxNzQ1NjIwMDQxLCJqdGkiOiJkQmZHZW9Takh3MlZ0NEF6Iiwic3ViIjoiMjI2IiwicHJ2IjoiYzIwM2QyYmJmODZhN2IyNzcyZWUyNGNhODIyNzBmOTA5NTgyZjg3YyJ9.WGdq8QMpSZvCJB6cj0hn3xrUIfhIbOE4Ft4bo8u1JKw"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
check(res0, {
|
|
28
|
+
"status is 2xx": (r) => r.status >= 200 && r.status < 300
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
import http from 'k6/http';
|
|
3
|
+
import { check } from 'k6';
|
|
4
|
+
|
|
5
|
+
export const options = {
|
|
6
|
+
"vus": 10,
|
|
7
|
+
"duration": "5s",
|
|
8
|
+
"thresholds": {
|
|
9
|
+
"http_req_failed": [
|
|
10
|
+
"rate<0.05"
|
|
11
|
+
],
|
|
12
|
+
"http_req_duration": [
|
|
13
|
+
"p(95)<1000"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default function () {
|
|
19
|
+
|
|
20
|
+
const resolvedUrl0 = "https://runthrough-two.seamlesshrms.com/api/v1/performance/appraisal/cycle/list";
|
|
21
|
+
console.log("Resolved URL:", resolvedUrl0);
|
|
22
|
+
const res0 = http.request("GET", resolvedUrl0, null, {
|
|
23
|
+
headers: {
|
|
24
|
+
"Content-Type": "application/json",
|
|
25
|
+
"Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3J1bnRocm91Z2gtdHdvLnNlYW1sZXNzaHJtcy5jb20vYXBpL3YxL2F1dGgvbG9naW4iLCJpYXQiOjE3NDU2MjAwNDEsImV4cCI6MTc0NTYyMzY0MSwibmJmIjoxNzQ1NjIwMDQxLCJqdGkiOiJkQmZHZW9Takh3MlZ0NEF6Iiwic3ViIjoiMjI2IiwicHJ2IjoiYzIwM2QyYmJmODZhN2IyNzcyZWUyNGNhODIyNzBmOTA5NTgyZjg3YyJ9.WGdq8QMpSZvCJB6cj0hn3xrUIfhIbOE4Ft4bo8u1JKw"
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
check(res0, {
|
|
29
|
+
"status is 2xx": (r) => r.status >= 200 && r.status < 300
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
}
|
|
33
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
import http from 'k6/http';
|
|
3
|
+
import { check } from 'k6';
|
|
4
|
+
|
|
5
|
+
export const options = {
|
|
6
|
+
"vus": 100,
|
|
7
|
+
"duration": "15s",
|
|
8
|
+
"thresholds": {
|
|
9
|
+
"http_req_failed": [
|
|
10
|
+
"rate<0.05"
|
|
11
|
+
],
|
|
12
|
+
"http_req_duration": [
|
|
13
|
+
"p(95)<2000"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default function () {
|
|
19
|
+
|
|
20
|
+
const resolvedUrl0 = "https://runthrough-two.seamlesshrms.com/api/v1/performance/appraisal/cycle/list";
|
|
21
|
+
const res0 = http.request("GET", resolvedUrl0, null, {
|
|
22
|
+
headers: {
|
|
23
|
+
"Content-Type": "application/json",
|
|
24
|
+
"Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3J1bnRocm91Z2gtdHdvLnNlYW1sZXNzaHJtcy5jb20vYXBpL3YxL2F1dGgvbG9naW4iLCJpYXQiOjE3NDU2MjAwNDEsImV4cCI6MTc0NTYyMzY0MSwibmJmIjoxNzQ1NjIwMDQxLCJqdGkiOiJkQmZHZW9Takh3MlZ0NEF6Iiwic3ViIjoiMjI2IiwicHJ2IjoiYzIwM2QyYmJmODZhN2IyNzcyZWUyNGNhODIyNzBmOTA5NTgyZjg3YyJ9.WGdq8QMpSZvCJB6cj0hn3xrUIfhIbOE4Ft4bo8u1JKw"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
check(res0, {
|
|
28
|
+
"status is 2xx": (r) => r.status >= 200 && r.status < 300
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
import http from 'k6/http';
|
|
3
|
+
import { check } from 'k6';
|
|
4
|
+
|
|
5
|
+
export const options = {
|
|
6
|
+
"vus": 50,
|
|
7
|
+
"duration": "10s",
|
|
8
|
+
"thresholds": {
|
|
9
|
+
"http_req_failed": [
|
|
10
|
+
"rate<0.05"
|
|
11
|
+
],
|
|
12
|
+
"http_req_duration": [
|
|
13
|
+
"p(95)<3000"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default function () {
|
|
19
|
+
|
|
20
|
+
const resolvedUrl0 = "https://runthrough-two.seamlesshrms.com/api/v1/performance/appraisal/cycle/list";
|
|
21
|
+
const res0 = http.request("GET", resolvedUrl0, null, {
|
|
22
|
+
headers: {
|
|
23
|
+
"Content-Type": "application/json",
|
|
24
|
+
"Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3J1bnRocm91Z2gtdHdvLnNlYW1sZXNzaHJtcy5jb20vYXBpL3YxL2F1dGgvbG9naW4iLCJpYXQiOjE3NDU2MjAwNDEsImV4cCI6MTc0NTYyMzY0MSwibmJmIjoxNzQ1NjIwMDQxLCJqdGkiOiJkQmZHZW9Takh3MlZ0NEF6Iiwic3ViIjoiMjI2IiwicHJ2IjoiYzIwM2QyYmJmODZhN2IyNzcyZWUyNGNhODIyNzBmOTA5NTgyZjg3YyJ9.WGdq8QMpSZvCJB6cj0hn3xrUIfhIbOE4Ft4bo8u1JKw"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
check(res0, {
|
|
28
|
+
"status is 2xx": (r) => r.status >= 200 && r.status < 300
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
import http from 'k6/http';
|
|
3
|
+
import { check } from 'k6';
|
|
4
|
+
|
|
5
|
+
export const options = {
|
|
6
|
+
"vus": 100,
|
|
7
|
+
"duration": "15s",
|
|
8
|
+
"thresholds": {
|
|
9
|
+
"http_req_failed": [
|
|
10
|
+
"rate<0.05"
|
|
11
|
+
],
|
|
12
|
+
"http_req_duration": [
|
|
13
|
+
"p(95)<1500"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default function () {
|
|
19
|
+
|
|
20
|
+
const resolvedUrl0 = "https://runthrough-two.seamlesshrms.com/api/v1/performance/appraisal/cycle/list";
|
|
21
|
+
const res0 = http.request("GET", resolvedUrl0, null, {
|
|
22
|
+
headers: {
|
|
23
|
+
"Content-Type": "application/json",
|
|
24
|
+
"Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3J1bnRocm91Z2gtdHdvLnNlYW1sZXNzaHJtcy5jb20vYXBpL3YxL2F1dGgvbG9naW4iLCJpYXQiOjE3NDU2MjAwNDEsImV4cCI6MTc0NTYyMzY0MSwibmJmIjoxNzQ1NjIwMDQxLCJqdGkiOiJkQmZHZW9Takh3MlZ0NEF6Iiwic3ViIjoiMjI2IiwicHJ2IjoiYzIwM2QyYmJmODZhN2IyNzcyZWUyNGNhODIyNzBmOTA5NTgyZjg3YyJ9.WGdq8QMpSZvCJB6cj0hn3xrUIfhIbOE4Ft4bo8u1JKw"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
check(res0, {
|
|
28
|
+
"status is 2xx": (r) => r.status >= 200 && r.status < 300
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
import http from 'k6/http';
|
|
3
|
+
import { check } from 'k6';
|
|
4
|
+
|
|
5
|
+
export const options = {
|
|
6
|
+
"vus": 10,
|
|
7
|
+
"duration": "5s",
|
|
8
|
+
"thresholds": {
|
|
9
|
+
"http_req_failed": [
|
|
10
|
+
"rate<0.05"
|
|
11
|
+
],
|
|
12
|
+
"http_req_duration": [
|
|
13
|
+
"p(95)<1500"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default function () {
|
|
19
|
+
|
|
20
|
+
const resolvedUrl0 = "https://runthrough-two.seamlesshrms.com/api/v1/performance/appraisal/cycle/list";
|
|
21
|
+
const res0 = http.request("GET", resolvedUrl0, null, {
|
|
22
|
+
headers: {
|
|
23
|
+
"Content-Type": "application/json",
|
|
24
|
+
"Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3J1bnRocm91Z2gtdHdvLnNlYW1sZXNzaHJtcy5jb20vYXBpL3YxL2F1dGgvbG9naW4iLCJpYXQiOjE3NDU2MjAwNDEsImV4cCI6MTc0NTYyMzY0MSwibmJmIjoxNzQ1NjIwMDQxLCJqdGkiOiJkQmZHZW9Takh3MlZ0NEF6Iiwic3ViIjoiMjI2IiwicHJ2IjoiYzIwM2QyYmJmODZhN2IyNzcyZWUyNGNhODIyNzBmOTA5NTgyZjg3YyJ9.WGdq8QMpSZvCJB6cj0hn3xrUIfhIbOE4Ft4bo8u1JKw"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
check(res0, {
|
|
28
|
+
"status is 2xx": (r) => r.status >= 200 && r.status < 300
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
import http from 'k6/http';
|
|
3
|
+
import { check } from 'k6';
|
|
4
|
+
|
|
5
|
+
export const options = {
|
|
6
|
+
"vus": 10,
|
|
7
|
+
"duration": "5s",
|
|
8
|
+
"thresholds": {
|
|
9
|
+
"http_req_failed": [
|
|
10
|
+
"rate<0.05"
|
|
11
|
+
],
|
|
12
|
+
"http_req_duration": [
|
|
13
|
+
"p(95)<5000"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default function () {
|
|
19
|
+
|
|
20
|
+
const resolvedUrl0 = "https://runthrough-two.seamlesshrms.com/api/v1/performance/appraisal/cycle/list";
|
|
21
|
+
const res0 = http.request("GET", resolvedUrl0, null, {
|
|
22
|
+
headers: {
|
|
23
|
+
"Content-Type": "application/json",
|
|
24
|
+
"Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3J1bnRocm91Z2gtdHdvLnNlYW1sZXNzaHJtcy5jb20vYXBpL3YxL2F1dGgvbG9naW4iLCJpYXQiOjE3NDU2MjAwNDEsImV4cCI6MTc0NTYyMzY0MSwibmJmIjoxNzQ1NjIwMDQxLCJqdGkiOiJkQmZHZW9Takh3MlZ0NEF6Iiwic3ViIjoiMjI2IiwicHJ2IjoiYzIwM2QyYmJmODZhN2IyNzcyZWUyNGNhODIyNzBmOTA5NTgyZjg3YyJ9.WGdq8QMpSZvCJB6cj0hn3xrUIfhIbOE4Ft4bo8u1JKw"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
check(res0, {
|
|
28
|
+
"status is 2xx": (r) => r.status >= 200 && r.status < 300
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
import http from 'k6/http';
|
|
3
|
+
import { check } from 'k6';
|
|
4
|
+
|
|
5
|
+
export const options = {
|
|
6
|
+
"vus": 200,
|
|
7
|
+
"duration": "20s",
|
|
8
|
+
"thresholds": {
|
|
9
|
+
"http_req_failed": [
|
|
10
|
+
"rate<0.05"
|
|
11
|
+
],
|
|
12
|
+
"http_req_duration": [
|
|
13
|
+
"p(95)<3000"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default function () {
|
|
19
|
+
|
|
20
|
+
const resolvedUrl0 = "https://runthrough-two.seamlesshrms.com/api/v1/performance/appraisal/cycle/list";
|
|
21
|
+
const res0 = http.request("GET", resolvedUrl0, null, {
|
|
22
|
+
headers: {
|
|
23
|
+
"Content-Type": "application/json",
|
|
24
|
+
"Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3J1bnRocm91Z2gtdHdvLnNlYW1sZXNzaHJtcy5jb20vYXBpL3YxL2F1dGgvbG9naW4iLCJpYXQiOjE3NDU2MjAwNDEsImV4cCI6MTc0NTYyMzY0MSwibmJmIjoxNzQ1NjIwMDQxLCJqdGkiOiJkQmZHZW9Takh3MlZ0NEF6Iiwic3ViIjoiMjI2IiwicHJ2IjoiYzIwM2QyYmJmODZhN2IyNzcyZWUyNGNhODIyNzBmOTA5NTgyZjg3YyJ9.WGdq8QMpSZvCJB6cj0hn3xrUIfhIbOE4Ft4bo8u1JKw"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
check(res0, {
|
|
28
|
+
"status is 2xx": (r) => r.status >= 200 && r.status < 300
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
import http from 'k6/http';
|
|
3
|
+
import { check } from 'k6';
|
|
4
|
+
|
|
5
|
+
export const options = {
|
|
6
|
+
"vus": 100,
|
|
7
|
+
"duration": "15s",
|
|
8
|
+
"thresholds": {
|
|
9
|
+
"http_req_failed": [
|
|
10
|
+
"rate<0.05"
|
|
11
|
+
],
|
|
12
|
+
"http_req_duration": [
|
|
13
|
+
"p(95)<3000"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default function () {
|
|
19
|
+
|
|
20
|
+
const resolvedUrl0 = "https://runthrough-two.seamlesshrms.com/api/v1/performance/appraisal/cycle/list";
|
|
21
|
+
const res0 = http.request("GET", resolvedUrl0, null, {
|
|
22
|
+
headers: {
|
|
23
|
+
"Content-Type": "application/json",
|
|
24
|
+
"Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3J1bnRocm91Z2gtdHdvLnNlYW1sZXNzaHJtcy5jb20vYXBpL3YxL2F1dGgvbG9naW4iLCJpYXQiOjE3NDU2MjAwNDEsImV4cCI6MTc0NTYyMzY0MSwibmJmIjoxNzQ1NjIwMDQxLCJqdGkiOiJkQmZHZW9Takh3MlZ0NEF6Iiwic3ViIjoiMjI2IiwicHJ2IjoiYzIwM2QyYmJmODZhN2IyNzcyZWUyNGNhODIyNzBmOTA5NTgyZjg3YyJ9.WGdq8QMpSZvCJB6cj0hn3xrUIfhIbOE4Ft4bo8u1JKw"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
check(res0, {
|
|
28
|
+
"status is 2xx": (r) => r.status >= 200 && r.status < 300
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
import http from 'k6/http';
|
|
3
|
+
import { check } from 'k6';
|
|
4
|
+
|
|
5
|
+
export const options = {
|
|
6
|
+
"vus": 10,
|
|
7
|
+
"duration": "5s",
|
|
8
|
+
"thresholds": {
|
|
9
|
+
"http_req_failed": [
|
|
10
|
+
"rate<0.05"
|
|
11
|
+
],
|
|
12
|
+
"http_req_duration": [
|
|
13
|
+
"p(95)<3000"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default function () {
|
|
19
|
+
|
|
20
|
+
const resolvedUrl0 = "https://runthrough-two.seamlesshrms.com/api/v1/performance/appraisal/cycle/list";
|
|
21
|
+
const res0 = http.request("GET", resolvedUrl0, null, {
|
|
22
|
+
headers: {
|
|
23
|
+
"Content-Type": "application/json",
|
|
24
|
+
"Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3J1bnRocm91Z2gtdHdvLnNlYW1sZXNzaHJtcy5jb20vYXBpL3YxL2F1dGgvbG9naW4iLCJpYXQiOjE3NDU2MjAwNDEsImV4cCI6MTc0NTYyMzY0MSwibmJmIjoxNzQ1NjIwMDQxLCJqdGkiOiJkQmZHZW9Takh3MlZ0NEF6Iiwic3ViIjoiMjI2IiwicHJ2IjoiYzIwM2QyYmJmODZhN2IyNzcyZWUyNGNhODIyNzBmOTA5NTgyZjg3YyJ9.WGdq8QMpSZvCJB6cj0hn3xrUIfhIbOE4Ft4bo8u1JKw"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
check(res0, {
|
|
28
|
+
"status is 2xx": (r) => r.status >= 200 && r.status < 300
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
import http from 'k6/http';
|
|
3
|
+
import { check } from 'k6';
|
|
4
|
+
|
|
5
|
+
export const options = {
|
|
6
|
+
"vus": 10,
|
|
7
|
+
"duration": "5s",
|
|
8
|
+
"thresholds": {
|
|
9
|
+
"http_req_failed": [
|
|
10
|
+
"rate<0.05"
|
|
11
|
+
],
|
|
12
|
+
"http_req_duration": [
|
|
13
|
+
"p(95)<1000"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default function () {
|
|
19
|
+
|
|
20
|
+
const resolvedUrl0 = "https://runthrough-two.seamlesshrms.com/api/v1/performance/appraisal/cycle/list";
|
|
21
|
+
const res0 = http.request("GET", resolvedUrl0, null, {
|
|
22
|
+
headers: {
|
|
23
|
+
"Content-Type": "application/json",
|
|
24
|
+
"Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3J1bnRocm91Z2gtdHdvLnNlYW1sZXNzaHJtcy5jb20vYXBpL3YxL2F1dGgvbG9naW4iLCJpYXQiOjE3NDU2MjAwNDEsImV4cCI6MTc0NTYyMzY0MSwibmJmIjoxNzQ1NjIwMDQxLCJqdGkiOiJkQmZHZW9Takh3MlZ0NEF6Iiwic3ViIjoiMjI2IiwicHJ2IjoiYzIwM2QyYmJmODZhN2IyNzcyZWUyNGNhODIyNzBmOTA5NTgyZjg3YyJ9.WGdq8QMpSZvCJB6cj0hn3xrUIfhIbOE4Ft4bo8u1JKw"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
check(res0, {
|
|
28
|
+
"status is 2xx": (r) => r.status >= 200 && r.status < 300
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
import http from 'k6/http';
|
|
3
|
+
import { check } from 'k6';
|
|
4
|
+
|
|
5
|
+
export const options = {
|
|
6
|
+
"vus": 10,
|
|
7
|
+
"duration": "5s",
|
|
8
|
+
"thresholds": {
|
|
9
|
+
"http_req_failed": [
|
|
10
|
+
"rate<0.05"
|
|
11
|
+
],
|
|
12
|
+
"http_req_duration": [
|
|
13
|
+
"p(95)<1000"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default function () {
|
|
19
|
+
|
|
20
|
+
const resolvedUrl0 = "https://runthrough-two.seamlesshrms.com/api/v1/performance/appraisal/cycle/list";
|
|
21
|
+
const res0 = http.request("GET", resolvedUrl0, null, {
|
|
22
|
+
headers: {
|
|
23
|
+
"Content-Type": "application/json",
|
|
24
|
+
"Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3J1bnRocm91Z2gtdHdvLnNlYW1sZXNzaHJtcy5jb20vYXBpL3YxL2F1dGgvbG9naW4iLCJpYXQiOjE3NDU2MjAwNDEsImV4cCI6MTc0NTYyMzY0MSwibmJmIjoxNzQ1NjIwMDQxLCJqdGkiOiJkQmZHZW9Takh3MlZ0NEF6Iiwic3ViIjoiMjI2IiwicHJ2IjoiYzIwM2QyYmJmODZhN2IyNzcyZWUyNGNhODIyNzBmOTA5NTgyZjg3YyJ9.WGdq8QMpSZvCJB6cj0hn3xrUIfhIbOE4Ft4bo8u1JKw"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
check(res0, {
|
|
28
|
+
"status is 2xx": (r) => r.status >= 200 && r.status < 300
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
import http from 'k6/http';
|
|
3
|
+
import { check } from 'k6';
|
|
4
|
+
|
|
5
|
+
export const options = {
|
|
6
|
+
"vus": 10,
|
|
7
|
+
"duration": "5s",
|
|
8
|
+
"thresholds": {
|
|
9
|
+
"http_req_failed": [
|
|
10
|
+
"rate<0.05"
|
|
11
|
+
],
|
|
12
|
+
"http_req_duration": [
|
|
13
|
+
"p(95)<1000"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default function () {
|
|
19
|
+
|
|
20
|
+
const resolvedUrl0 = "https://runthrough-two.seamlesshrms.com/api/v1/performance/appraisal/cycle/list";
|
|
21
|
+
const res0 = http.request("GET", resolvedUrl0, null, {
|
|
22
|
+
headers: {
|
|
23
|
+
"Content-Type": "application/json",
|
|
24
|
+
"Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3J1bnRocm91Z2gtdHdvLnNlYW1sZXNzaHJtcy5jb20vYXBpL3YxL2F1dGgvbG9naW4iLCJpYXQiOjE3NDU2MjAwNDEsImV4cCI6MTc0NTYyMzY0MSwibmJmIjoxNzQ1NjIwMDQxLCJqdGkiOiJkQmZHZW9Takh3MlZ0NEF6Iiwic3ViIjoiMjI2IiwicHJ2IjoiYzIwM2QyYmJmODZhN2IyNzcyZWUyNGNhODIyNzBmOTA5NTgyZjg3YyJ9.WGdq8QMpSZvCJB6cj0hn3xrUIfhIbOE4Ft4bo8u1JKw"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
check(res0, {
|
|
28
|
+
"status is 2xx": (r) => r.status >= 200 && r.status < 300
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
import http from 'k6/http';
|
|
3
|
+
import { check } from 'k6';
|
|
4
|
+
|
|
5
|
+
export const options = {
|
|
6
|
+
"vus": 10,
|
|
7
|
+
"duration": "5s",
|
|
8
|
+
"thresholds": {
|
|
9
|
+
"http_req_failed": [
|
|
10
|
+
"rate<0.05"
|
|
11
|
+
],
|
|
12
|
+
"http_req_duration": [
|
|
13
|
+
"p(95)<2000"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default function () {
|
|
19
|
+
|
|
20
|
+
const resolvedUrl0 = "https://runthrough-two.seamlesshrms.com/api/v1/performance/appraisal/cycle/list";
|
|
21
|
+
const res0 = http.request("GET", resolvedUrl0, null, {
|
|
22
|
+
headers: {
|
|
23
|
+
"Content-Type": "application/json",
|
|
24
|
+
"Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3J1bnRocm91Z2gtdHdvLnNlYW1sZXNzaHJtcy5jb20vYXBpL3YxL2F1dGgvbG9naW4iLCJpYXQiOjE3NDU2MjAwNDEsImV4cCI6MTc0NTYyMzY0MSwibmJmIjoxNzQ1NjIwMDQxLCJqdGkiOiJkQmZHZW9Takh3MlZ0NEF6Iiwic3ViIjoiMjI2IiwicHJ2IjoiYzIwM2QyYmJmODZhN2IyNzcyZWUyNGNhODIyNzBmOTA5NTgyZjg3YyJ9.WGdq8QMpSZvCJB6cj0hn3xrUIfhIbOE4Ft4bo8u1JKw"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
check(res0, {
|
|
28
|
+
"status is 2xx": (r) => r.status >= 200 && r.status < 300
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|