meta { name: Token type: http seq: 2 } post { url: https://ifswit-solutax-ctas-dev.spt.co.id/auth/gettoken body: none auth: basic } auth:basic { username: us3rAnd4l password: p@5s4ndal001 } script:post-response { // Parse response body and extract access_token const response = res.body; // Check if access_token and idpel exist in response if (response && response.data) { bru.setEnvVar("accessToken", response.data.access_token); bru.setEnvVar("idpel", response.data.idpel.toString()); console.log("Access token and idpel extracted and set as environment variables"); } else { console.log("No data found in response"); } }