<?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>Adam Christian &#187; Web</title>
	<atom:link href="http://adamchristian.com/archives/category/web/feed" rel="self" type="application/rss+xml" />
	<link>http://adamchristian.com</link>
	<description>Writing about Life, Business and Technology - the way I see it.</description>
	<lastBuildDate>Wed, 09 Jun 2010 08:22:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>iPad&#8217;s, iPhone&#8217;s, iThink I&#8217;m going broke</title>
		<link>http://adamchristian.com/archives/386</link>
		<comments>http://adamchristian.com/archives/386#comments</comments>
		<pubDate>Wed, 09 Jun 2010 08:22:08 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Location Aware]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[innovation]]></category>
		<category><![CDATA[ios4]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[ipod]]></category>
		<category><![CDATA[macbook]]></category>
		<category><![CDATA[opinions]]></category>
		<category><![CDATA[Review]]></category>
		<category><![CDATA[unboxing]]></category>

		<guid isPermaLink="false">http://adamchristian.com/?p=386</guid>
		<description><![CDATA[Some of you may know that over the past few years I have been a bit of a early adopter, when it comes to Apple products. A few years ago, it was considerably easier &#8212; since the rate of product releases felt much slower and the increase in technological capabilities of each of the revisions [...]]]></description>
			<content:encoded><![CDATA[<p>Some of you may know that over the past few years I have been a bit of a early adopter, when it comes to Apple products. A few years ago, it was considerably easier &#8212; since the rate of product releases felt much slower and the increase in technological capabilities of each of the revisions seems significantly less compelling than today.</p>
<p>I remember thinking, I have a Macbook Pro and an iPod &#8212; what else could Apple possibly release that would be so compelling that I had to have it. As the upgrades happened, the iPod was still really just an iPod and the laptop&#8217;s got better but not that much better that you couldn&#8217;t wait two or three releases without feeling left behind. I feel that over the last year Apple has decided to call my bluff, and I have paid dearly.</p>
<p>As described by a &#8220;marketing person&#8221; a month or so ago, apparently I am a &#8220;card carrying geek&#8221;, and as a result cannot help but rally behind innovative technology. Growing up to Star Trek: The Next Generation, I am star struck by multi touch, video chat, GPS positioning, etc. thus I am the perfect target for these products.</p>
<p>I first have to say, I do this for all of you.. I mean, I can&#8217;t count the number of people who get in touch to ask about products before buying them &#8212; and I can&#8217;t let those folks down.</p>
<p><strong>My little un-boxing ritual</strong></p>
<p><a href="http://www.adamchristian.com/wp-content/uploads/2010/06/IMG_0593.jpg"><img src="http://www.adamchristian.com/wp-content/uploads/2010/06/IMG_0593-300x225.jpg" alt="" title="iPad Un-boxing 6" width="300" height="225" class="alignnone size-medium wp-image-393" /></a><br />
<a href="http://www.adamchristian.com/wp-content/uploads/2010/06/IMG_0595.jpg"><img src="http://www.adamchristian.com/wp-content/uploads/2010/06/IMG_0595-300x225.jpg" alt="" title="iPad Un-boxing 4" width="300" height="225" class="alignnone size-medium wp-image-391" /></a><br />
<a href="http://www.adamchristian.com/wp-content/uploads/2010/06/IMG_0597.jpg"><img src="http://www.adamchristian.com/wp-content/uploads/2010/06/IMG_0597-225x300.jpg" alt="" title="iPad Un-boxing 2" width="225" height="300" class="alignnone size-medium wp-image-389" /></a><br />
<a href="http://www.adamchristian.com/wp-content/uploads/2010/06/IMG_0599.jpg"><img src="http://www.adamchristian.com/wp-content/uploads/2010/06/IMG_0599-225x300.jpg" alt="" title="iPad Un-boxing 1" width="225" height="300" class="alignnone size-medium wp-image-388" /></a></p>
<p>I bought an iPad five hours after the release downtown San Francisco. I told myself, this time I&#8217;m going to be patient &#8212; I&#8217;m not going to join the insanity and stand in line like I did for the last two iPhone releases. And for five painful hours I sat at home watching the news and occasionally calling the Apple store to see how the stock was doing. Unlike my laptop and my iPhone, the iPad is not something that I need. In fact I&#8217;m having a hard time justifying it at all, considering the amount of devices sitting around my house. </p>
<p>HOWEVER, the iPad is a fantastic experience for the person who doesn&#8217;t have one of those two devices. It makes for a great browsing, emailing, casual gaming experience. Skype on wifi and 3g with iPhone headphones turns it into a totally legit way to make quick calls and the apps are getting better all the time. I personally am awaiting IOS4 to really make use of it. Pretty upset about the removal of the unlimited data plans by AT&#038;T, if I was doing much travel or didn&#8217;t work in front of a computer all day, the iPad with unlimited data and Netflix would be an even more killer combo than it is on wifi.</p>
<p>My vision of the iPad is that it&#8217;s a start down a road to some exponentially cooler tech. The use case I invision is currently possible, but in a very early state. The single always online device you carry with your everywhere and dock in various locations for a more extensive experience. Many would argue that this same scenario applies to the iPhone. I still find the size of the iPad very curious, as it&#8217;s not small enough to carry in your pocket, but clearly too big to want to leave sitting in any one place.</p>
<p>I&#8217;m just going to come out and say this, I really like the look of the iPhone 3GS and preferred the weight of the original iPhone 2G. The new design doesn&#8217;t look very traditional apple to me, and so far looks significantly more invasive to my pocket. Fortunately the feature set is pretty amazing, but minus FaceTime and the gyroscope I&#8217;m wondering how much of the new experience I&#8217;m looking for will be achievable by upgrading my 3GS to the new software? I don&#8217;t feel all that compelled to do video editing on a tiny device, no matter how clear the resolution is. I understand that the speed updates are incredible, but will my 3GS experience start feeling unreasonably slow? I doubt it.</p>
<p>I just wanted to point all that out, so that after I try it out and wind up upgrading I have something to look back at with my starry eyes so I can answer all those questions (thus justifying the purchase).</p>
<p>It&#8217;s important to look back over the last few years and remember how the iPhone has changed things, I realize that is almost exactly what Steve said in the keynote. In Portland last week, I was walking home and my phone battery ran out after using the map all day long. For a few blocks I was pretty terrified because I realized that the first of my three reactions to my situation relied on, map, google, phone call. All the sudden my brain had to start doing things that it wasn&#8217;t used to doing! I&#8217;m not saying whether this is a good change or a bad change, I&#8217;m just saying it is a DRASTIC change.</p>
<p>Over the past month here in the bay area, plenty of people I know have been talking about how they *may* move over to one of the new android phones. They have these great big display&#8217;s with higher resolution photos, and it&#8217;s an open platform. I would be surprised if one of those folks actually made the change after this new phone becomes available&#8230; I&#8217;m just sayin.</p>
<p>It&#8217;s entirely possible that I&#8217;m an Apple fan boy living in the bubble, and recently I have been seriously thinking about running Linux on my MacBook instead of MacOSX (to mix things up a bit). But I would challenge all hardware makers to produce something, that head to head (in terms of user experience) can win me over.</p>
<p>So this is where I would normally try to conclude by casting my opinions as facts that you should really think hard about. Instead, I propose the question &#8211; without the innovation at Apple, where would the industry be? And for those of you who think I&#8217;m inside the bubble, enlighten me &#8211; what is going on out there?</p>
]]></content:encoded>
			<wfw:commentRss>http://adamchristian.com/archives/386/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My new gig &#8211; Sauce Labs</title>
		<link>http://adamchristian.com/archives/367</link>
		<comments>http://adamchristian.com/archives/367#comments</comments>
		<pubDate>Tue, 23 Mar 2010 18:25:18 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Automation]]></category>
		<category><![CDATA[Career]]></category>
		<category><![CDATA[Continuous Integration]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Startup]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Windmill]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[sauce labs]]></category>
		<category><![CDATA[Selenium]]></category>
		<category><![CDATA[Testing]]></category>

		<guid isPermaLink="false">http://adamchristian.com/?p=367</guid>
		<description><![CDATA[After almost two years of working at Slide Inc, I have started my new job at Sauce Labs.
The press release can be found here: &#8220;Sauce Labs Adds Windmill Test Framework Co-Creator Adam Christian to Engineering Team&#8220;.
 Slide Inc. 
I had a fantastic experience and learned a ton working with the really talented team of engineers, [...]]]></description>
			<content:encoded><![CDATA[<p>After almost two years of working at <a href="http://www.slide.com">Slide Inc</a>, I have started my new job at <a href="http://www.saucelabs.com">Sauce Labs</a>.</p>
<p>The press release can be found here: &#8220;<a href="http://www.marketwire.com/press-release/Sauce-Labs-Adds-Windmill-Test-Framework-Co-Creator-Adam-Christian-Engineering-Team-1135946.htm">Sauce Labs Adds Windmill Test Framework Co-Creator Adam Christian to Engineering Team</a>&#8220;.</p>
<h2> Slide Inc. </h2>
<p>I had a fantastic experience and learned a ton working with the really talented team of engineers, artists and product managers over at Slide. It was incredibly educational to work in an environment where so many people use your product everyday. I built a lot of really cool features there for SuperPocus and spent a year building a test automation infrastructure, and molding <a href="http://www.getwindmill.com">Windmill</a> to be able to test anything and everything they put in front of me. </p>
<p>Slide was really amazingly understanding as I went through some personal struggles over the past few months. I will miss the people the most, as Slide created a great environment enabling people to effectively work together to solve really challenging problems.</p>
<h2>Sauce Labs</h2>
<p>Since I moved to the Bay Area, more than once I have seen people leave jobs to goto what they deemed their &#8220;dream job&#8221;. I never really understood what they meant by that designation until now. </p>
<p>Sauce Labs is solving exactly the class of problems that I find the most interesting, challenging, and sought after by so many people. I&#8217;m incredibly grateful and excited to be a part of the team working to make running your tests in the cloud seamless and fast, instead of frustrating and painful. The crew of people I will be working with are second to none and I look forward to learning all I can from them.</p>
<p>Sauce expects everyone to work directly with customers to ensure the best experience, and I look forwarding to helping many new teams get setup with test automation.</p>
<h2> Future </h2>
<p>It&#8217;s hard to outline exactly what future projects I will be involved in, as the technology is moving forward incredibly fast. I do know there are so many ways that we can make the testing community stronger, and the tools better. I see <a href="http://www.nodejs.org">NodeJS</a> and <a href="http://couchdb.apache.org/">CouchDB</a> opening many doors to new innovations and I would like to continue improving my <a href="http://www.python.org">Python</a> skills.</p>
<p>I will still be within a block from South Park, so let me know if you are in the area and want to grab lunch!</p>
]]></content:encoded>
			<wfw:commentRss>http://adamchristian.com/archives/367/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Considering in-house web automation?</title>
		<link>http://adamchristian.com/archives/358</link>
		<comments>http://adamchristian.com/archives/358#comments</comments>
		<pubDate>Tue, 02 Mar 2010 10:38:06 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Automation]]></category>
		<category><![CDATA[Continuous Integration]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Hudson]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Review]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[Build]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[WatiN]]></category>
		<category><![CDATA[Watir]]></category>
		<category><![CDATA[Windmill]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://adamchristian.com/?p=358</guid>
		<description><![CDATA[Recently I have had numerous conversations with people at various tiers of companies all over the place who are toying with the idea of building their own test automation and continuous integration infrastructure. Since I have spent a considerable amount of time dealing with such undertakings I decided that it might be worth the time [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I have had numerous conversations with people at various tiers of companies all over the place who are toying with the idea of building their own test automation and continuous integration infrastructure. Since I have spent a considerable amount of time dealing with such undertakings I decided that it might be worth the time to brain dump some of the issues you may want to consider before you dive in.</p>
<h2>Choosing Tools</h2>
<hr /><strong>Boxes, VM&#8217;s or Cloud?</strong></p>
<p>A common first reaction is to take a couple of those old boxes sitting around to run the first &#8220;couple&#8221; tests you have. In some cases, this is the perfect solution. That is if you have a small application that rarely changes and only needs a daily test run (on one operating system and it&#8217;s available browsers). In my experience you can reasonably run one Windows VM without lagging the host machine unusable, which gives you two concurrent browser test jobs without worrying about process conflicts. Do remember that to do this correctly, you really want a machine dedicated to your CI system (which I will talk more about below).</p>
<p>VM&#8217;s are a great solution, however they require significant hardware overhead, continuous attention and licensing costs. Depending on the VM solution you choose you may also wind up dealing with the dreaded <a href="http://software.intel.com/en-us/blogs/2009/06/25/virtualization-and-performance-vm-time-drift/">VM Time Drift</a> causing problems with JavaScript and failing tests that aren&#8217;t actually failing.</p>
<p>&#8220;The Cloud&#8221;, is the 2009-2010 buzz word that makes all technology sound better, and in a lot of ways COULD be the ideal solution for test automation. You get the benefits of paying for only the cycles you use, having someone else manage the infrastructure and avoid those pesky licensing costs. However in <a href="http://adamchristian.com/archives/269">my experience </a> the setup is painful, the solutions (EC2, etc.) are slow and lacking some of the features to really do test automation well. For example, if you want to run your own CI instance and run your tests on demand in the cloud you will run into some pretty painful engineering problems. It&#8217;s not easy to instruct the &#8220;cloud&#8221; service to fire up a Windows VM and then have that VM connect to your CI instance and become an available slave. It&#8217;s doable with Linux, but last I checked &#8211; the features to do something similar with Windows simply weren&#8217;t there. Also do you really want to wait sometimes up to 15 minutes (also my experience with EC2) for the machines to come up before you can even start running your tests?</p>
<p><strong>What CI System?</strong></p>
<p>The point of this article is not to recommend solutions, it is to encourage questions. However, outlining all of the possible CI systems would take forever so I will simply say that I wound up using <a href="http://hudson-ci.org/">Hudson</a>. The reasoning includes a very open and functional Open Source community, with smart contributors willing to take a few minutes to respond and help me out. I also found it possible (not simplistic) to build plugins to customize the things that I needed changed. Many people out there swear by <a href="http://cruisecontrol.sourceforge.net/">Cruise Control</a>, or <a href="http://buildbot.net/trac">Build Bot</a> and I would highly encourage you to do some research and pick the solution that you feel will allow you to be the most productive. For example if you plan to use Windmill and EC2, you may want to do some reading about the <a href="http://weblogs.java.net/blog/2009/05/18/hudson-ec2-plugin">Amazon EC2</a> and <a href="http://github.com/admc/HudsonWindmillPlugin/">Windmill plugins</a> available for Hudson and see what comparable tools are available.</p>
<p><strong>Which test framework?</strong></p>
<p>Some of you may know that I hold a mild bias when it comes to this question, but over the last year and a half I have ventured out into the land of testing frameworks and am able to see the values held by the other projects. For example, if you don&#8217;t ever need to deal with JavaScript in your application (or have browser specific functionality) &#8212; I suggest you use a tool that doesn&#8217;t require a real browser (like <a href="http://twill.idyll.org/">Twill</a>). Tests will run faster, they will be more stable and can be run without access to your OS&#8217;s graphics layer.</p>
<p>When it comes to browser based web testing tools I really think you need to pick the one that fits your needs the best. A great example of this was in my needs to automate functionality contained in iframes being served over HTTPS from a different domain, the only solution (after weeks of trial and error) turned out to be WatiN. Of course, writing and building tests in C#.net wasn&#8217;t going to be an easy sell so <a href="http://github.com/rtyler/IronWatin">IronWatin</a> was <a href="http://unethicalblogger.com/node/231">invented</a> as a means to write <a href="http://watin.sourceforge.net/">WatiN</a> tests in Python.</p>
<p><a href="http://watir.com/">Watir</a> has captured a lot of the <a href="http://www.ruby-lang.org/">Ruby</a> community and has recently been moving towards consolidating the separated browser  projects into one, which will significantly improve the ease of use.</p>
<p><a href="http://getwindmill.com/">Windmill</a> has a dedicated community, focuses on dynamic JavaScript applications, boasts lots of features and goes for an ease out of the box type of experience.. at least that&#8217;s what I would like to think! Please feel free to check out the destination site or <a href="http://wiki.github.com/windmill/windmill/">Github wiki</a> for more information</p>
<p><a href="http://seleniumhq.org/">Selenium</a> has a thriving community, lots of available consulting support, integrates well into a Java environment and offers the <a href="http://selenium-grid.seleniumhq.org/">Grid project</a>. You can also avoid all of the work involved in running your own system by writing your tests in Selenium and then offloading them to a company like <a href="http://saucelabs.com/">Sauce Labs</a> if you are willing to pay for it.</p>
<p><strong>What do we do about Flash/AS3 automation?</strong></p>
<p>After unsuccessfully trying out <a href="http://code.google.com/p/flexmonkey/">FlexMonkey</a> and <a href="http://asunit.org/">AsUnit</a> (don&#8217;t take my word for it), <a href="http://fleegix.org/">Matthew Eernisse</a> sat down and wrote an AS3 test controller that works the way the rest of test automation works in the browser, it&#8217;s part of the Windmill codebase (codenamed <a href="http://github.com/windmill/windmill/tree/master/flash/">FlashMill</a>). There are two ways to run the tests, one is to hand FlashMill your tests already <a href="http://wiki.github.com/windmill/windmill/actionscript-tests">written in AS3</a> and the other is to write them in your favorite tool (or raw JavaScript) and have them call into the FlashMill API. Windmill currently has full IDE/UI integration in master to be released soon, the integration code is simple and can be <a href="http://github.com/windmill/windmill/blob/master/windmill/html/js/controller/flash.js">viewed here</a> (best doco at the moment until I write a better one).</p>
<h2>Workload</h2>
<hr /><strong>How much work goes into maintenance and software upgrades?</strong></p>
<p>Depending on the machine setup you are going with, this will vary. Obviously if you have a box and a VM on it you can manually go through the process of upgrading the browsers on each, installing patches and security fixes for the OS etc. But if you went with the VM solution, you need to come up with a way to deploy updates to all the machines in your pool. An Open Source solution that came up near the top of my search is <a href="http://wpkg.org/">WPKG</a>, but like the rest of the tools on this page &#8211; there are many solutions and you will want to do your research. Some of the maintenance you will be dealing with can be done as a system job, or run by your CI system. A good example of this is to remove data, test files, source repositories etc. that accumulate on your test running machines.After a while, these files in combination with temporary internet files from the browsers and system tmp files start to slow things down.</p>
<p>This piece is very important to take into consideration from the beginning, because once you have 15 VM&#8217;s running tests &#8212; doing anything manually becomes a major chore. You also need to be cognizant of that fact that if you chose the cloud testing solution you will be managing your own test running images used to boot the VM&#8217;s. Every time you want to make updates or changes to that image, you get to go through the whole process of baking it and uploading it to the cloud hosting service. In my experience, this process is NOT enjoyable or quick.. so be prepared to invest some serious time.</p>
<p><strong>What is the strategy for scaling and expanding?</strong></p>
<p>Clearly this will be dictated by the rest of decisions you made, but I think when you get to this point, the idea of buying and manually setting up more and more physical boxes starts to break down. Buying more and more machines to sit there running tests simply seems like a bad use of resources (and desk space). VM&#8217;s allow you to quickly replicate images and expand your arsenal as long as the host machine has the hardware resources to power it without negatively effecting test run times on all the others. There are also solutions out there that allow you to boot and shutdown VM&#8217;s on the fly, which provides some interesting possibilities in juggling system resources.</p>
<p>I have found that since Windows is the common platform that can run all the browsers I care about, having a large pool of identical VM&#8217;s running all the time is an easy way to queue up 100&#8217;s of tests and get results in a reasonable amount of time. I do think that this is the aspect that cloud services start to become more appealing. The idea of spinning up more and more virtual machines in the cloud (with essentially endless capacity) makes the idea of scaling those tests considerably less terrifying. If you can get over the generally slow spin up times, and have come up with a strategy of dynamically harnessing and adding those machines to the pool &#8211; you may have it made!</p>
<p><strong>What format/language is best for our tests?</strong></p>
<p>At this point in web testing you simply need to decide what you care the most about doing. Is it manipulating the page? Or is it interacting with a database?, or a little of both? If you can get away with writing your tests fully in JavaScript, I would recommend it. At least in Windmill the JavaScript tests run exponentially faster than the Python or Ruby tests do. However the libraries for communicating with databases, email, system services etc, may make Python, Java, C#, etc your ideal solution. Each of the tools has their own ways of doing things, and to come up with the ideal language really depends upon your system, what your test developers are comfortable with, and what your application platform looks like.</p>
<p><strong>What operating systems and browsers do we need?</strong></p>
<p>The answer to this question should come from the metrics of your user base, and will also help you narrow down a testing framework and your test machines. Some of the available frameworks simply won&#8217;t run on Linux, or support IE6. Are all your users using Google Chrome? Then you should probably make sure the test framework you use has a Chrome launcher. Historically I have concentrated about 90% of the available VM resources on the most popular platform (usually Windows), with the most popular browsers (Firefox latest release, IE 7 or 8 depending on the users, Safari Windows latest release, and Chrome). This gives me a pool of work horse machines that can crank out tests representing the majority. The other 10% would be divided into the higher percentage minorities which probably includes a MacOSX slave running FF and Safari and a Linux machine running FF and Konqueror.</p>
<h2>Methodology</h2>
<hr /><strong>Can we support both functional and unit tests?</strong></p>
<p>I have found that having your own test infrastructure really makes this one easier. Since your resources will probably be on the same network as your codebase, you can easily access and run unit tests.. however as soon as you start sending your tests off to the cloud you are dealing with some security/privacy issues and engineering challenges. If inorder to unit test your code you need the entirety of your code base available, sending a copy of it off to your image on the cloud for every test (job, run or even change set) over and over could become a major strain on your system and simply sounds like a bad idea. If you are counting on unit tests you will at least want a machine on your network available as a slave from the CI system for those jobs.</p>
<p><strong>How do we report results, and stay tuned into failures?</strong></p>
<p>Most CI solutions have many ways they can be configured to alert you of a failure, from email, irc, jabber to a phone call you can usually find some solution that will get your attention. At this point in time the norm appears to be jUnit compatible results in XML. I&#8217;m not a huge fan, but the available tools for parsing and aggregating jUnit into something useful is very appealing. If you are okay with a true/false, that will always work out of the box, but you will need to be prepared to put in a little extra effort in both your test development and test job setup to generate the jUnit report files.</p>
<p><strong>What role does automation need to play in our process?</strong></p>
<p>For maximal results you need to make the leap where QA and Development both understand that a failing job in the CI system is a show stopper and must be investigated immediately. This way people honor the continual nature of continuous integration. It&#8217;s job is to catch problems shortly after they are broken, point you directly at them, and continue failing until you have solved the issue or fixed the test. If this isn&#8217;t the process you want, having continuous integration may not be the solution you are looking for.</p>
<p>Another effective strategy I have seen is to base release viability on the status of your CI system. Don&#8217;t let the product go out the door until the &#8216;thoroughly defined&#8217; suite of functional and unit tests running in continuous integration are all running and passing. It is easy to push off the process of updating failing tests until &#8220;later&#8221;, but everyone is busy, and later is usually never.</p>
<p><strong>What part of our application should we automate?</strong></p>
<p>This really should be computed by time and resources, as much as I would like to say &#8220;everything&#8221; I am well aware of it&#8217;s low probability. Pick your application flows that make you money, or really mean a lot to your users likely experience. Ensure that your application loads, they can take the happy path, give you some money and then leave. At least this way you can sleep at night knowing that, they may not be able to change their profile information but they can still pay your salary.</p>
<h2>Conclusion</h2>
<hr />I hope that I sufficiently communicated my point and passed on some useful and informative tidbits. Setting up automation infrastructure that has any chance of actually doing it&#8217;s job is a major investment of resources and should be well planned based on individualized needs. I hope this saves someone some time and energy.<br />
<br />Best of luck, and happy testing.</p>
]]></content:encoded>
			<wfw:commentRss>http://adamchristian.com/archives/358/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Windmill Plugin for Hudson</title>
		<link>http://adamchristian.com/archives/251</link>
		<comments>http://adamchristian.com/archives/251#comments</comments>
		<pubDate>Mon, 11 May 2009 04:42:27 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Automation]]></category>
		<category><![CDATA[Continuous Integration]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Slide]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Windmill]]></category>
		<category><![CDATA[Windmill-dev]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[QA]]></category>
		<category><![CDATA[Testing]]></category>

		<guid isPermaLink="false">http://adamchristian.com/?p=251</guid>
		<description><![CDATA[Over the last 6+ months, I have been using Hudson in conjunction with Windmill very heavily for continuous integration. For the most part using the build step specific to whatever the slave OS requires has worked sufficiently well until recently when my needs changed.
I use the &#8216;configuration matrix&#8217; option to build a matrix of browsers [...]]]></description>
			<content:encoded><![CDATA[<p>Over the last 6+ months, I have been using Hudson in conjunction with Windmill very heavily for continuous integration. For the most part using the build step specific to whatever the slave OS requires has worked sufficiently well until recently when my needs changed.</p>
<p>I use the &#8216;configuration matrix&#8217; option to build a matrix of browsers to run the tests, this way I can have one job that represents a test run on multiple boxes and multiple browsers on each box. Drilling down allows me to see the results for each of these test runs within the job. (Configuration Matrix is awesome btw, except for one really annoying bug for, which there is a <a href="http://wiki.hudson-ci.org/display/HUDSON/Aboutncysa">reasonable workaround</a>)</p>
<p>Having many build resources, sometimes I want to move a job from one machine to another in order to equalize load on the different machines or to have a job running in ff2 and ie6 instead of ff3 and ie7. Thus the need for a uniform build step that will run the same way regardless of the machine or installed browsers, became necessary. Additionally the commands for running tests got bigger and less manageable all the time, so the time for a clean user interface finally came. This way I can automatically append arguments like &#8216;exit&#8217; to keep the build step interface simple and clean.</p>
<p>The other simplification is that in the Hudson configuration page for the Windmill Test plug-in you can tell it to automatically call the contrib &#8216;clean_run.py&#8217; script with the correct arguments (assuming clean_run.py can be found in your path).</p>
<p>As I am relatively new to the Java world, I struggled through the development process but thanks to some reasonable plug-in documentation, responses from the hudson dev mailing list and some IRC conversations with Kohsuke (thanks so much) I finally have something that sufficiently addresses my needs.</p>
<p><strong>Screenshots</strong><br />
<img style="width:99%" title="Hudson Configuration UI" src="http://cloud.github.com/downloads/admc/HudsonWindmillPlugin/Picture_4.png" alt="" /><br />
<img title="Adding the Windmill build" src="http://cloud.github.com/downloads/admc/HudsonWindmillPlugin/Picture_5.png" alt="" /><br />
<img style="width:99%" title="Plugin basic UI" src="http://cloud.github.com/downloads/admc/HudsonWindmillPlugin/Picture_2.png" alt="" /><br />
<img style="width:99%" title="Windmill Build Expanded" src="http://cloud.github.com/downloads/admc/HudsonWindmillPlugin/Picture_3.png" alt="" /></p>
<p><strong>Project</strong></p>
<p>The code is all available on <a href="http://github.com/admc/HudsonWindmillPlugin/tree/master">GitHub</a> and I welcome any improvements or input from the community as I know that continuous integration is a very important piece of the utility provided by Windmill and this pieces should be as easy as possible to setup.</p>
<p>The combination of this plug-in, and others like the <a href="http://github.com/dougm/hudson-s3/tree/master">amazon s3 plug-in </a> or the <a href="http://wiki.hudson-ci.org/display/HUDSON/VMware+plugin">hudson VMware plugin</a> bring us that much closer to seamlessly creating test resources, running our functional web tests across all of our supported platforms and then throwing it away until it&#8217;s again needed (or using the CLOUD).I have also done some integration with virtual box that I have found to be very successful.</p>
<p><strong>Download</strong></p>
<ul>
<li><a href="http://cloud.github.com/downloads/admc/HudsonWindmillPlugin/HudsonWindmillPlugin.hpi">Hudson Windmill Plugin 0.4</a></li>
</ul>
<p>Please<a href="http://github.com/admc/HudsonWindmillPlugin/issues"> log bugs</a> and let me know what you think! If you are an avid Java and or Hudson plug-in developer and you are interested in contributing, please jump right in!</p>
]]></content:encoded>
			<wfw:commentRss>http://adamchristian.com/archives/251/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PyCon 2009 Recap</title>
		<link>http://adamchristian.com/archives/236</link>
		<comments>http://adamchristian.com/archives/236#comments</comments>
		<pubDate>Tue, 14 Apr 2009 00:54:38 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Automation]]></category>
		<category><![CDATA[Career]]></category>
		<category><![CDATA[Continuous Integration]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Slide]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Windmill]]></category>
		<category><![CDATA[Windmill-dev]]></category>
		<category><![CDATA[2009]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[Oscon]]></category>
		<category><![CDATA[pycon]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[using windmill]]></category>
		<category><![CDATA[windmill talk]]></category>

		<guid isPermaLink="false">http://adamchristian.com/?p=236</guid>
		<description><![CDATA[Getting back in the swing of things after conferencing for weeks can be pretty painful, thus the lateness of the post. However I think it&#8217;s important to go over some thoughts still lingering in my brain as a result.
First off, I have to say that for those of you who don&#8217;t know, PyCon is a [...]]]></description>
			<content:encoded><![CDATA[<p>Getting back in the swing of things after conferencing for weeks can be pretty painful, thus the lateness of the post. However I think it&#8217;s important to go over some thoughts still lingering in my brain as a result.</p>
<p>First off, I have to say that for those of you who don&#8217;t know, PyCon is a community organized event, and amazingly well done. I was impressed by the design of the conference, the way they had four talks going on at once and they tried to keep them in a similar interest track. Every talk I attended was at least &#8220;good&#8221;, and many were &#8220;great&#8221;. You could really feel a community vibe, and for a conference that had 800+ attendees in the middle of a major recession they had every right to be excited.</p>
<p>There were two major themes content wise that really impressed me, the first was an amazing amount of web framework focus. <a href="http://www.djangoproject.com/">Django</a> obviously being the twinkle in the eye of the community, but there were smaller communities for each of the other projects, <a href="http://pylonshq.com/">Pylons</a>-<a href="http://turbogears.org/">Turbo Gears</a>, <a href="http://www.web2py.com/">web2py</a> and lots of tools built on top of them. One that struck me with some major promise is the <a href="http://pinaxproject.com/">Pinax Project</a>. Their goal is to make it so that I don&#8217;t ever have to deal with building user registration and in site messaging&#8230; and all the other features expected for any site that has social network functionality.</p>
<p>The other major theme was a mini testing conference going on within PyCon, that I was very comfortable hanging around with. We had a hugely successful Birds Of a Feather, as well as a surprisingly active Open Space talk for Windmill.</p>
<p>The &#8220;Using Windmill&#8221; talk turns out to be pretty successful in every aspect that I really care about. I do wish that I had been able to get a little more sleep the night before, and I have to admit the size of the venue was a bit overwhelming. I now realize watching the footage that I used the word &#8220;UM&#8221; way too much, and the demo videos must have been hard to watch from the very back of the room. But barring those two things, I am quite happy (I shall learn and practice for the next round of shameless PR at <a href="http://en.oreilly.com/oscon2009">OSCON 2009</a>).</p>
<p>The &#8220;Functional Testing Tools in Python&#8221; panel was very successful, and a lot of fun. I always enjoy the friendly banter between the different project owners. Everyone has a different opinion on what they care about, focus on and feel they do the best. Obviously since the only two projects represented that focused on Web Testing were Windmill and Selenium, we got a lot of attention.</p>
<p>Watching that panel footage I definitely think that the introductions were too long, but I still think our Journey themed &#8211; mind blowing &#8211; Windmill demo video was a great intro. At the very least, the audience had a little entertainment before the geek droning began <img src='http://adamchristian.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.slide.com">Slide</a> had an awesome presence this year, a fun booth, huge banners everywhere and 6 attendees. It was fun to see all of the great responses I received about Slide from people out there in Python land.</p>
<p><strong>Here are links to the videos:</strong></p>
<ul>
<li>Using Windmill: <a href="http://pycon.blip.tv/file/1947236/">http://pycon.blip.tv/file/1947236/</a></li>
<li>Functional Testing Tools in Python Panel: <a href="http://pycon.blip.tv/file/1947342/">http://pycon.blip.tv/file/1947342/</a></li>
</ul>
<p><strong>And some pictures:</strong></p>
<p><img class="alignnone size-full wp-image-237" title="Me, with the great Slide backdrop" src="http://www.adamchristian.com/wp-content/uploads/2009/04/1.png" alt="Me, with the great Slide backdrop" width="350" height="233" /></p>
<p><img class="alignnone size-full wp-image-238" title="Mikeal answering Questions" src="http://www.adamchristian.com/wp-content/uploads/2009/04/2.png" alt="Mikeal answering Questions" width="233" height="350" /> <img class="alignnone size-full wp-image-239" title="More me" src="http://www.adamchristian.com/wp-content/uploads/2009/04/3.png" alt="More me" width="350" height="233" /></p>
<p>If you are interested in seeing the new and improved version of the &#8220;Using Windmill&#8221; talk, please make it out to OSCON 2009, &#8220;Scheduled for 16:30 on 22 Jul 2009.&#8221; in San Jose, CA.<br />
<a href="http://conferences.oreilly.com/oscon"><br />
<img class="alignnone" style="border: 0px initial initial;" title="OSCON 2009" src="http://assets.en.oreilly.com/1/event/27/oscon2009_banner_speaking_125x125.gif" border="0" alt="OSCON 2009" width="125" height="125" /></a></p>
<p>We are waiting to hear back from both <a href="http://opensourcebridge.org/">Open Source Bridge</a> and the <a href="http://ajaxexperience.techtarget.com/html/index.html">AJAX Experience</a> as to whether we will be participating in those conferences (fingers crossed)!</p>
]]></content:encoded>
			<wfw:commentRss>http://adamchristian.com/archives/236/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Micro-Bookmarking with MyTabs</title>
		<link>http://adamchristian.com/archives/147</link>
		<comments>http://adamchristian.com/archives/147#comments</comments>
		<pubDate>Tue, 24 Feb 2009 01:18:36 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Addons]]></category>
		<category><![CDATA[Mozmill]]></category>

		<guid isPermaLink="false">http://adamchristian.com/?p=147</guid>
		<description><![CDATA[A few weeks ago I realized that every time I boot my laptop, one of the first things I do is to open Firefox, and immediately load about 7 web sites as tabs. Some of them requiring user interaction to navigate to the desired state. I didn&#8217;t realize that this was actually a phenomenon called [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-156" style="float:right" title="MyTabs" src="http://www.adamchristian.com/wp-content/uploads/2009/02/mytabs.png" alt="MyTabs" width="88" height="51" />A few weeks ago I realized that every time I boot my laptop, one of the first things I do is to open Firefox, and immediately load about 7 web sites as tabs. Some of them requiring user interaction to navigate to the desired state. I didn&#8217;t realize that this was actually a phenomenon called &#8220;micro-bookmarking&#8221;, and that I may not be the only person who has this routine.</p>
<p>I don&#8217;t necessarily want to bookmark these sites, and this process of opening them is somehow part of my routine, however spending this kind of time every time I want to get to this state is just silly. Part of the ritual is to go through each of the open tabs, read the most recent updates and then close the tab, repeating this whole process many times a day.</p>
<p>At this point you should be starting to get the jist, to automate this whole process I created a Firefox Extension called <a href="http://wiki.github.com/admc/mytabs">MyTabs</a>. The UI and use case is simple, but some of the tools I built in make it potentially very powerful.</p>
<p><a href="mytabs">MyTabs</a> has the <a href="http://code.google.com/p/mozmill/wiki/ControllerAPI">MozMill Controller</a> built in, and is automatically setup in the tabs content window scope, allowing you to <a href="http://wiki.github.com/admc/mytabs/tab-scripting">write and attach scripts to each tab to be executed &#8216;onload&#8217;</a>. Thus automating the need to ever manually login to your web applications again.<br />
<br/><br />
<strong><a href="http://wiki.github.com/admc/mytabs/tab-scripting">Example script</a> for logging into <a href="http://www.facebook.com">Facebook</a>:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">//Lookup the three elements I want to interact with</span>
<span style="color: #003366; font-weight: bold;">var</span> email <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> elementslib.<span style="color: #660066;">ID</span><span style="color: #009900;">&#40;</span>doc<span style="color: #339933;">,</span> <span style="color: #3366CC;">'email'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> pass <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> elementslib.<span style="color: #660066;">ID</span><span style="color: #009900;">&#40;</span>doc<span style="color: #339933;">,</span> <span style="color: #3366CC;">'pass'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> login <span style="color: #339933;">=</span> doc.<span style="color: #660066;">getElementsByClassName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'UILinkButton_A'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">//Controller expects elementslib objects</span>
<span style="color: #003366; font-weight: bold;">var</span> elibLogin <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> elementslib.<span style="color: #660066;">Elem</span><span style="color: #009900;">&#40;</span>login<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">//Tell the controller to type the credentials</span>
tab.<span style="color: #660066;">type</span><span style="color: #009900;">&#40;</span>email<span style="color: #339933;">,</span> <span style="color: #3366CC;">'my_facebook_account@address.com'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
tab.<span style="color: #660066;">type</span><span style="color: #009900;">&#40;</span>pass<span style="color: #339933;">,</span> <span style="color: #3366CC;">'my_password'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">//Click the login button</span>
tab.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span>elibLogin<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>This is all possible by a really slick snipped of code I found on <a href="https://developer.mozilla.org/en/Code_snippets/Tabbed_browser">MDC</a>:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> newTabBrowser <span style="color: #339933;">=</span> gBrowser.<span style="color: #660066;">getBrowserForTab</span><span style="color: #009900;">&#40;</span>gBrowser.<span style="color: #660066;">addTab</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;http://www.google.com/&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
newTabBrowser.<span style="color: #660066;">addEventListener</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;load&quot;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> newTabBrowser.<span style="color: #660066;">contentDocument</span>.<span style="color: #660066;">body</span>.<span style="color: #660066;">innerHTML</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;Stuff&quot;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p><br/><strong>Security/Preferences</strong></p>
<p>For the sake of security I made it so that you can only attach scripts, not edit them so that you friends can&#8217;t go and view your script to get those plain text passwords. All the tab data is stored in the prefManager so that it is available across sessions. However if someone knew enough to pick apart the source, install a trusted JS Shell and manually access the prefManager you may be in trouble&#8230; so be careful about super sensitive information especially on a shared machine.</p>
<p>Using <a href="http://ui.jquery.com">jQuery UI</a> I was able to make the UI relatively attractive, intuitive and possibly skinnable in the future (if you want to do this yourself, grab the source swap out the jQuery UI theme CSS directory and boom you have yourself  new look.)</p>
<p><br/><strong>Some Screenshots</strong></p>
<p><img class="alignnone size-full wp-image-148" title="Welcome" src="http://www.adamchristian.com/wp-content/uploads/2009/02/picture_1.png" alt="Welcome" width="592" height="410" /><br />
<img class="alignnone size-full wp-image-149" title="Tab Overview" src="http://www.adamchristian.com/wp-content/uploads/2009/02/picture_2.png" alt="Tab Overview" width="581" height="403" /><img class="alignnone size-full wp-image-150" title="Adding new Tabs" src="http://www.adamchristian.com/wp-content/uploads/2009/02/picture_3.png" alt="Adding new Tabs" width="581" height="403" /><img class="alignnone size-full wp-image-151" title="Tab Scripting" src="http://www.adamchristian.com/wp-content/uploads/2009/02/picture_4.png" alt="Tab Scripting" width="581" height="403" /></p>
<p>The source is fully available on <a href="http://www.github.com">GitHub</a>, and the <a href="http://cloud.github.com/downloads/admc/mytabs/mytabs-03.xpi">XPI</a> is available on <a href="http://addons.mozilla.org">Mozilla Add-ons</a>.</p>
<ul>
<li><a href="http://github.com/admc/mytabs/tree/master">MyTabs on GitHub</a></li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/10720/">MyTabs on Mozilla Add-ons</a></li>
</ul>
<p>Remember that I am currently on bug fix release 0.3, but please let me know if you run into any problems!</p>
]]></content:encoded>
			<wfw:commentRss>http://adamchristian.com/archives/147/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>XUSH (.01), you know it&#8217;s fun to say.</title>
		<link>http://adamchristian.com/archives/121</link>
		<comments>http://adamchristian.com/archives/121#comments</comments>
		<pubDate>Wed, 28 Jan 2009 22:57:49 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Extension]]></category>
		<category><![CDATA[Mozmill]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Venkman]]></category>
		<category><![CDATA[XPCOM]]></category>
		<category><![CDATA[XUL]]></category>

		<guid isPermaLink="false">http://adamchristian.com/?p=121</guid>
		<description><![CDATA[Over the past 8 months I have been neck deep in XUL and XPCOM and with Venkman being as unintuitive as it is I have badly needed a shell with access to the trusted space in the browser. I also had a couple more requirements, which were that it was super easy to get at [...]]]></description>
			<content:encoded><![CDATA[<p>Over the past 8 months I have been neck deep in <a href="http://www.mozilla.org/projects/xul/">XUL</a> and <a href="http://www.mozilla.org/projects/xpcom/">XPCOM</a> and with <a href="https://addons.mozilla.org/en-US/firefox/addon/216">Venkman</a> being as unintuitive as it is I have badly needed a shell with access to the trusted space in the browser. I also had a couple more requirements, which were that it was super easy to get at (keyboard shortcut), and that it looks awesome (transparency required).</p>
<p>Since making things looks really nice in <a href="http://www.mozilla.org/projects/xul/">XUL </a>is really hard, I decided that I would build the UI in the current Firefox content window (sorry <a href="http://www.mozillamessaging.com/en-US/">tbird</a> etc, but I built a less shiny version of this into <a href="http://code.google.com/p/mozmill/">Mozmill</a> trunk for all of you).</p>
<p>Some of the functionality that I decided was a top priority was some slightly abstracted access to the window mediator which I am calling &#8216;windows&#8217;, and is simply an array of all the different windows available in the whole browser. The other big one is dir(), I am constantly looking for a property in one of the many, many objects I am trying to access and now that is really easy.</p>
<p>All of that goodness combined with enough space to stick real code blocks and a full history (which you can access using the shift key and up/down arrows), I find myself pretty comfortable.</p>
<p>After <a href="http://adamchristian.com/stuff/xush-01.xpi">installing the extension</a>, you can <strong>simply press &#8216;meta (cmd on mac) + shift + s&#8217;</strong> and you should be greeted with the following (toggling will show/hide the shell):</p>
<p><strong>UPDATE: </strong>It was pointed out to me that on windows meta may not be bound, so I have updated both the extension and git, please try &#8216;alt+shift+ctrl+s&#8217; or &#8216;ctrl+shift+s&#8217; on windows/linux, (I am testing in a VM so it&#8217;s a bit strange. Sorry about the confusion!) </p>
<p> </p>
<div id="attachment_123" class="wp-caption alignnone" style="width: 624px"><img title="Welcome to XUSH" src="http://www.adamchristian.com/wp-content/uploads/2009/01/picture-13-1024x847.png" alt="Welcome to XUSH" width="614" height="508" /><p class="wp-caption-text">Welcome to XUSH</p></div>
<p>To get started, you can type &#8216;help&#8217; to see what is available to you.</p>
<div id="attachment_128" class="wp-caption alignnone" style="width: 831px"><img class="size-full wp-image-128 " title="Help Menu" src="http://www.adamchristian.com/wp-content/uploads/2009/01/picture-22.png" alt="Help Menu" width="821" height="206" /><p class="wp-caption-text">Help Menu</p></div>
<p> </p>
<p> </p>
<p>Other available functionality includes a big chunk of the <a href="http://code.google.com/p/mozmill/wiki/ControllerAPI" target="_blank">mozmill controller</a> for driving user actions in the browser, as well as <a href="http://code.google.com/p/mozmill/source/browse/trunk/mozmill/extension/resource/modules/elementslib.js" target="_blank">elementslib</a> &#8212; which gives you all kinds of powerful features for looking up nodes in the browser.</p>
<div id="attachment_127" class="wp-caption alignnone" style="width: 868px"><img class="size-full wp-image-127 " title="ElementsLib" src="http://www.adamchristian.com/wp-content/uploads/2009/01/picture-6.png" alt="ElementsLib" width="858" height="187" /><p class="wp-caption-text">ElementsLib</p></div>
<p>As I mentioned above, the windows helper can quickly give you an idea of what is open in the browser and let you directly access the objects in the windows[x] array.</p>
<div id="attachment_129" class="wp-caption alignnone" style="width: 840px"><img class="size-full wp-image-129 " title="Windows Helper" src="http://www.adamchristian.com/wp-content/uploads/2009/01/picture-3.png" alt="Windows Helper" width="830" height="149" /><p class="wp-caption-text">Windows Helper</p></div>
<p> </p>
<p>The nice big console gives you enough space (and using shift) you can do multiple line commands to actually execute code snippets:</p>
<div id="attachment_130" class="wp-caption alignnone" style="width: 676px"><img class="size-full wp-image-130 " title="Code Blocks" src="http://www.adamchristian.com/wp-content/uploads/2009/01/picture-5.png" alt="Code Blocks" width="666" height="218" /><p class="wp-caption-text">Code Blocks</p></div>
<p>My next round of features will include some more helpers, including tab completion and any bug fixes I find, please let me know of any that you find!</p>
<p>If you would like to play with the source, <a href="http://github.com/admc/xush/tree/master">I have it on github </a>and have a python script that uses <a href="http://code.google.com/p/mozrunner/">mozrunner</a> to launch it in dev mode (with venkman installed, although now I don&#8217;t really need it), but saves you from installing and uninstalling the extension every-time you want to try out your latest code changes:<br />
<code><br />
python xush.py<br />
</code></p>
<p>That should launch <a href="http://www.getfirefox.com">Firefox</a> with <a href="http://github.com/admc/xush/tree/master">XUSH</a> and <a href="https://addons.mozilla.org/en-US/firefox/addon/216">Venkman</a> both installed and allow you to hit the shortcut and wham, test away.</p>
<p>After another round of bug fixes I will be submitting this to <a href="https://addons.mozilla.org/en-US/firefox/">Mozilla AMO</a>.</p>
<p><strong>Other projects you might be into if this interests you:</strong></p>
<ul>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/216">Venkman</a></li>
<li><a href="http://code.google.com/p/mozmill/">Mozmill</a></li>
<li><a href="http://getfirebug.com/releases/chromebug/">Chomebug</a></li>
</ul>
<p>Thanks for your interest!</p>
]]></content:encoded>
			<wfw:commentRss>http://adamchristian.com/archives/121/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Meet lookupNode</title>
		<link>http://adamchristian.com/archives/111</link>
		<comments>http://adamchristian.com/archives/111#comments</comments>
		<pubDate>Wed, 21 Jan 2009 00:22:17 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Automation]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Windmill]]></category>
		<category><![CDATA[Windmill-dev]]></category>
		<category><![CDATA[Elementslib]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://adamchristian.com/?p=111</guid>
		<description><![CDATA[A few months ago I did a re-write of the DOM access functionality used by Windmill and various other projects of mine and the result was a wrapper around ElementsLib called lookupNode. I use this all over internally but until today didn&#8217;t realize that it could be hugely helpful for test developers and people trying [...]]]></description>
			<content:encoded><![CDATA[<p>A few months ago I did a re-write of the DOM access functionality used by Windmill and various other projects of mine and the result was a wrapper around ElementsLib called lookupNode. I use this all over internally but until today didn&#8217;t realize that it could be hugely helpful for test developers and people trying to debug their applications.</p>
<p>The following list are the different options you have for looking up your node:</p>
<ul>
<li>link</li>
<li>xpath</li>
<li>id</li>
<li>name</li>
<li>value</li>
<li>classname</li>
<li>tagname</li>
<li>label</li>
</ul>
<p>Keep in mind that we iterate all iframes we can access in the window if the node isn&#8217;t found in the page document. lookupNode takes an object, like so:</p>
<p><code><br />
var myNode = lookupNode({id:'myNodeId'});<br />
</code></p>
<p>The very interesting use case we had today was the need to access and parse data from a link on a page in a Python test, I believe the final result looked something like the following:<br />
<code><br />
url = client.commands.execJS(code="lookupNode({link:'Link Text'}).href")["result"]<br />
#url parsing in python goes here into needed_value<br />
client.asserts.assertValue({id:'mycheckbox', validator=needed_value})<br />
</code><br />
<br />
<div id="attachment_114" class="wp-caption alignnone" style="width: 491px"><img class="size-full wp-image-114" title="lookupNode in Action" src="http://www.adamchristian.com/wp-content/uploads/2009/01/picture-11.png" alt="lookupNode in Action" width="481" height="314" /><p class="wp-caption-text">lookupNode in Action</p></div><br />
<br />
I hope someone finds this useful, the abstracted standalone ElementsLib for the content space <a href="http://code.google.com/p/elementslib/">can be found here!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://adamchristian.com/archives/111/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>This thing I&#8217;m calling Windmill-Lite</title>
		<link>http://adamchristian.com/archives/102</link>
		<comments>http://adamchristian.com/archives/102#comments</comments>
		<pubDate>Wed, 14 Jan 2009 04:28:49 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Automation]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Github]]></category>
		<category><![CDATA[JSmin]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Windmill]]></category>

		<guid isPermaLink="false">http://adamchristian.com/?p=102</guid>
		<description><![CDATA[In preparation for the Windmill 2 client side re-architecting, and an article I am writing about simulating user sessions with JavaScript, I decided it was time to go through the Windmill JavaScript source and pull out the pieces necessary to drive a user session in JavaScript.
It turns out that it&#8217;s easily broken into a few [...]]]></description>
			<content:encoded><![CDATA[<p>In preparation for the Windmill 2 client side re-architecting, and an article I am writing about simulating user sessions with JavaScript, I decided it was time to go through the Windmill JavaScript source and pull out the pieces necessary to drive a user session in JavaScript.</p>
<p>It turns out that it&#8217;s easily broken into a few pieces:</p>
<ul>
<li><strong>Events</strong>: Cross browser compatible event firing functionality</li>
<li><strong>ElementsLib</strong>: DOM element lookup functionality via many methods called &#8216;locators&#8217;</li>
<li><strong>Controller</strong>: The logic for firing the right events to simulate user actions such as &#8216;type&#8217;</li>
</ul>
<p>In order to test all the functionality I wrote a small runner implementation, which was actually pretty fun and interested because of the need for waits and sleeps. As I didn&#8217;t want to have a continuous loop running, which has been the standard solution up to this point I decided to go about mine using a execution queue instead.</p>
<p>By &#8216;queue&#8217; I mean that I&#8217;m using a JavaScript array with push and shift to keep track of what user actions need to be executed next. When a new action is pushed, if there is nothing in the stack it immediately executes, however if there are actions in the stack waiting those are then executed in order then it is executed. This works great, however there is one more level of complexity here involving sleeps and waits. If a sleep or wait is called a flag is set called &#8216;asleep&#8217;, that tells the executor to pop any new actions onto the stack instead of trying to execute them. When the sleep is done the asleep flag is turned off and all the actions in the stack that have been queued up are then executed in order.</p>
<p><strong>Tests are very simple.</strong><br />
<code><br />
var test_run = function(){<br />
wm.user('type',{'text':'testing', 'name':'q'});<br />
wm.user('waits.sleep', {'ms':5000});<br />
wm.user('type',{'text':'numbertwo', 'name':'q'});<br />
wm.user('asserts.assertValue', {'name':'q', 'validator':'numbertwo'})<br />
wm.user('waits.sleep', {'ms':3000});<br />
wm.user('type',{'text':'finally', 'name':'q'});<br />
wm.user('asserts.assertValue', {'name':'q', 'validator':'finally'})<br />
}<br />
</code></p>
<p>This test can be executed against the Google Home page, and it simply types text in to the search box, sleeps a few times and asserts that the value typed in is actually in the form field when it should be. wm is the windmill code namespace, and user is the dispatch function that takes the method to executed and it&#8217;s parameters as an object.</p>
<p>Obviously as this was all taken out of the Windmill source all of the JUM functions are also available in wm.ctrl.asserts if you would like to mix them into your test.</p>
<p><strong>So how would one use this?</strong></p>
<p>There are actually a couple ways, one is to include the source in the page you want to test:<br />
<code><br />
&lt;script src="http://adamchristian.com/wmlite/wm-lite.js" type="text/javascript"&gt;&lt;/script&gt;<br />
</code></p>
<p>or you can use the JavaScript Console to inject it into your page:<br />
<code><br />
x = document.createElement('script')<br />
x.src = "http://adamchristian.com/wmlite/wm-lite.js"<br />
document.body.appendChild(x)<br />
</code></p>
<p>There is code that is executed when this file is included that figures out if the page has been loaded, if it has it calls in init function to enable the key shortcut listeners. If the page hasn&#8217;t been loaded, the window onload is pointed at the init so you are sure to have the shortcuts available to access the UI.</p>
<p>The short-cut is ALT-T. I was thinking &#8216;test&#8217;, meta-t and ctrl-t are almost always assigned by the browser but alt appears to work in all my test cases.</p>
<p>&#8220;Windmill-Lite UI Screenshot&#8221;</p>
<p><img class="alignnone size-medium wp-image-103" title="Windmill Lite UI" src="http://www.adamchristian.com/wp-content/uploads/2009/01/picture-2-300x126.png" alt="Windmill Lite UI" width="300" height="126" /></p>
<p><strong>Why?</strong></p>
<p>I don&#8217;t have a specific use case for this code/project but I know there are many uses out there for the functionality in the libraries, and for a low overhead cross browser litmus test tool it has some serious potential&#8230; also, it was fun.</p>
<p><strong>Links</strong></p>
<ul>
<li><strong>GitHub:</strong> <a href="http://github.com/admc/windmill-lite/tree/master">http://github.com/admc/windmill-lite/tree/master</a></li>
<li><strong>Compressed: </strong><a href="http://adamchristian.com/wmlite/wm-lite.js">http://adamchristian.com/wmlite/wm-lite.js</a></li>
</ul>
<p><strong><br />
Additional Coolness</strong></p>
<p>I&#8217;m sure there is something like this out there, but I got pretty annoyed trying to use various JavaScript compressor tools to make a single minified file, so I hacked one together in Python called &#8216;compressjsdir&#8217;. It requires jsmin.py, and you can find a zip of everything required here: <a href="http://adamchristian.com/code/compressjsdir.zip">http://adamchristian.com/code/compressjsdir.zip</a>, or grab the source from github: <a href="http://github.com/admc/compressjsdir/tree/master">http://github.com/admc/compressjsdir/tree/master</a></p>
<p>To run it you can simply do the following (after you put the compressjsdir directory in your path):<br />
<code><br />
dhcp-10-10-9-230% cd directory_of_js_files<br />
dhcp-10-10-9-230% compressjsdir.py<br />
Reading and compressing...<br />
Writing file...<br />
</code></p>
<p>There should now be a file called out.js, which is composed of all the js files in the directory minified and concatted together. This is all based on the JS compressor code <a href="http://www.mikealrogers.com">Mikeal Rogers</a> wrote for Windmill in our quest for performance.</p>
<p>I will be adding a couple easy features in the next few days, one of course is to take a parameter used to name the output file, and the other argument will be a comma delimited list for ordering of the files as they are minified and appear in the result (in case  you have dependent files).</p>
<p><strong>More</strong></p>
<p>If you are interested in more related or similar projects, you may want to check out <a href="http://fireunit.org/">FireUnit</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://adamchristian.com/archives/102/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windmill Gets a Facelift for 1.0Beta1</title>
		<link>http://adamchristian.com/archives/56</link>
		<comments>http://adamchristian.com/archives/56#comments</comments>
		<pubDate>Wed, 19 Nov 2008 12:11:36 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Automation]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Windmill]]></category>
		<category><![CDATA[Windmill-dev]]></category>
		<category><![CDATA[1.0]]></category>
		<category><![CDATA[Beta]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[Mozmill]]></category>
		<category><![CDATA[Release]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[UI]]></category>

		<guid isPermaLink="false">http://adamchristian.com/?p=56</guid>
		<description><![CDATA[Working up to the Windmill 1.0 Beta 1 Release, I finally had the opportunity to put some time into making the IDE (that a lot of you live in when in test writing mode) a little bit nicer to look at.
The IDE has been growing organically since 0.1 and there was a lot of functionality [...]]]></description>
			<content:encoded><![CDATA[<p>Working up to the <a href="http://www.getwindmill.com/archives/315">Windmill 1.0 Beta 1 Release</a>, I finally had the opportunity to put some time into making the IDE (that a lot of you live in when in test writing mode) a little bit nicer to look at.</p>
<p>The IDE has been growing organically since 0.1 and there was a lot of functionality hacked into it that wasn&#8217;t in the original game plan, so I did what I could to improve the beauty of the CSS/Layout as well as the whole mess of code behind it.</p>
<p><img style="float:right;position:relative;" title="loading" src="http://www.adamchristian.com/wp-content/uploads/2008/11/loading.png" alt="" width="244" height="127" /><br />
<strong>Launching</strong><br />
If you have used our latest release, or are running trunk you know that we have significantly improved the load times for the Windmill IDE. By compressing the JavaScript when the service is instantiated we can simply hand the IDE window one file that contains the vast majority of the required code.</p>
<p>The reason that this makes such a huge performance difference is because we are loading the source via the local windmill proxy and the data size size had very little impact, the overhead was in the browser two connection limit. When you have to pull down ~30 files two at a time it takes its toll and made the IDE feel very sluggish and more like a web page loading than an IDE.</p>
<p>In the process of figuring out exactly what was slowing down the launch time we added some more informative messages and output so you don&#8217;t sit there staring at a twirling circle graphic wondering if anything is happening. And to make the experience even more fun, I couldn&#8217;t help but implement a progress bar.</p>
<p><strong>General Layout</strong><br />
I removed the toolbar at the bottom of the screen, which I felt it was an irritation for test editing (especially with the drag and droppable actions). It is now in a drop down menu at the top right of the screen, with the rest of the UI access to IDE functions.<br />
<img class="size-full wp-image-60 alignleft" title="gen_layout0" src="http://www.adamchristian.com/wp-content/uploads/2008/11/gen_layout0.png" alt="" width="216" height="62" /><img class="size-full wp-image-62 alignright" title="gen_layout2" src="http://www.adamchristian.com/wp-content/uploads/2008/11/gen_layout2.png" alt="" width="198" height="88" /><br />
<img class="size-full wp-image-61 aligncenter" title="gen_layout1" src="http://www.adamchristian.com/wp-content/uploads/2008/11/gen_layout1.png" alt="" width="218" height="58" /></p>
<p><strong>Settings and Firebug Lite Improvements</strong><br />
The settings dialog has continued to improve by implementing more useful defaults, adding new options, removing deprecated options and simply making it just look better. Thanks jQuery UI!</p>
<p><img class="alignnone size-full wp-image-63" title="wm_settings" src="http://www.adamchristian.com/wp-content/uploads/2008/11/wm_settings.png" alt="" width="298" height="328" /></p>
<p>Firebug Lite has been a very popular feature since we first announced it, which has led to a handful of bug fixes over the last month. The most major of these was that the initial Windmill implementation of Firebug Lite required you to have Internet access as it was using resources that were hosted elsewhere.</p>
<p>These have since been copied to our source tree and are made available by the Windmill server so you can happily introspect your Web Apps JavaScript while writing tests on your Intranet.</p>
<p><img class="alignnone size-full wp-image-64" title="fblite1" src="http://www.adamchristian.com/wp-content/uploads/2008/11/fblite1.png" alt="" width="342" height="375" /><br />
<img class="alignnone size-full wp-image-65" title="fblite2" src="http://www.adamchristian.com/wp-content/uploads/2008/11/fblite2.png" alt="" width="393" height="449" /></p>
<p><strong>Output and Performance</strong><br />
Instead of writing all the raw windmill output to the output and performance tabs there is now an array called windmill.errorArr, where all terrible errors and warnings about technical details are pushed in the case you are interested to see all that data. However, it&#8217;s more likely that you aren&#8217;t and scrolling through all that output data becomes tedious.</p>
<p>This is why we have implemented output in blocks with the background color representing pass/failure with green/red (white for performance). These blocks are expandable, clicking them will reveal all output (or performance information) we know about the action that was executed. This should give you a faster general overview of your results and allow you to quickly see the details you care about.</p>
<p><img class="alignnone size-full wp-image-67" title="output" src="http://www.adamchristian.com/wp-content/uploads/2008/11/output.png" alt="" width="406" height="240" /><br />
<img class="size-full wp-image-68 alignnone" title="perf" src="http://www.adamchristian.com/wp-content/uploads/2008/11/perf.png" alt="" width="406" height="257" /></p>
<p><strong>Other Worthwhile Mentions</strong><br />
We moved our XPath implementation from Ajax-Slt to JS-XPath, which has proven to be more accurate when it comes to resolving XPath generated in Firefox (or using Firebug) against non XPath native browsers such as IE.</p>
<p>Many bugs and improvements have been made to the DOM Explorer, which should now feel a lot more like the Firebug DOM inspector, but should work in any browser.</p>
<p style="text-align: center;"><img class="size-full wp-image-66 aligncenter" title="dx" src="http://www.adamchristian.com/wp-content/uploads/2008/11/dx.png" alt="" width="500" height="150" /></p>
<p>We have also put a lot of effort into improving the communication between the JavaScript Controller and the Python Service so that when a test fails you get as much detailed information in the service as you do in the IDE.</p>
<p style="text-align: center;"><img class="size-full wp-image-69 aligncenter" title="stdout" src="http://www.adamchristian.com/wp-content/uploads/2008/11/stdout.png" alt="" width="500" height="74" /></p>
<p><strong>Timing and MozMill</strong><br />
The timing has lined up nicely as we are working on both a 1.0 release for <a href="http://www.getwindmill.com">Windmill</a> and <a href="http://code.google.com/p/mozmill/">MozMill</a>. MozMill is geared towards automated testing of all applications on the Mozilla Platform and functions in the trusted space providing lots of very useful flexibility.</p>
<p>You can currently try out <a href="https://addons.mozilla.org/en-US/firefox/addon/9018">MozMill 1.0rc1 as a Firefox Add-on</a>, and keep your eyes pealed as some exciting new MozMill feature work is around the corner.</p>
<p><strong>Participate</strong><br />
We are always trying to make life easier for the test writer, so please <a href="http://trac.getwindmill.com/report">log your bugs</a> and feel free to come <a href="http://freenode.net/">chat with us in #windmill on FreeNode</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://adamchristian.com/archives/56/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
