|
| 1 | +import http from 'k6/http'; |
| 2 | +import { sleep } from 'k6'; |
| 3 | + |
| 4 | +export const options = { |
| 5 | + // Load test for 2 mins with 50 VUs |
| 6 | + stages: [ |
| 7 | + { duration: '1m', target: 100 }, |
| 8 | + { duration: '5m', target: 100 }, |
| 9 | + { duration: '1m', target: 0 }, |
| 10 | + ], |
| 11 | +}; |
| 12 | + |
| 13 | +export default () => { |
| 14 | + const baseUrl = |
| 15 | + 'store-api-proxy-git-feature-ntrkv-redis-storage-korohandelsgmbh.vercel.app/store-api'; |
| 16 | + const headers = { |
| 17 | + 'Content-Type': 'application/json', |
| 18 | + 'sw-access-key': 'SWSCTNNXAGVLUVDQDHNCCVFQQW', |
| 19 | + Cookie: '_vercel_jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJuU0poeHRqQmZMNWoyeWxKTEMzMUgzR1EiLCJpYXQiOjE3Mzk3OTkxMzksIm93bmVySWQiOiJ0ZWFtX2ZRQVF4MFA3WU1GRlVucVBPVUhVMXVDMSIsImF1ZCI6InN0b3JlLWFwaS1wcm94eS1sb3c5Y3kyeHQta29yb2hhbmRlbHNnbWJoLnZlcmNlbC5hcHAiLCJ1c2VybmFtZSI6ImtsYXJzdGlsIiwic3ViIjoic3NvLXByb3RlY3Rpb24ifQ.ch_bj7D1d7tmdMMKxdo_SKK6UALGCO1GXYkMOm7-HGs', |
| 20 | + }; |
| 21 | + |
| 22 | + http.get(`${baseUrl}/context`, { |
| 23 | + headers, |
| 24 | + }); |
| 25 | + |
| 26 | + http.post(`${baseUrl}/language`, { |
| 27 | + headers, |
| 28 | + }); |
| 29 | + |
| 30 | + http.get(`${baseUrl}/checkout/survey/options`, { |
| 31 | + headers, |
| 32 | + }); |
| 33 | + |
| 34 | + http.post(`${baseUrl}/country`, { |
| 35 | + headers, |
| 36 | + }); |
| 37 | + |
| 38 | + http.post(`${baseUrl}/payment-method?onlyAvailable=1`, { |
| 39 | + headers, |
| 40 | + }); |
| 41 | + |
| 42 | + http.post( |
| 43 | + `${baseUrl}//navigation/0191559989177d0b9f1a6f8c0a53cdeb/0191559989177d0b9f1a6f8c0a53cdeb`, |
| 44 | + { |
| 45 | + headers, |
| 46 | + }, |
| 47 | + ); |
| 48 | + |
| 49 | + http.post(`${baseUrl}/shipping-method?onlyAvailable=true`, { |
| 50 | + headers, |
| 51 | + }); |
| 52 | + |
| 53 | + http.get(`${baseUrl}/checkout/cart`, { |
| 54 | + headers, |
| 55 | + }); |
| 56 | + |
| 57 | + http.post(`${baseUrl}/category/0191559989177d0b9f1a6f8c0a53cdeb`, { |
| 58 | + headers, |
| 59 | + }); |
| 60 | + |
| 61 | + http.post(`${baseUrl}/salutation`, { |
| 62 | + headers, |
| 63 | + }); |
| 64 | + |
| 65 | + http.post(`${baseUrl}/country-state/b379dec7c6834ce091d341d3e9cb581d`, { |
| 66 | + headers, |
| 67 | + }); |
| 68 | + |
| 69 | + http.post(`${baseUrl}/navigation/footer-navigation/footer-navigation`, { |
| 70 | + headers, |
| 71 | + }); |
| 72 | + |
| 73 | + http.post(`${baseUrl}/category/019155ba27b97b31944bdd87de4d3506`, { |
| 74 | + headers, |
| 75 | + }); |
| 76 | + |
| 77 | + http.post(`${baseUrl}/category/01919946a3797eaa939a82ff1775efdf`, { |
| 78 | + headers, |
| 79 | + }); |
| 80 | + |
| 81 | + http.post(`${baseUrl}/category/019155bcc1ab73709f14c68ca07b9c5c`, { |
| 82 | + headers, |
| 83 | + }); |
| 84 | + |
| 85 | + http.post(`${baseUrl}/category/01943b4162e97b8296be5b9b154d6d50`, { |
| 86 | + headers, |
| 87 | + }); |
| 88 | + |
| 89 | + http.post(`${baseUrl}/category/0191559ae4747220a50815213d6f5c4b`, { |
| 90 | + headers, |
| 91 | + }); |
| 92 | + |
| 93 | + http.post(`${baseUrl}/category/0191559b045a7b97b367cbcbc8508b10`, { |
| 94 | + headers, |
| 95 | + }); |
| 96 | + |
| 97 | + http.post(`${baseUrl}/category/0191559a78897069a171a88038b02f28`, { |
| 98 | + headers, |
| 99 | + }); |
| 100 | + |
| 101 | + http.post(`${baseUrl}/category/39e5a0d1022e5188b7c7607678e26151`, { |
| 102 | + headers, |
| 103 | + }); |
| 104 | + |
| 105 | + http.post(`${baseUrl}/product/e17bbe2b67c45972aac6a0dae822a043`, { |
| 106 | + headers, |
| 107 | + }); |
| 108 | + |
| 109 | + http.post(`${baseUrl}/product/6d523eda5fb95ab4b691c9916a391223`, { |
| 110 | + headers, |
| 111 | + }); |
| 112 | + |
| 113 | + http.post(`${baseUrl}/product/01928b2e79287155a8fa068f336c8813`, { |
| 114 | + headers, |
| 115 | + }); |
| 116 | + |
| 117 | + http.post(`${baseUrl}/product/5b23cedb8c6e558c82c8573b54634bac`, { |
| 118 | + headers, |
| 119 | + }); |
| 120 | + |
| 121 | + http.post(`${baseUrl}/product/1aa704c884f75f2ea79890e33ae5bbf2`, { |
| 122 | + headers, |
| 123 | + }); |
| 124 | + |
| 125 | + http.post(`${baseUrl}/product/0b61497dfe1258ae92323870d709acfa`, { |
| 126 | + headers, |
| 127 | + }); |
| 128 | + |
| 129 | + http.post(`${baseUrl}/product/b420592d82fe5793b1045134e7509686`, { |
| 130 | + headers, |
| 131 | + }); |
| 132 | + |
| 133 | + http.post(`${baseUrl}/product/b150799e54145f519c1dc4395b7bda0e`, { |
| 134 | + headers, |
| 135 | + }); |
| 136 | + |
| 137 | + http.post(`${baseUrl}/product/01929a39769673cdbbc975947aa08da4`, { |
| 138 | + headers, |
| 139 | + }); |
| 140 | + |
| 141 | + http.post(`${baseUrl}/product/01b05896b15d5d9db59ceaf0b4f0176d`, { |
| 142 | + headers, |
| 143 | + }); |
| 144 | + |
| 145 | + http.post(`${baseUrl}/product/738eadd4827853a6b2a57e1c3d853f64`, { |
| 146 | + headers, |
| 147 | + }); |
| 148 | + |
| 149 | + sleep(1); |
| 150 | +}; |
0 commit comments