You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2010/04/09 17:45:26 UTC
DO NOT REPLY [Bug 49084] New: Response Assertion failing for certain
strings
https://issues.apache.org/bugzilla/show_bug.cgi?id=49084
Summary: Response Assertion failing for certain strings
Product: JMeter
Version: 2.3.4
Platform: PC
OS/Version: Mac OS X 10.5
Status: NEW
Severity: normal
Priority: P2
Component: Main
AssignedTo: jmeter-dev@jakarta.apache.org
ReportedBy: sogwiz@gmail.com
I have a Response Assertion with the following parameters:
'Text Response', Matching Rules = 'Contains'
Patterns to test:
${new_note}
Value of ${new_note} : jmeter_test_note autominttest+0421_1153_1_1@gmail.com
${new_note} is essentialy the following string "jmeter_test_note <EMAIL
ADDRESS>". I've noticed that if the email address is complex (which is
necessary for us as we like to create unique emails based off of timestamp),
then the response assertion fails even though the response message is correct.
This response assertion fails. The response message does indeed contain the
following text (in json format):
"userNote":"jmeter_test_note autominttest+0421_1153_1_1@gmail.com",
And the jmeter response assertion fails specifying that the following string
wasn't found:
/jmeter_test_note autominttest+0421_1153_1_1@gmail.com/
Things to NOTE:
1. Using a different email address in the ${new_note} variable works like a
charm. For example if ${new_note} = jmeter_test_note simple@gmail.com , then
the Response Assertion passes.
2. This fails on jmeter 2.3.2 and 2.3.4
3. It only works for the complex email address when I use Matching Rules =
'Substring' instead of 'Contains'
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 49084] Response Assertion failing for certain
strings
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49084
Sebb <se...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Sebb <se...@apache.org> 2010-04-09 17:59:28 UTC ---
Contains uses regular expression matching; substring does not.
The "complex" email address contains "t+" which means "at least one 't'".
In future, please use the JMeter User list to establish whether there really is
a bug or not.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org