jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: Xpath assertion
Date Tue, 02 Aug 2005 13:05:41 GMT
Please could you file Bugzilla entries for these issues?

S.
On 26/07/05, Ryo Sode <ryo_sode@filemaker.com> wrote:
> Hey guys,
> 
> First, thanks for implementing XPath Response Assertion. It's a great thing
> to have around with growing number of XML applications on the web. Having
> said that though, I am seeing some problems with it on my Jmeter 2.0.3.
> 
> 1. When I have a document like the following (retrieved via HTTP Sampler)
> 
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <!DOCTYPE ryostest PUBLIC "-//FMI//DTD ryostest//EN" "/ryos/ryostest.dtd">
> <ryostest xmlns="http://ryostest.org/ryostest" version="1.0">
>    <error code="0">
>    </error>
>    ...
> 
> Where the DTD is actually served via HTTP, Xpath Assertion doesn't seem to
> try to retrieve the DTD and results in an error. The assertion result shows
> this:
> "IOException: /ryos/ryostest.dtd"
> I think the XPath assertion should try to retrieve the DTD via the same
> scheme used in HTTP Response assertion. For example, if the HTTP Sampler
> accessed the XML document using this:
> 
> IP: myserver.com
> Port: 80
> Protocol: http
> 
> Then, the dtd should be sought for  here:
> http://myserver.com:80/ryos/ryostest.dtd
> 
> 
> 2. Actual XPath Assertion seems to return true always.
> 
> For example, referring back to the example XML doc fragment from earlier, I
> threw in the following into XPath Assertion and it still gave me a success:
> 
> /ryostest/error[@code='1']
> 
> whereas it shouldn't because the code attribute is 0 in the above example.
> 
> Thanks for the help!
> 
> Ryo
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message