<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ServerGrove Blog &#187; rest</title>
	<atom:link href="http://blog.servergrove.com/tag/rest/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.servergrove.com</link>
	<description>VPS &#38; Shared Hosting, symfony, Zend Framework, Rails, Adobe Flex, Hosting News, Web Design Tips, Webhosting and more....</description>
	<lastBuildDate>Tue, 31 Aug 2010 19:26:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Automate tests for XML APIs</title>
		<link>http://blog.servergrove.com/2009/01/29/automate-tests-for-xml-apis/</link>
		<comments>http://blog.servergrove.com/2009/01/29/automate-tests-for-xml-apis/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 02:02:47 +0000</pubDate>
		<dc:creator>Pablo</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[qa]]></category>
		<category><![CDATA[rest]]></category>
		<category><![CDATA[soap]]></category>
		<category><![CDATA[tests]]></category>
		<category><![CDATA[xml]]></category>
		<category><![CDATA[xmlrpc]]></category>

		<guid isPermaLink="false">http://blog.servergrove.com/?p=57</guid>
		<description><![CDATA[With the impressive growth of web services and the inter-connectivity that this implies, it is very common that web applications and websites include APIs that offer XML output, like SOAP, XML-RPC and REST. Symfony itself is a great framework to create APIs that generate different types of output, but Zend Framework and most other frameworks [...]]]></description>
			<content:encoded><![CDATA[<p>With the impressive growth of <a href="http://en.wikipedia.org/wiki/Web_service">web services </a>and the inter-connectivity that this implies, it is very common that web applications and websites include APIs that offer XML output, like SOAP, XML-RPC and REST. <a href="http://www.symfony-project.org/">Symfony</a> itself is a great framework to create APIs that generate different types of output, but <a href="http://framework.zend.com/">Zend Framework</a> and most other frameworks also offer these possibilities.</p>
<p><a href="http://seleniumhq.org/projects/ide/">Selenium IDE</a> has become a standard to automate testing of web applications, if you are not using it, wait no more!</p>
<p>It can also be used to test APIs. How?</p>
<p>Well, there is a kind of patch to it that adds the ability to assert the presence of an XML node and its value. <a href="http://wiki.openqa.org/display/SEL/assertTextPresentXML">Download and check out the example</a>.</p>
<p>So, after you downloaded the attachment, append the content or create a new file user-extensions.js and place it somewhere of your preference. Then go to Firefox, open Selenium IDE in Tools, then go to Options and browse the location of your file user-extensions.js</p>
<p>Make sure you restart Selenium IDE so it picks up the changes. Once you restarted it, you will see the action assertTextPresentXML.</p>
<p>I am not sure why this has not been added to the main distribution, but it is one of the features that we most use.</p>
<p>In a future post, I will explain step by step how to use it.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.servergrove.com/2009/01/29/automate-tests-for-xml-apis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
