https://issues.apache.org/bugzilla/show_bug.cgi?id=55328
Bug ID: 55328
Summary: __escapeOroRegexpChars trims spaces
Product: JMeter
Version: 2.9
Hardware: PC
OS: Linux
Status: NEW
Severity: minor
Priority: P2
Component: Main
Assignee: [email protected]
Reporter: [email protected]
__escapeOroRegexpChars function, accroding to my observations during the work
with jmeter and also according to jmeter's source code, trims leading and
trailing whitespaces, which was a total surprise for me.
For example, if I use ${__escapeOroRegexpChars(${SOME_VARIABLE})} in a response
assertion (where SOME_VARIABLE could contain _important_ leading/trailing
whitespaces), this behaviour results in inexact matches, or a failed match, if
I prepend or append this assertion with some text, e.g.
some_text${__escapeOroRegexpChars(${SOME_VARIABLE})}.
If this behaviour is correct and is not a subject to changes, at least it
could've been mentioned in the documentation (in fact, in this case I am more
dissatisfied with the fact that the documentation misses this point, rather
than with the behaviour itself; trimming is mentioned in the header of the
"Functions reference" section
http://jmeter.apache.org/usermanual/functions.html, but it regards variable
names only).
--
You are receiving this mail because:
You are the assignee for the bug.