The __evalVar should work. How are you calling it? Given two variables with the following content (YAML like syntax)
body: "Hello, ${subject}!"
subject: "World"
you can render $body as "template" by using ${__evalVar(body)}, which
should result in "Hello, World!".
Felix Am 26.07.22 um 05:29 schrieb ohaya:
I tried using __evalVar: https://am.net/lib/tools/NetworkManagement/apache-jmeter-2.8/printable_docs/usermanual/functions.html where I had the following in the string from the CSV Data Config-element-requestBodies: <Request ...>{name=${subjectDn}+... But it looks like the __evalVar is NOT replacing the ${subjectDn} variable with the value from the CSV Data Config-element-subject: variables :(... Jim On Monday, July 25, 2022, 10:55:10 PM EDT, ohaya<[email protected]> wrote:Hi,In my JMeter test plan, I have two CSV Data Config elements. - CSV Data Config-element-requestBodies: variables: requestBody - CSV Data Config-element-subject: variables: subjectDn The requestBody variable contains an XML request, with a placeholder string and I want to replace that placeholder with the contents of the subjectDn variable, and then use the modified requestBody variable in the HTTP Request element. In other words: 1) Replace the placeholder string in the ${requestBody} with the value in the ${subjectDn}, then 2) Use the ${requestBody} in the HTTP Request How can I do that? What is the easiest/least overhead way of doing that? Thanks, Jim
OpenPGP_0xEA6C3728EA91C4AF.asc
Description: OpenPGP public key
OpenPGP_signature
Description: OpenPGP digital signature
