Reputation: 91
I would like to submit one json payload for 1000 times using Jmemter. auth time stamp suppose to be unique in each request.
To make it unique written script in Beanshell Preprocessor. Beanshell Preprocessor returning date in required format.
But variable was replaced as integer but I want it in String with quotes.
Coming as : "last_auth_timestamp": 2019-07-21T12:35:59.201+0000,
Expecting : "last_auth_timestamp": "2019-07-21T12:35:59.201+0000",
Upvotes: 0
Views: 266
Reputation: 58862
Use __time function with date format
"${__time(yyyy-MM-dd'T'hh:mm:ssSSSXX)}"
Upvotes: 1