Tuesday, August 23, 2022

Get epoch timestamp in Neoload | epcoh time stamp java script with neoload

if you want to generate the epoch timestamp in Neoload, its so simple you just need to write 4 lines of java script and can pass the same variable to your requests.


var time = new Date()
var Timestamp = Math.round(time.getTime() / 1000)

logger.debug("time="+Timestamp);
context.variableManager.setValue("time",Timestamp);






No comments: