String variable inserted into message body fail if contains %

  • I am integrating a JMeter test suite within the build by executing JMeter via a batch file and adding an “Output Monitor” to search for “summary =” and “Save last match to variable” to the variable “DMS_JMETER_SUMMARY”

    - After JMeter completes, I “Log Variable Values” for this particular variable and this is from the log:
    DMS_JMETER_SUMMARY = summary =     12 in     3s =    4.0/s Avg:   248 Min:   199 Max:   729 Err:     0 (0.00%)

    - I then do a “Text Find” action where I “Search in variable contents” of the DMS_JMETER_SUMMARY variable for the Search String (0.00%%) to ensure there are 0 failures, and this passes.

    - At the end of script, I have a “Send Email” action and within the Body I have some other variables which work fine in the body, but if I include this %DMS_JMETER_SUMMARY% within the body, the Send Email action fails with the error “Unable to Set Body”  "Missing % after

The forum message converted a colon + right-parenthesis combination into a emoticon…

Hi Darian

You can disable recursive variable expansion using a ! after the first %, - %!DMS_JMETER_SUMMARY%

http://help.finalbuilder.com/variable_evaluation_and_recurs.htm