<?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"
	>
<channel>
	<title>Comments on: Selenium and HTMLUnit - the abstraction layer</title>
	<atom:link href="http://www.eviltester.com/index.php/2008/12/17/selenium-and-htmlunit-the-abstraction-layer/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.eviltester.com/index.php/2008/12/17/selenium-and-htmlunit-the-abstraction-layer/</link>
	<description>A different view of software testing</description>
	<pubDate>Thu, 09 Sep 2010 04:03:27 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Aslak Hellesøy</title>
		<link>http://www.eviltester.com/index.php/2008/12/17/selenium-and-htmlunit-the-abstraction-layer/#comment-1264</link>
		<dc:creator>Aslak Hellesøy</dc:creator>
		<pubDate>Tue, 10 Feb 2009 10:08:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.eviltester.com/index.php/2008/12/17/selenium-and-htmlunit-the-abstraction-layer/#comment-1264</guid>
		<description>This looks promising. I'm at a project where we want to migrate lots of existing Selenium tests (in HTML format) to HTMLUnit.

I'll use this code as a basis, and also add a HTML parser that can parse Selenium HTML tests and invoke the com.thoughtworks.selenium.Selenium API. In practive the instance will be be.denali.test.SeleniumHTMLUnit.

For the HTML parsing I might base some of the code on http://code.google.com/p/selenium-htmlunit-adapter/

In order to be able to commit my work, I might put this up on a Git repository - probably at GitHub. Send me an email if you want to discuss this further.

&lt;em&gt;Whoa - before doing that - consider that PushToTest already has a Selenese parser in it, you might be able to just use PushToTest out of the box - we don't write our Selenium tests in Selenese so I had to dig into the source to get the part I needed - you might find PushToTest an even easier solution.&lt;/em&gt; </description>
		<content:encoded><![CDATA[<p>This looks promising. I&#8217;m at a project where we want to migrate lots of existing Selenium tests (in HTML format) to HTMLUnit.</p>
<p>I&#8217;ll use this code as a basis, and also add a HTML parser that can parse Selenium HTML tests and invoke the com.thoughtworks.selenium.Selenium API. In practive the instance will be be.denali.test.SeleniumHTMLUnit.</p>
<p>For the HTML parsing I might base some of the code on <a href="http://code.google.com/p/selenium-htmlunit-adapter/" rel="nofollow">http://code.google.com/p/selenium-htmlunit-adapter/</a></p>
<p>In order to be able to commit my work, I might put this up on a Git repository - probably at GitHub. Send me an email if you want to discuss this further.</p>
<p><em>Whoa - before doing that - consider that PushToTest already has a Selenese parser in it, you might be able to just use PushToTest out of the box - we don&#8217;t write our Selenium tests in Selenese so I had to dig into the source to get the part I needed - you might find PushToTest an even easier solution.</em></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank Cohen</title>
		<link>http://www.eviltester.com/index.php/2008/12/17/selenium-and-htmlunit-the-abstraction-layer/#comment-1188</link>
		<dc:creator>Frank Cohen</dc:creator>
		<pubDate>Thu, 18 Dec 2008 15:00:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.eviltester.com/index.php/2008/12/17/selenium-and-htmlunit-the-abstraction-layer/#comment-1188</guid>
		<description>Great write-up.

HTMLUnit 2.3 offers some utility APIs to handle the missing JavaScript files in the WebClient API. We find these all the time in our customer's sites. We added the following commands to TestMaker. These are in the 5.3 code base:

&lt;ul&gt;
	&lt;li&gt;loglevel = "off", "info", "debug" controls the Selenium HTMLUnit logging&lt;/li&gt;
	&lt;li&gt;throwExceptionOnFailingStatusCode, when set to true HTMLUnit will ignore errors when the source of an external script cannot be loaded&lt;/li&gt;
	&lt;li&gt;throwExceptionOnScriptError, when set to true HTMLUnit will ignore JavaScript? execution errors&lt;/li&gt;
&lt;/ul&gt;

-Frank

&lt;em&gt;Thanks Frank - now I have to do even less to improve the abstraction layer :)&lt;/em&gt;</description>
		<content:encoded><![CDATA[<p>Great write-up.</p>
<p>HTMLUnit 2.3 offers some utility APIs to handle the missing JavaScript files in the WebClient API. We find these all the time in our customer&#8217;s sites. We added the following commands to TestMaker. These are in the 5.3 code base:</p>
<ul>
<li>loglevel = &#8220;off&#8221;, &#8220;info&#8221;, &#8220;debug&#8221; controls the Selenium HTMLUnit logging</li>
<li>throwExceptionOnFailingStatusCode, when set to true HTMLUnit will ignore errors when the source of an external script cannot be loaded</li>
<li>throwExceptionOnScriptError, when set to true HTMLUnit will ignore JavaScript? execution errors</li>
</ul>
<p>-Frank</p>
<p><em>Thanks Frank - now I have to do even less to improve the abstraction layer :)</em></p>
]]></content:encoded>
	</item>
</channel>
</rss>
