${__UUID()} is not working when sending the payload content which was read from an external file
The issue is that, when making the post call, in the payload, against ID element, ${__UUID()} is not replaced/parsed by the UUID value, the static text "${__UUID()}" is being sent in the payload.
How to generate the UUID when the input payload is read from external file ?
Note: i also tried reading the file content line by line in BeanShell PreProcessor, and sending it as body data, same issue, UUID function is not parsed.
{
"id":"${__UUID()}",
"fname":"Hello",
"lname":"World"
}
Expected result is : ${__UUID()} should be parsed and the actual UUID value should be send as part of the request.
You should first read (FileToString
) the file and then evaluate UUID (eval
)
${__eval(${__FileToString(./HTTP/payload.txt,,)})}