<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Validating Web Service response with XPath</title>
	<atom:link href="http://blog.testsautomation.com/2009/05/validating-web-service-response-with-xpath/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.testsautomation.com/2009/05/validating-web-service-response-with-xpath/</link>
	<description>Live fast, die old...</description>
	<lastBuildDate>Fri, 06 Aug 2010 04:30:45 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Waldemar</title>
		<link>http://blog.testsautomation.com/2009/05/validating-web-service-response-with-xpath/comment-page-1/#comment-6013</link>
		<dc:creator>Waldemar</dc:creator>
		<pubDate>Fri, 29 May 2009 07:05:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.testsautomation.com/?p=255#comment-6013</guid>
		<description>Hi Stuart

First of all I can&#039;t imagine performance test that doesn&#039;t verify output returned by the server. You could have like 10 ms response but it doesn&#039;t matter if you have errors only :)

1) Yes, you are right. I updated the code.
2) I believe not. lr_xml_get_values() call will create &quot;Author_Name&quot; parameter at run-time with value from XML. 
3) I can agree that strcmp() is highly prohibited in C programming in general. Maybe lr_xml_find() would be a good example as well. I will add another sample.
4) The idea was to show a little bit of XPath :)</description>
		<content:encoded><![CDATA[<p>Hi Stuart</p>
<p>First of all I can&#8217;t imagine performance test that doesn&#8217;t verify output returned by the server. You could have like 10 ms response but it doesn&#8217;t matter if you have errors only <img src='http://blog.testsautomation.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>1) Yes, you are right. I updated the code.<br />
2) I believe not. lr_xml_get_values() call will create &#8220;Author_Name&#8221; parameter at run-time with value from XML.<br />
3) I can agree that strcmp() is highly prohibited in C programming in general. Maybe lr_xml_find() would be a good example as well. I will add another sample.<br />
4) The idea was to show a little bit of XPath <img src='http://blog.testsautomation.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart Moncrieff</title>
		<link>http://blog.testsautomation.com/2009/05/validating-web-service-response-with-xpath/comment-page-1/#comment-6012</link>
		<dc:creator>Stuart Moncrieff</dc:creator>
		<pubDate>Fri, 29 May 2009 04:10:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.testsautomation.com/?p=255#comment-6012</guid>
		<description>I agree that XPath is great, and that any performance tester who works with XML should take the time to learn it.

With your code example, you might want to clean up you code a little.

Here are some things to fix:
* Your transaction should wrap around your SOAP request, not just your verification. You want to measure the response time of your application, not how long it takes to verify the response.
* Your soap_request is missing &quot;ResponseParam=Author_Name&quot;, so the parameter is never set. Your if statement will always evaluate to \&quot;false\&quot;, so your transaction will always fail.
* You should not be verifying with lr_xml_get_values and strcmp, you should use lr_xml_find if you already know what value the element should be.
* As your response body is very simple, you could also have done your verification using web_reg_find.

Cheers,
Stu.</description>
		<content:encoded><![CDATA[<p>I agree that XPath is great, and that any performance tester who works with XML should take the time to learn it.</p>
<p>With your code example, you might want to clean up you code a little.</p>
<p>Here are some things to fix:<br />
* Your transaction should wrap around your SOAP request, not just your verification. You want to measure the response time of your application, not how long it takes to verify the response.<br />
* Your soap_request is missing &#8220;ResponseParam=Author_Name&#8221;, so the parameter is never set. Your if statement will always evaluate to \&quot;false\&quot;, so your transaction will always fail.<br />
* You should not be verifying with lr_xml_get_values and strcmp, you should use lr_xml_find if you already know what value the element should be.<br />
* As your response body is very simple, you could also have done your verification using web_reg_find.</p>
<p>Cheers,<br />
Stu.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
