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: sog...@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_...@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_...@gmail.com",

And the jmeter response assertion fails specifying that the following string
wasn't found:
/jmeter_test_note autominttest+0421_1153_...@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 sim...@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-unsubscr...@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-h...@jakarta.apache.org

Reply via email to