How to use CryptoJs 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);

how to use CryptoJS in katalon? can i import prerequest script from postman to katalon?

Hi @bhaskara.ikhsan

Katalon does not support javascript as a scripting language, so the prerequest script from postman is not imported. You would have to find a Groovy/Java library that accomplishes the same thing.