How can i script md5 api testing in katalon

var randomNum = Math.floor((Math.random() * 99999) + 1);

var date = new Date().getTime() + randomNum;

var hash = CryptoJS.MD5(date+environment.access_token).toString();

postman.setEnvironmentVariable(“header_nonce”, date);

postman.setEnvironmentVariable(“header_transaction_id”, hash);
///////////////////////////////////////////////

i cant apply this to katalon api testing please help

1 Like