jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Response Assertion of only part of response?
Date Fri, 11 Apr 2008 17:07:27 GMT

 Sorry sent my msg before I finished including all of it, here is the SOAP response I am trying
to parse and run a assertion check against:

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap=""
xmlns:xsi="" xmlns:xsd=""><soap:Body><GetUKLocationByTownResponse
&lt;Table&gt;??? &lt;Town&gt;Eltham&lt;/Town&gt;??? &lt;County&gt;Greater
London&lt;/County&gt;??? &lt;PostCode&gt;SE9&lt;/PostCode&gt;? &lt;/Table&gt;?
&lt;Table&gt;??? &lt;Town&gt;Feltham&lt;/Town&gt;??? &lt;County&gt;Greater
London&lt;/County&gt;??? &lt;PostCode&gt;TW13&lt;/PostCode&gt;? &lt;/Table&gt;?
&lt;Table&gt;??? &lt;Town&gt;Meltham&lt;/Town&gt;??? &lt;County&gt;West
Yorkshire&lt;/County&gt;??? &lt;PostCode&gt;HD7&lt;/PostCode&gt;?
&lt;/Table&gt;? &lt;Table&gt;??? &lt;Town&gt;New Eltham&lt;/Town&gt;???
&lt;County&gt;Greater London&lt;/County&gt;??? &lt;PostCode&gt;SE9&lt;/PostCode&gt;?

and I just want to check that 


Is text or not numeric

Also would like to know how I might run an assertion against the above XML to check that 


"SE9" is only 3 characters long.? 

So any ideas on how I might use Jmeter to only run an assertion against a small part of these
results and not the entire XML response?? a few examples would be VERY helpful :)



-----Original Message-----
From: sebb <>
To: JMeter Users List <>
Sent: Fri, 11 Apr 2008 12:45 pm
Subject: Re: Response Assertion of only part of response?

On 11/04/2008, <> wrote:
> I get a large XML response from a SOAP request.? Includes header, body, etc.?

Do you?

> Is there someway to only do a Response Assertion check against a small part of 
that assertion? say only the actual values returned by the soap response? and if 
so how?

JMeter stores the response data as sent by the server; it only removes
HTTP headers, not XML or HTML headers.

Just add whatever context is needed to ensure that the correct part of
the response is matched.

You might find the XPath Assertion useful here.

>  here is the SOAP response I get back (in Jmeter text view):
Don't post attachments. If you want to provide a screenshot, upload it
somewhere and send a link.

To unsubscribe, e-mail:
For additional commands, e-mail:


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message