<?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>Gojko Adzic &#187; selenium</title>
	<atom:link href="http://gojko.net/tag/selenium/feed/" rel="self" type="application/rss+xml" />
	<link>http://gojko.net</link>
	<description>Building software that matters</description>
	<lastBuildDate>Fri, 12 Mar 2010 07:59:33 +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>Putting Selenium in the right place</title>
		<link>http://gojko.net/2009/10/06/putting-selenium-in-the-right-place/</link>
		<comments>http://gojko.net/2009/10/06/putting-selenium-in-the-right-place/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 08:15:18 +0000</pubDate>
		<dc:creator>gojko</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[citcon]]></category>
		<category><![CDATA[selenium]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[UI]]></category>

		<guid isPermaLink="false">http://gojko.net/?p=1253</guid>
		<description><![CDATA[Although Selenium is an essential trace element, it is toxic if taken in excess. That is what Wikipedia has to say on the chemical element Selenium, but pretty much sums up my feelings about the web testing tool of the same name as well. I like very much how easy it is to implement web [...]]]></description>
			<content:encoded><![CDATA[<p><img src="/images/organic_selenium.jpg" style="width:200px" align="left" />Although Selenium is an essential trace element, it is toxic if taken in excess. That is what Wikipedia has to say on the chemical element Selenium, but pretty much sums up my feelings about the web testing tool of the same name as well. I like very much how easy it is to implement web tests with Selenium, but I&#8217;ve seen so many teams shoot themselves in the foot by misusing it and wasting a ton of time on writing and executing tests that simply got thrown away on the end. The <a href="http://code.google.com/p/webdriver/wiki/PageObjects">Page Object</a> pattern, popularised by Simon Stewart with WebDriver, seems to be the universally accepted best practice to manage UI tests efficiently and the preferred way to implement Selenium tests. However, at the recent <a href="/tag/citcon">CITCON Europe</a> conference in Paris, <a href="http://am.testingreflections.com">Antony Marcano</a> spoke against this and offered an alternative.<span id="more-1253"></span></p>
<p>One of the biggest issues with UI tests described at the task level (such as click there, type this etc) is that they <a href="http://gojko.net/2007/09/25/effective-user-interface-testing/">are very brittle and hard to understand</a>. Too many details in technical steps make it hard to see the big picture, so tests work nicely as a regression check but once something fails it is hard to figure out what exactly went wrong. They are also bound to a particular UI design, so when the design changes, lots of tests break. Selenium works on the technical task level and tests written for Selenium frequently fall into this black whole. Once the design is changed, you might as well do everything again from scratch. </p>
<p>Instead of writing tests at the technical task level, the Page Object pattern suggests creating one more level of indirection and describing business functionality of pages with objects (eg search for customers, submit registration form) and then implementing individual methods of these objects with Selenium. Tests are then written with the page object methods, which make them much more understandable and easier to maintain. Once the UI changes, we can reimplement only the relevant methods of Page Objects making the effects of changes relatively contained. Tests themselves don&#8217;t need to change. Similar ideas are implemented by <a href="http://texttest.carmen.se/index.php?page=concepts&#038;n=xusecase">xUseCase recorders</a> and Domain-Specific Testing Languages in Selenium (see <a href="http://www.solutionsiq.com/agile2008/agile-2008-domain.php">Mickey Phoenix&#8217;s Agile 2008 presentation</a>).</p>
<p>Marcano said that page objects focus on the wrong thing. Taking ideas from interaction design, he suggested that it is natural to think about functionality on three levels &mdash; goals, activities and tasks:</p>
<ol>
<li>Goal: Buy a book</li>
<li>Activities: Add the following items to the cart,&#8230;</li>
<li>Tasks: click search, type in book name, click book image, click Add to cart&#8230;</li>
</ol>
<p><br clear="all" /><br />
When thinking about web site functionality, people don&#8217;t think about pages but about activities that span multiple pages. Focusing on goal oriented cross-page activities instead of page oriented functionality makes tests more natural, easier to understand and maintain. Instead of Page Objects, Marcano suggested implementing activities with Selenium and then composing tests from activities. One more significant benefit of this approach is that activities aren&#8217;t baked into the user interface, unlike objects representing web pages, so the same test definitions can be kept for testing below the UI with different task implementations.</p>
]]></content:encoded>
			<wfw:commentRss>http://gojko.net/2009/10/06/putting-selenium-in-the-right-place/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>An excellent agile testing experience report</title>
		<link>http://gojko.net/2009/07/23/an-excellent-agile-testing-experience-report/</link>
		<comments>http://gojko.net/2009/07/23/an-excellent-agile-testing-experience-report/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 07:24:43 +0000</pubDate>
		<dc:creator>gojko</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[agile]]></category>
		<category><![CDATA[agile testing]]></category>
		<category><![CDATA[selenium]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[twill]]></category>

		<guid isPermaLink="false">http://gojko.net/?p=1025</guid>
		<description><![CDATA[The agile testing evening sessions at Skills Matter are getting better and better. I thoroughly enjoyed yesterday&#8217;s session with an experience report given by Nathan Bain and Anand Ramdeo. Anand and Nathan talked about their work at Global Radio focusing on how they implemented agile testing, and the topic turned out to be so thought-provoking [...]]]></description>
			<content:encoded><![CDATA[<p>The agile testing evening sessions at Skills Matter are getting better and better. I thoroughly enjoyed yesterday&#8217;s session with an experience report given by <a href="http://www.nathanbain.co.uk">Nathan Bain</a> and <a href="http://www.testinggeek.com">Anand Ramdeo</a>. Anand and Nathan talked about their work at Global Radio focusing on how they implemented agile testing, and the topic turned out to be so thought-provoking that the presentation often turned into a free discussion and the event lasted twice longer than expected. In spite of that, some attendees complained that it was too short. Luckily the local pub is open till much later than Skills Matter so we continued the discussion there.<span id="more-1025"></span></p>
<p>Anand focused on the process, and key take-away ideas from his presentation for me are:</p>
<ul>
<li>Four-column scrum wall: they added a &#8220;done-done&#8221; step after &#8220;done&#8221;, making it very explicit that a task needs to get verified after it is thought to be finished. Testers owned this phase which gave them the responsibility to see it through, not necessarily perform it themselves. For tasks that are not easily verifiable through the user interface or things such as usability or design where testers were not qualified to assert completeness, they were still expected to chase someone else to verify that the task is done. This could involve a code review, another developer or a designer confirming that something is OK etc.</li>
<li>Requirements meetings: Product owner, technical owner and a tester met before a story went into development to discuss what the acceptance criteria is. This made at least three people capable of answering questions from developers and it cut down the need to document stuff. It also ensured that testers knew what they should expect and test on the end. This idea is going along the same lines as <a href='http://gojko.net/2008/11/12/specification-workshops-an-agile-way-to-get-better-requirements/'>specification workshops</a> but seems to be focused more on fleshing out key ideas rather than getting to the full specifications. </li>
<li>Two-step continuous integration: Their functional test suite took a few hours to run (as it was running through the UI), and running this as part of the build even in continuous integration would make the feedback too slow. On the other hand, these tests had to be executed. Anand suggested doing continuous integration in two steps. First build and run basic (quick) tests. When that succeeds, run the entire test suite. I would typically investigate whether these two hours could be cut down or automated at a lower level to make it quicker, but this requires development resources so Anand&#8217;s solution might be very interesting to people who don&#8217;t have the option or knowledge to automate below the UI.</li>
<li>Using named UI elements in Selenium scripts: to make UI tests easier to maintain and understand, they used macros to encapsulate locators for UI elements and gave them meaningful names such as &#8220;register button&#8221;. When the UI changes, they only update a macro, without the need to change tests. This also enabled them to write tests before the web UI was actually developed, and put in values for locators into macros later. This is again an idea similar to page objects but implemented completely from a tester&#8217;s perspective without the need to involve developers.
</li>
<li>Web testing below the browser &#8211; they used a tool of which I haven&#8217;t heard before, called <a href="http://twill.idyll.org/">Twill</a>. Twill automates web testing by executing HTTP requests but not through the browser, making it easier and faster to automate tests than with Selenium. It does not execute javascript so it cannot be applied to complicated browser-oriented tasks, but it is very useful for form submission, link parsing etc. With Python, they built a DSL for testing web pages using Twill. It seems like it could do a very good job for a large number of web tests that don&#8217;t involve JavaScript.</li>
</ul>
<p>Nathan started with a great cartoon introduction to acceptance testing (he promised to upload the slides to <a href="http://www.nathanbain.com">nathanbain.com</a>) and then went on to talk about what he would have liked to have known when he was starting with agile testing. Some of the key take-away points are:</p>
<ul>
<li>The rules of agile testing are still being written, and lots of information is only available online on blogs and mailing lists &#8211; testers need to read and research more. Nathan also recommended <a href="http://gojko.net/2009/02/23/agile-testing-crispingregory-is-a-great-book-long-overdue/">Agile Testing</a> by Lisa Crispin and Janet Gregory and my <a href="http://acceptancetesting.info/the-book">Bridging the Communication Gap</a> as good sources of information on the current state of agile testing.</li>
<li>Although testers might find themselves in uncharted territories on an agile team, the team expects of them to be the testing experts so they have to find ways to help the team rather than waiting to be told what to do. Testers should be proactive and help define their role by looking at the ways they can improve process and product.</li>
<li>Promote proactive testing and defining acceptance criteria as tests in the team to raise awareness of what testing is about and get support and help from developers and business. Nathan organised workshops and presentations on acceptance testing to help other members of his team understand how he can help them better.</li>
<li>Getting more involved in the process is the key to success. Nathan suggested learning about the domain, working closely with developers, going to meetings even if you&#8217;re not invited and making sure that you are on all the mailing lists. Nathan warned that people who are outside the loop get left behind, and by being more involved testers can help the team more but also show the others their value better</li>
<li>Instead of writing down bug reports, discuss them &#8211; sometimes the bug turns out not to be a bug at all and the discussion helps to make discovering a real bug constructive rather than an act that conflicts with development. This discussion helps the morale on the team.</li>
<li>Recruiting casual testers elsewhere &#8211; try to get project managers, product owners, developers and anyone else involved with testing. Prepare test scripts as simple check-lists that they can follow. Describe manual tests in plain English so that you can get more people involved.</li>
<li>Using acceptance tests as a good start for exploration &#8211; instead of specifying everything in detail, specify the core as acceptance tests and then use them as a start for exploratory testing, sort of a reminder of where to begin and what to look for.</li>
</ul>
<p>Altogether a very enjoyable evening. I really liked this and I think that we should have more experience reports like these. The event was filmed and I strongly recommend watching the videos (they should be available in a few days on the Skills Matter <a href="http://skillsmatter.com/go/agile-testing">agile testing page</a> (subscribe to my <a href="/feed">rss feed</a> to get notified when they become available). </p>
<p>The next agile testing evening at Skills Matter will be on the 18th of August. David Evans and Mike Scott from SQS-UK will talk about Testify, a project that helps kick-start Test-Driven Development in .NET by installing and setting up all the basic tools that people typically need and creating a basic project structure that makes TDD easier. The event is free as usual, but up-front registration is required for capacity planning. You can find more information on this event and register at <a href='http://skillsmatter.com/event/agile-testing/fast-track-test-driven-development-testify-your-project'>skillsmatter.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gojko.net/2009/07/23/an-excellent-agile-testing-experience-report/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Introducing Alt.NET courses at Skills Matter</title>
		<link>http://gojko.net/2008/12/22/introducing-altnet-courses-at-skills-matter/</link>
		<comments>http://gojko.net/2008/12/22/introducing-altnet-courses-at-skills-matter/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 08:42:35 +0000</pubDate>
		<dc:creator>gojko</dc:creator>
				<category><![CDATA[articles]]></category>
		<category><![CDATA[alt.net]]></category>
		<category><![CDATA[altdotnet]]></category>
		<category><![CDATA[castle]]></category>
		<category><![CDATA[cruise control]]></category>
		<category><![CDATA[monorail]]></category>
		<category><![CDATA[mvc]]></category>
		<category><![CDATA[nhibernate]]></category>
		<category><![CDATA[orm]]></category>
		<category><![CDATA[rhino mocks]]></category>
		<category><![CDATA[scriptsharp]]></category>
		<category><![CDATA[selenium]]></category>
		<category><![CDATA[skillsmatter]]></category>

		<guid isPermaLink="false">http://gojko.net/?p=555</guid>
		<description><![CDATA[From February 2009, Skills Matter will start organising public Alt.NET courses (first in London and then across Europe). 
Opensource .NET tools crash course
The first will be a three-day crash course on tools and practices aimed at .NET developers that want to learn about Alt.NET tools and Java developers that are migrating to .NET and looking [...]]]></description>
			<content:encoded><![CDATA[<p>From February 2009, Skills Matter will start organising public Alt.NET courses (first in London and then across Europe). </p>
<h2>Opensource .NET tools crash course</h2>
<p>The first will be <a href="http://skillsmatter.com/course/open-source-dot-net/opensource-dot-net-tools-crash-course">a three-day crash course</a> on tools and practices aimed at .NET developers that want to learn about Alt.NET tools and Java developers that are migrating to .NET and looking for good equivalents to the tools that they are used to working with. The course gives an overview of the most popular opensource .net tools and introduces modern development practices that these tools promote, such as test driven development, continuous integration, dependency injection, object-relational mapping and web development using the model-view-controller pattern. </p>
<p>Learn how to:</p>
<ul>
<li>Implement TDD in .NET using NUnit, MBUnit, Rhino Mocks and FitNesse</li>
<li>Utilise Aspect oriented programming and Dependency Injection using Castle Windsor</li>
<li>Efficiently build Web applications using the MVC pattern in Monorail and utilising Monorail and Script# for Ajax and test them using Selenium Remote Console.</li>
<li>Manage persistence easily using ORM tools such as ActiveRecord and NHibernate</li>
<li>Introduce continuous integration in your projects using CruiseControl.NET and CI Factory</li>
</ul>
<p>See the <a href="http://skillsmatter.com/course/open-source-dot-net/opensource-dot-net-tools-crash-course">full programme</a>.</p>
<h2>Agile Web Development with the Castle Framework</h2>
<p>The second one is a <a href="http://skillsmatter.com/course/open-source-dot-net/agile-web-development-with-the-castle-framework">two-day course on Agile Web Development using the Castle project</a>, teaching the basics of the Castle Framework and helping people develop a solid understanding of its benefits. Over the course of the two days, attendees will create a simple but complete web application using agile Web development practices such as Inversion of Control, Dependency Injection, Aspect Oriented Programming, Object/Relational Mapping and applying the Model-View-Controller pattern.</p>
<p>Learn how to</p>
<ul>
<li>Apply agile web development practices like MVC and dependency injection</li>
<li>Use ActiveRecord to manage the object-relational mapping and the database layer</li>
<li>Use the Monorail MVC engine to create web applications that are easy to maintain and test</li>
<li>Explain the basics of Monorail views, layouts, rescues</li>
<li>Use the NVelocity view engine to build web UIs for Monorail</li>
<li>Apply Windsor Microkernel to configure and wire application components</li>
<li>Unit test the data access layer with Castle</li>
<li>Unit test web controllers</li>
<li>Describe how Castle components come together to help us develop web applications easier</li>
<li>Explain why this approach is much more effective than ASP.NET</li>
<li>Apply best practices, common pitfalls, and tips and tricks for Castle Web development</li>
</ul>
<p>See the <a href="http://skillsmatter.com/course/open-source-dot-net/agile-web-development-with-the-castle-framework">full programme</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gojko.net/2008/12/22/introducing-altnet-courses-at-skills-matter/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Video from the Selenium talk</title>
		<link>http://gojko.net/2008/09/03/video-from-the-selenium-talk/</link>
		<comments>http://gojko.net/2008/09/03/video-from-the-selenium-talk/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 19:22:15 +0000</pubDate>
		<dc:creator>gojko</dc:creator>
				<category><![CDATA[presentations]]></category>
		<category><![CDATA[acceptance testing]]></category>
		<category><![CDATA[cubictest]]></category>
		<category><![CDATA[selenium]]></category>
		<category><![CDATA[skills matter]]></category>
		<category><![CDATA[stiq]]></category>
		<category><![CDATA[tdd]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://gojko.net/?p=330</guid>
		<description><![CDATA[ Here is the video from the Testing Web Applications with Selenium and Selenium Remote Control talk that Milan Bogdanovic, Ivan Sanchez and I organised last week at Skills Matter. The first part of the talk introduces Selenium and some related tools that allow us to use Selenium easier. In the second part, Milan demonstrates [...]]]></description>
			<content:encoded><![CDATA[<p><embed id="VideoPlayback" src="http://video.google.com/googleplayer.swf?docid=2555750123066853800&#038;hl=en&#038;fs=true" style="float:right; width:400px;height:326px;margin:5px 5px 5px 5px" allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash"></embed> Here is the video from the <a href="http://skillsmatter.com/podcast/open-source-dot-net/testing-web-applications-with-selenium-selenium-remote-control" target="_blank">Testing Web Applications with Selenium and Selenium Remote Control</a> talk that Milan Bogdanovic, Ivan Sanchez and I organised last week at Skills Matter. The first part of the talk introduces Selenium and some related tools that allow us to use Selenium easier. In the second part, Milan demonstrates Selenium IDE and talks about Selenese language. In the third part, Ivan talks about Remote Control, how to make tests easier to manage and introduced the Page Object pattern. <a href="http://gojko.net/2008/08/28/links-and-slides-from-testing-web-applications-with-selenium/"> Download links and slides from the talk.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://gojko.net/2008/09/03/video-from-the-selenium-talk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Links and slides from &#8220;Testing Web Applications with Selenium&#8221;</title>
		<link>http://gojko.net/2008/08/28/links-and-slides-from-testing-web-applications-with-selenium/</link>
		<comments>http://gojko.net/2008/08/28/links-and-slides-from-testing-web-applications-with-selenium/#comments</comments>
		<pubDate>Thu, 28 Aug 2008 22:34:53 +0000</pubDate>
		<dc:creator>gojko</dc:creator>
				<category><![CDATA[presentations]]></category>
		<category><![CDATA[acceptance tests]]></category>
		<category><![CDATA[cubictest]]></category>
		<category><![CDATA[fitnesse]]></category>
		<category><![CDATA[selenium]]></category>
		<category><![CDATA[tdd]]></category>
		<category><![CDATA[UI]]></category>

		<guid isPermaLink="false">http://gojko.net/?p=317</guid>
		<description><![CDATA[Here are the links and slides from my talk today at Skills Matter on testing web applications with Selenium.
Download Powerpoint slides from here.

Selenium-core: selenium-core.openqa.org/
Selenium-Remote Control: selenium-rc.openqa.org/
Selenium-IDE: selenium-ide.openqa.org/
Selenium-Grid: selenium-grid.openqa.org/
Domain-specific testing languages presentation from Agile 2008 by Mickey Phoenix from Solutions IQ: www.solutionsiq.com/agile2008/agile-2008-domain.php
StoryTestIQ: storytestiq.solutionsiq.com
Cubic Test: www.cubictest.com
WebTest Fixtures: fitnesse.info/webtest

Ivan Sanchez will put his slides online at www.isanchez.net.
]]></description>
			<content:encoded><![CDATA[<p><img src="/images/sel.png" style="padding:10px 10px 10px 10px" align="left" />Here are the links and slides from my talk today at Skills Matter on testing web applications with Selenium.</p>
<p>Download Powerpoint slides from <a href="/resources/selenium-20080828.ppt">here</a>.</p>
<ul>
<li>Selenium-core: <a target="_blank" href="http://selenium-core.openqa.org/">selenium-core.openqa.org/</a></li>
<li>Selenium-Remote Control: <a target="_blank" href="http://selenium-rc.openqa.org/">selenium-rc.openqa.org/</a></li>
<li>Selenium-IDE: <a target="_blank" href="http://selenium-ide.openqa.org/">selenium-ide.openqa.org/</a></li>
<li>Selenium-Grid: <a target="_blank" href="http://selenium-grid.openqa.org/">selenium-grid.openqa.org/</a></li>
<li>Domain-specific testing languages presentation from Agile 2008 by Mickey Phoenix from Solutions IQ: <a target="_blank" href="http://www.solutionsiq.com/agile2008/agile-2008-domain.php">www.solutionsiq.com/agile2008/agile-2008-domain.php</a></li>
<li>StoryTestIQ: <a target="_blank" href="http://storytestiq.solutionsiq.com">storytestiq.solutionsiq.com</a></li>
<li>Cubic Test: <a href="http://www.cubictest.com">www.cubictest.com</a></li>
<li>WebTest Fixtures: <a href="http://fitnesse.info/webtest">fitnesse.info/webtest</a></li>
</ul>
<p>Ivan Sanchez will put his slides online at <a href="http://www.isanchez.net">www.isanchez.net</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gojko.net/2008/08/28/links-and-slides-from-testing-web-applications-with-selenium/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
