Use \r\n or \n to match new lines in normal response assertions. Im not sure that it will work in XPATH assertions try it out. Also if you use single line mode you can use . or ? to match newlines try out some simple non whitespaced stuff and see that those are working (by hardcoding some response xmls or using BeanShell samplers to return arbitary string - xmls). After you get that working try with newlines
On Mon, Mar 1, 2010 at 10:41 PM, Sagar G <[email protected]> wrote: > > i tried with what u suggested .... > i got this as failure message > > //something/inclusions[text()='<p>Two-hour escorted walking tour > </p><p>Trained guide to show you the stops</p><p>Audio guide in 10 > languages, provided to each participant</p><p>Entrance fees at sites (where > foreseen)</p><P>Children ages six and under are free</p>'] > > if i try with normal response assertion there i faced one more problem this > data contains some new lines but i cant enter data new lines csv file as it > will consider as new set of data... > this is how it exactly displays data in text format of response data > > <inclusions><p>Two-hour escorted walking tour </p> > <p>Trained guide to show you the stops</p> > <p>Audio guide in 10 languages, provided to each > participant</p> > <p>Entrance fees at sites (where foreseen)</p> > <P>Children ages six and under are free</p></inclusions> > > > -- > View this message in context: > http://old.nabble.com/Problem-with-the-XPath-assertion-as-data-to-be-asserted-conntains-html-tags-tp27741740p27752614.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >

