<?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; Continuous Integration</title>
	<atom:link href="http://www.adamchristian.com/archives/category/continuous-integration/feed" rel="self" type="application/rss+xml" />
	<link>http://www.adamchristian.com</link>
	<description></description>
	<lastBuildDate>Thu, 09 Feb 2012 22:28:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>My new gig &#8211; Sauce Labs</title>
		<link>http://www.adamchristian.com/archives/367</link>
		<comments>http://www.adamchristian.com/archives/367#comments</comments>
		<pubDate>Tue, 23 Mar 2010 14:25:18 +0000</pubDate>
		<dc:creator></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 [...]]]></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://www.adamchristian.com/archives/367/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Considering in-house web automation?</title>
		<link>http://www.adamchristian.com/archives/358</link>
		<comments>http://www.adamchristian.com/archives/358#comments</comments>
		<pubDate>Tue, 02 Mar 2010 06:38:06 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Automation]]></category>
		<category><![CDATA[Continuous Integration]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Hudson]]></category>
		<category><![CDATA[java]]></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[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&#8242;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://www.adamchristian.com/archives/358/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Windmill Plugin for Hudson</title>
		<link>http://www.adamchristian.com/archives/251</link>
		<comments>http://www.adamchristian.com/archives/251#comments</comments>
		<pubDate>Mon, 11 May 2009 00:42:27 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Automation]]></category>
		<category><![CDATA[Continuous Integration]]></category>
		<category><![CDATA[java]]></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[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 [...]]]></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://www.adamchristian.com/archives/251/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PyCon 2009 Recap</title>
		<link>http://www.adamchristian.com/archives/236</link>
		<comments>http://www.adamchristian.com/archives/236#comments</comments>
		<pubDate>Mon, 13 Apr 2009 20:54:38 +0000</pubDate>
		<dc:creator></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 [...]]]></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://www.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://www.adamchristian.com/archives/236/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Diving into GIT</title>
		<link>http://www.adamchristian.com/archives/97</link>
		<comments>http://www.adamchristian.com/archives/97#comments</comments>
		<pubDate>Tue, 25 Nov 2008 20:10:26 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Automation]]></category>
		<category><![CDATA[Continuous Integration]]></category>
		<category><![CDATA[Hudson]]></category>
		<category><![CDATA[Slide]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Windmill]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[challenges]]></category>
		<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[GIT]]></category>
		<category><![CDATA[msysGIT]]></category>
		<category><![CDATA[puTTY]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://adamchristian.com/?p=97</guid>
		<description><![CDATA[Over the last year, I have known that the day would come when I could no longer avoid moving from SVN (my comfort zone) to this new beast called GIT that everyone is so excited about. My first hour, which was installing it on my Mac and pulling down a repo to play with was [...]]]></description>
			<content:encoded><![CDATA[<p>Over the last year, I have known that the day would come when I could no longer avoid moving from SVN (my comfort zone) to this new beast called GIT that everyone is so excited about. My first hour, which was installing it on my Mac and pulling down a repo to play with was very pleasant. My ssh keys and ~/.ssh/config was already setup the way I wanted and everything just worked.</p>
<p>The pain began when I started in on moving our build slaves over to GIT. Of course two of the three are running Windows because we have to run the Windmill tests against IE. In an attempt to keep things simple, I wanted to avoid installing cygwin on the machines, so I tried msysGIT. Oh WAIT I have to get ssh to work before I can actually use GIT to pull down the repo. </p>
<p>After trying and failing with openSSH, I finally realized that the <a href="http://the.earth.li/~sgtatham/putty/latest/x86/putty-0.60-installer.exe">Windows puTTY Package</a> was the best way to go about this. There was much frustration involved with this process because it requires that you take the ssh key you generated on your mac (and had added on the server) and convert it to a puTTY ppk. Fortunately this turns out not to be that panful using puTTYgen. The next piece to the puzzle was to get pageant to load this key automatically when the machine boots. I went through some rigamarole trying to create a shortcut in the &#8220;Startup&#8221; items and appending a string to it&#8217;s path to get it to load the correct key. This didn&#8217;t work, I&#8217;m sure it was a combination of Windows being terribly un user friendly and my brain expecting things to &#8220;Just Work TM&#8221;. Finally I just created a short cut for the actual key and stuck it in the &#8220;Startup&#8221; folder, and it works! (You still have to enter your pass phrase on boot) but its better than the alternatives. I actually found a post on a puTTY forum where someone was asking to automate this piece too and the response was basically, &#8220;No, never, die. Doing that defeats the purpose of SSH&#8221;. </p>
<p>One step that I forgot to mention is that to get GIT to use the right SSH key you have to set the environment variable: <code>GIT_SSH=path/to/putty/plink.exe</code></p>
<p>Next I went and started my git clone, which kicked off perfectly. That wasn&#8217;t so bad! 46% later at 1.99GB of the retrieval process I received two fatal errors that looked similar to file system errors. I then did some Googling to find that msysGIT only supports repository&#8217;s up to 2GB. The answer on the forums for this problem was, &#8220;have a smaller repo&#8221;. This is a problem, so I head back to the GIT homepage, where I find that the only real lasting option is to use cygwin GIT. </p>
<p>After I get cygwin GIT all installed I finally get the repo fully downloaded I check to see if I can use the msysGIT to pull changes (which should never be 2gb worth), and it absolutely freaks out. So that&#8217;s not an option, and neither is adding cygwin/bin to your path because that complains about &#8216;exec ssh&#8217; not existing.</p>
<p>Your probably wondering, why don&#8217;t you just use cygwin to do your GIT stuff? Well the issue is that we are using hudson to queue up jobs on the machines using the cmd environment to pull changes and run the tests in the repo. And it became very clear that the best way to handle this was to run the slave agent from cygwin, that way the jobs are actually running in cygwin land and this turned out to work &#8212; awesome!</p>
<p>To finish describing my pain, the last problem was that since I am running the tests from c:\main, (you have to be inside a git repo to pull and I want to keep these jobs simple) I am generating the log file in the wrong place, because the job looks in it&#8217;s home directory to find the jUnit Compatible XML results file. Fortunately there are some environment variables that I can use to get the files back where I want; <code>mv *.log %WORKSPACE%</code></p>
<p>Now that life is back to normal and I&#8217;m getting used to living in the new GIT world, I can get back to important things like making Windmill more awesome and increasing test coverage.</p>
<p>Cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.adamchristian.com/archives/97/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zero to Continuous Integration with Windmill</title>
		<link>http://www.adamchristian.com/archives/43</link>
		<comments>http://www.adamchristian.com/archives/43#comments</comments>
		<pubDate>Fri, 19 Sep 2008 02:29:58 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Automation]]></category>
		<category><![CDATA[Continuous Integration]]></category>
		<category><![CDATA[Hudson]]></category>
		<category><![CDATA[Slide]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Windmill]]></category>
		<category><![CDATA[Windmill-dev]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Continuous]]></category>
		<category><![CDATA[Integration]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[test]]></category>

		<guid isPermaLink="false">http://adamchristian.com/?p=43</guid>
		<description><![CDATA[Following &#8216;automation&#8217; and &#8216;continuous integration&#8217; in the micro blogging world I have seen a major influx in people being super interested in functionally automating their web apps. I have seen a slew of things about Grid, and Selenium, and people hacking on Watir so I decided to show you from the ground up how incredibly [...]]]></description>
			<content:encoded><![CDATA[<p>Following &#8216;automation&#8217; and &#8216;continuous integration&#8217; in the micro blogging world I have seen a major influx in people being super interested in functionally automating their web apps. I have seen a slew of things about Grid, and Selenium, and people hacking on Watir so I decided to show you from the ground up how incredibly easy it is to get automated test running setup using <a href="http://www.getwindmill.com">Windmill</a> and <a href="http://hudson.gotdns.com/wiki/display/HUDSON/Meet+Hudson#Installation">Hudson</a>. I am not going to walk you through every detail, this is much more high level but I do plan to start a &#8216;continuous integration&#8217; page on getwindmill.com in the near future for those kinds of details.</p>
<p>The first step is to get a couple machines that you want use as slaves and a machine to run Hudson, our setup looks like this:</p>
<p><a href="http://adamchristian.com/wp-content/uploads/2008/09/arch.png"><img class="alignnone size-medium wp-image-44" title="Windmill/Hudson Arch" src="http://adamchristian.com/wp-content/uploads/2008/09/arch.png" alt="" width="291" height="191" /></a></p>
<p>Each of the machines with a different OS has <a href="http://www.getwindmill.com">Windmill</a> installed. To make them slaves you simply bring up the Hudson web page on the machine, and run the launcher.. now it&#8217;s a slave &#8212; crazy easy right?</p>
<p>Now to setup test runs for the machines, in Hudson you click: &#8220;New Job&#8221; on the left hand side and do something like the following:</p>
<p><strong>Tie this job to the slave you want it to run on (we can&#8217;t have IE runs happening on MacOSX):<br />
</strong><span style="color: #0000ee;"><span style="color: #000000;"><img class="alignnone size-full wp-image-55" title="tie_node" src="http://adamchristian.com/wp-content/uploads/2008/09/tie_node.png" alt="" width="500" height="55" /></span></span></p>
<p><strong>Tell this job to run 10 and 30 minutes after the hour:<br />
</strong><a href="http://adamchristian.com/wp-content/uploads/2008/09/build_periodic2.png"><img class="alignnone size-full wp-image-50" title="build_periodic2" src="http://adamchristian.com/wp-content/uploads/2008/09/build_periodic2.png" alt="" width="500" height="69" /></a></p>
<p><strong>The build steps to actually run the tests, the first kills any straggling processes (more details below):<br />
</strong><a href="http://adamchristian.com/wp-content/uploads/2008/09/build_steps1.png"><img class="alignnone size-full wp-image-51" title="build_steps" src="http://adamchristian.com/wp-content/uploads/2008/09/build_steps1.png" alt="" width="353" height="328" /></a></p>
<p>On the Mac for the Safari job, I want to make sure there aren&#8217;t any instances of Safari left hanging, or windmill processes sitting around so we do:<br />
<code>ps -ax | grep windmill | awk '{ print $1 }' | xargs kill  | true<br />
ps -ax | grep Safari | awk '{ print $1 }' | xargs kill | true<br />
</code></p>
<p>Then we want to grab the latest test code from svn and launch the windmill test:<br />
<code>svn up /Users/adam/Documents/main_bt/windmill/<br />
python /usr/local/bin/windmill safari http://www.facebook.com test=/Users/adam/Documents/main_bt/windmill/fb email=username@slide.com password=pass report=true exit<br />
rm /Users/adam/Library/Cookies/Cookies.plist<br />
</code></p>
<p>I am telling windmill to run a test against facebook.com, with the test hierarchy in the windmill/fb directory in Safari, with the provided email and password, then to report it&#8217;s results and exit.</p>
<p>The only thing different on our windows test runs is the way we kill the processes:<br />
Example:<br />
<code>taskkill /F /T /IM windmill.exe<br />
taskkill /F /T /IM firefox.exe<br />
</code></p>
<p>You might be asking how do I use those variables, check it out in my setup module:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">def</span> setup_module<span style="color: black;">&#40;</span>module<span style="color: black;">&#41;</span>:
    client = WindmillTestClient<span style="color: black;">&#40;</span>__name__<span style="color: black;">&#41;</span>
    client.<span style="color: #008000;">type</span><span style="color: black;">&#40;</span>text=functest.<span style="color: black;">registry</span><span style="color: black;">&#91;</span><span style="color: #483d8b;">'email'</span><span style="color: black;">&#93;</span>, <span style="color: #008000;">id</span>=u<span style="color: #483d8b;">'email'</span><span style="color: black;">&#41;</span>
    client.<span style="color: #008000;">type</span><span style="color: black;">&#40;</span>text=functest.<span style="color: black;">registry</span><span style="color: black;">&#91;</span><span style="color: #483d8b;">'password'</span><span style="color: black;">&#93;</span>, <span style="color: #008000;">id</span>=u<span style="color: #483d8b;">'pass'</span><span style="color: black;">&#41;</span>
    client.<span style="color: black;">click</span><span style="color: black;">&#40;</span><span style="color: #008000;">id</span>=u<span style="color: #483d8b;">'doquicklogin'</span><span style="color: black;">&#41;</span>
    client.<span style="color: black;">waits</span>.<span style="color: black;">forPageLoad</span><span style="color: black;">&#40;</span>timeout=u<span style="color: #483d8b;">'100000'</span><span style="color: black;">&#41;</span></pre></td></tr></table></div>

<p>You can also read a great entry about adding reporting to your tests on Mikeal Rogers blog, <a href="http://www.mikealrogers.com/archives/46">here.</a></p>
<p>And that last line removing Cookies.plist makes sure that the next test run starts without any cookies set to cause problems.</p>
<p><strong>Have Hudson keep you updated on Jabber:</strong></p>
<p><a href="http://adamchristian.com/wp-content/uploads/2008/09/jabber1.png"><img class="alignnone size-full wp-image-52" title="jabber1" src="http://adamchristian.com/wp-content/uploads/2008/09/jabber1.png" alt="" width="500" height="97" /></a></p>
<p><strong>Grab the generated XML output so you can view the test results in Hudson:</strong></p>
<p><img class="alignnone size-full wp-image-54" title="publish_junit" src="http://adamchristian.com/wp-content/uploads/2008/09/publish_junit.png" alt="" width="500" height="58" /></p>
<p><strong>Do this for each of the test runs you would like to have, and boom &#8212; continuous integration:</strong></p>
<p><a href="http://adamchristian.com/wp-content/uploads/2008/09/jobs_dash1.png"><img class="alignnone size-medium wp-image-53" title="jobs_dash" src="http://adamchristian.com/wp-content/uploads/2008/09/jobs_dash1-300x148.png" alt="" width="300" height="148" /></a></p>
<p>This is obviously a simple scenario, and you can do way, way more customization.. but this should get you off the ground. Happy testing!</p>
<p><span style="text-decoration: underline;"><br />
</span><br />
 </p>
]]></content:encoded>
			<wfw:commentRss>http://www.adamchristian.com/archives/43/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: www.adamchristian.com @ 2012-02-10 13:17:36 -->
