hi what options have you chosen for Response Assertion?
- Contains - true if the text contains the regular expression pattern - Matches - true if the whole text matches the regular expression pattern - Equals - true if the whole text equals the pattern string (case-sensitive) - Substring - true if the text contains the pattern string (case-sensitive) Equals and Substring patterns are plain strings, not regular expressions. Note that what you are trying to do resembles the "Equals" or "Substring" usecase. However as sebb points out , it is important that the string then be an exact match (including the line endings or spaces or whatever) and it is very hard to visually check whitespace characters. However such a thing is rarely needed in a test (and has the added consequence of making your test very brittle). It's usually easier to compare specific data points than the entire response. regards deepak On Thu, Sep 15, 2011 at 8:30 AM, Karthik110885 <[email protected]>wrote: > Hi ZK, > > Thanks for the response. I googled for the special characters and found a > list of 11 > > [ \ ^ $ . | ? * + ( ) > > I have escaped . with a backslash. But the response assertion takes that > too > in a literal way. > > *Assertion error: false > Assertion failure: true > Assertion failure message: Test failed: text expected to contain > /<CompanyCode\.GetDetail\.Response > xmlns="urn:sap-com:document:sap:business\.response"> > > 0000000121 > Firma > Ides AG > Martin Steiner, Kathrin Walther, > Bernd Zecha, Dondogmaa Lchamdondog > IDES intern > > Frankfurt > > > 60441 > 60070 > > 160529 > > > Lyoner Stern 231 > > > > > > > > > > DE > D > 06 > IDES > > CET > > > > > > > > > > 1000 > IDES AG > Frankfurt > DE > EUR > D > INT > K4 > DE123456789 > 001000 > 0000000121 > DE > EUR > DE > > > > > > > 000000 > > > > > > </CompanyCode\.GetDetail\.Response>/* > > > Please let me know if i am doing anything wrong. > > Thanks again. > > -- > View this message in context: > http://jmeter.512774.n5.nabble.com/Issue-with-Response-assertion-for-HTTP-Request-Sampler-tp4803205p4807268.html > Sent from the JMeter - User mailing list archive at Nabble.com. >

