Summary: | Response Assertion with rule Substring doesn't work with a string contains characters + or ( | ||
---|---|---|---|
Product: | JMeter - Now in Github | Reporter: | Milamber <milamber> |
Component: | Main | Assignee: | JMeter issues mailing list <issues> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | milamber |
Priority: | P2 | ||
Version: | 2.3.2 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux | ||
Attachments: | Patch to correcte the assertion substring with String contains regexp operators |
Description
Milamber
2008-09-05 05:02:07 UTC
Created attachment 22527 [details]
Patch to correcte the assertion substring with String contains regexp operators
This error because in ResponseAssertion.java (components) in method evaluateResponse(), this instruction : Pattern pattern = JMeterUtils.getPatternCache().getPattern(stringPattern, Perl5Compiler.READ_ONLY_MASK); is always execute even in a substring rule. 1/ thus if the stringPattern contains a false regexp expression, the error are detected 2/ and it's not necessary to execute this instruction for a substring rule solve : only execute this instruction for the rules : "contains" and "matches" Thanks for the well-written report and patch. Patch (and test case) added to SVN in URL: http://svn.apache.org/viewvc?rev=692436&view=rev Log: Bug 45749 - Response Assertion does not work with a substring that is not a valid RE This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2150 |