<?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; fitnesse</title>
	<atom:link href="http://gojko.net/category/fitnesse/feed/" rel="self" type="application/rss+xml" />
	<link>http://gojko.net</link>
	<description>Building software that matters</description>
	<lastBuildDate>Tue, 22 May 2012 19:12:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Running the same tests with multiple browsers in FitNesse</title>
		<link>http://gojko.net/2011/01/24/running-the-same-tests-with-multiple-browsers-in-fitnesse/</link>
		<comments>http://gojko.net/2011/01/24/running-the-same-tests-with-multiple-browsers-in-fitnesse/#comments</comments>
		<pubDate>Mon, 24 Jan 2011 07:40:59 +0000</pubDate>
		<dc:creator>gojko</dc:creator>
				<category><![CDATA[fitnesse]]></category>

		<guid isPermaLink="false">http://gojko.net/?p=2222</guid>
		<description><![CDATA[I got this e-mail from a blog reader and thought that the answer might be useful to others, so I&#8217;ll share it on the blog. &#8230; The only issues still open are, how to test for a whole bunch of browser environments and how to reset my test database before...]]></description>
			<content:encoded><![CDATA[<p>I got this e-mail from a blog reader and thought that the answer might be useful to others, so I&#8217;ll share it on the blog. </p>
<blockquote><p>&#8230; The only issues still open are, how to test for a whole bunch of browser<br />
environments and how to reset my test database before each run of the test<br />
 suite for each environment.
</p></blockquote>
<p><span id="more-2222"></span></p>
<p>You can use FitNesse test suites with symbolic links and different setups (eg firefox suite uses all tests from IE suite using a symbolic link, see <a href="http://gojko.net/FitNesse/book/ch07s03.html">the section on Symbolic Links from my FitNesse book</a>). All browser<br />
configuration can be in the SetUp page, which will be overridden by the firefox suite. So the configuration should be something such as:</p>
<ul>
<li>AllTests
<ul>
<li>IeSuite</p>
<ul>
<li>SetUp  (IE configuration)</li>
<li>BrowserTests (actual tests)
<ul>
<li>TestOne&#8230;</li>
</ul>
</li>
</ul>
</li>
<li>FirefoxSuite
<ul>
<li>SetUp (FF configuration)</li>
<li>BrowserTests (symlink to -> .AllTests.IeSuite.BrowserTests)</li>
</ul>
</li>
</ul>
</li>
</ul>
<p>FitNesse will supply the Firefox SetUp to all the imported pages in the FirefoxSuite, and the IE configuration to all the test pages in the IE suite. As long as all browser specific configuration is stored there, you will be able to run tests against different environments and maintain it only in a single place.</p>
<p>In terms of database resets, the best thing to do is to make tests data agnostic, so that you can run them over and over on the same database. this might take a bit of programming around database IDs and sequences, but is the best possible thing to do. You can also add a database reset or reload to a SuiteSetUp page to each suite, which will execute only once before the entire suite. Put that as well into the imported suite (BrowserTests) and it will be called before each browser suite even if you execute all the tests at the same time.  </p>
]]></content:encoded>
			<wfw:commentRss>http://gojko.net/2011/01/24/running-the-same-tests-with-multiple-browsers-in-fitnesse/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FitNesse and J2EE containers</title>
		<link>http://gojko.net/2010/11/05/fitnesse-and-j2ee-containers/</link>
		<comments>http://gojko.net/2010/11/05/fitnesse-and-j2ee-containers/#comments</comments>
		<pubDate>Fri, 05 Nov 2010 06:45:40 +0000</pubDate>
		<dc:creator>gojko</dc:creator>
				<category><![CDATA[articles]]></category>
		<category><![CDATA[fitnesse]]></category>
		<category><![CDATA[j2ee]]></category>
		<category><![CDATA[jboss]]></category>
		<category><![CDATA[slim]]></category>

		<guid isPermaLink="false">http://gojko.net/?p=2074</guid>
		<description><![CDATA[I got this question from a blog reader today by e-mail, decided to share the answer: Can we run Fitnesse tests intehrating with JBoss server running in another JVM? I know Fitnesse runs on its own JVM. Is the command pattern is the solution? Run JBoss separately with support for...]]></description>
			<content:encoded><![CDATA[<p>I got this question from a blog reader today by e-mail, decided to share the answer:</p>
<blockquote><p>Can we run Fitnesse tests intehrating with JBoss server running in another JVM? I know Fitnesse runs on its own JVM. Is the command pattern is the solution?
</p></blockquote>
<p><span id="more-2074"></span></p>
<ol>
<li>Run JBoss separately with support for remoting, pass the InitialContext into fixtures somehow in the setup (perhaps using a fixture to set it up or a system property).
</li>
<li>
re-engineer the application so that you can test objects in isolation without JBoss. if you use spring or something like that to wire up things, you might be able to execute the tests just with spring and without JBoss.
</li>
<li>use the idea I applied to <a href="http://gojko.net/2009/01/14/transactional-springslim-test-runner/">run fitnesse within spring transactions</a> to create a new test runner, which you will be able to use from !define COMMAND_PATTERN. Your test runner should kick off JBoss and wire-up fixtures to the InitialContext correctly, this should allow fixtures to grab the right objects by remoting. See the <a href="http://maven.neuri.com/com/neuri/tdd/transactionalrunner/">example source code for transactional wrappers</a>, and instead of starting up spring and rolling back transactions, you might want to start and stop JBoss. Note that this code is quite old and I do not know if it is compatible with the latest version of fitnesse</li>
<li>use <a href="http://fitnesse.org/FitNesse.UserGuide.RunningFromJunit">the JUnit runner that is built in with fitnesse</a> and combine it with <a href="http://sourceforge.net/projects/junite2/">JUnitEE2</a> or <a href="http://jakarta.apache.org/cactus/">Apache Cactus</a>, so that you get a web page to kick off JUnit tests, which will in turn kick off fitnesse tests within a container. This setup requires the least amount of code change, but does not allow you to use a fitnesse user interface any more to execute the tests (you can still use it to write and manage the tests). I&#8217;ve done this setup for a few clients and it&#8217;s not ideal, but allows your fitnesse tests to be executed within a J2EE container.
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://gojko.net/2010/11/05/fitnesse-and-j2ee-containers/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Generating JUnit XML output files from FitNesse</title>
		<link>http://gojko.net/2010/03/08/generating-junit-xml-output-files-from-fitnesse/</link>
		<comments>http://gojko.net/2010/03/08/generating-junit-xml-output-files-from-fitnesse/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 02:40:28 +0000</pubDate>
		<dc:creator>gojko</dc:creator>
				<category><![CDATA[fitnesse]]></category>
		<category><![CDATA[news]]></category>

		<guid isPermaLink="false">http://gojko.net/2010/03/08/generating-junit-xml-output-files-from-fitnesse/</guid>
		<description><![CDATA[I just pushed a small change to JUnit integration support for FitNesse to github; hopefully this should be merged with Uncle Bob&#8217;s master branch soon. The change enables you to output test run stats in Junit XML files, which can then be picked up by Hudson, TeamCity and other CI...]]></description>
			<content:encoded><![CDATA[<p>I just pushed a small change to JUnit integration support for FitNesse to github; hopefully this should be merged with Uncle Bob&#8217;s master branch soon. The change enables you to output test run stats in Junit XML files, which can then be picked up by Hudson, TeamCity and other CI servers and integrated into their test history statistics. </p>
<p>To enable this feature, override the default test listener in the JUnitHelper instance you use for test runs (third constructor argument), and supply a JUnitXMLTestListener instance passing the folder where you want the XML files in the constructor argument. For example:</p>
<pre>

 String htmlOutputDir=new File(System.getProperty("java.io.tmpdir"),
                                  "fitnesse").getAbsolutePath();
  String xmlOutputDir=new File(System.getProperty("java.io.tmpdir"),
                                   "fitnesse-xml").getAbsolutePath();
  String fitNesseRootDir=".";
  JUnitXMLTestListener xmlTestListener=new JUnitXMLTestListener(xmlOutputDir);
  JUnitHelper helper =
      new JUnitHelper(fitNesseRootDir,htmlOutputDir,xmlTestListener);
    helper.assertTestPasses(".....");
 </pre>
<p><br clear="all" /></p>
<p>Grab <a href="http://github.com/gojko/fitnesse/">the source from my github repository</a>. Also, check out <a href="http://github.com/gojko/fitnesse/blob/master/src/fitnesse/junit/JUnitXmlTestListenerIntegrationTest.java">the full example</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gojko.net/2010/03/08/generating-junit-xml-output-files-from-fitnesse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FitNesse book now free online</title>
		<link>http://gojko.net/2009/12/07/fitnesse-book-now-free-online/</link>
		<comments>http://gojko.net/2009/12/07/fitnesse-book-now-free-online/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 01:09:36 +0000</pubDate>
		<dc:creator>gojko</dc:creator>
				<category><![CDATA[fitnesse]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[fitsharp]]></category>
		<category><![CDATA[tdd]]></category>

		<guid isPermaLink="false">http://gojko.net/?p=1448</guid>
		<description><![CDATA[As of now, the second edition of Test Driven .NET Development with FitNesse is free online. You can download the full PDF version or read the book online in HTML at http://gojko.net/fitnesse. What&#8217;s new in this version? Since the book was originally released, both FitNesse and the .NET FIT test...]]></description>
			<content:encoded><![CDATA[<p>As of now, the second edition of Test Driven .NET Development with FitNesse is free online. You can download the full PDF version or read the book online in HTML at <a href="http://gojko.net/fitnesse">http://gojko.net/fitnesse</a>. </p>
<h2>What&#8217;s new in this version?</h2>
<p>Since the book was originally released, both FitNesse and the .NET FIT test runner were improved significantly. All the examples in this book are now updated to be compatible with the latest releases of FitNesse (20091121) and FitSharp (1.4). I re-wrote parts that are no longer applicable to the new FitSharp test runner, especially around Cell Operators. In a classic example of self-inflicted scope creep, I also wrote a new chapter on using domain objects directly.</p>
<p>I also changed the tool used for assembling the book. Instead of Apache FOP, I used XEP which will hopefully make the layout a bit better. Fonts (especially the code font) were also changed to make the book easier to read.</p>
<h2>What about the paperback</h2>
<p>I will make the paperback available soon. At the moment, the second edition is only available online.</p>
]]></content:encoded>
			<wfw:commentRss>http://gojko.net/2009/12/07/fitnesse-book-now-free-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trinidad 1.0.8 released</title>
		<link>http://gojko.net/2009/06/22/trinidad-1-0-8-released/</link>
		<comments>http://gojko.net/2009/06/22/trinidad-1-0-8-released/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 22:57:16 +0000</pubDate>
		<dc:creator>gojko</dc:creator>
				<category><![CDATA[fitnesse]]></category>
		<category><![CDATA[tdd]]></category>
		<category><![CDATA[trinidad]]></category>

		<guid isPermaLink="false">http://gojko.net/?p=984</guid>
		<description><![CDATA[Trinidad 1.0.8 is now available. Trinidad is the in-process test runner for FitNesse (java), allowing you to quickly execute, troubleshoot and debug FitNesse tests from your IDE and integrate FitNesse easily with a continuous build system through JUnit or Maven (without running the server). Version 1.0.8 changes include: JUnit Suite...]]></description>
			<content:encoded><![CDATA[<p>Trinidad 1.0.8 is now available. Trinidad is the in-process test runner for FitNesse (java), allowing you to quickly execute, troubleshoot and debug FitNesse tests from your IDE and integrate FitNesse easily with a continuous build system through JUnit or Maven (without running the server). Version 1.0.8 changes include:</p>
<ul>
<li>JUnit Suite Runner (@RunWith) that prints fitnesse test names in JUnit reports (thanks to  Johannes Link)</li>
<li>Test names in suite results are now now hyperlinks to test outputs  (thanks to Björn Beskow)</li>
<li>Compatibility with latest FitNesse version (20090513)</li>
</ul>
<p>For more information, examples and download links see <a href="http://fitnesse.info/trinidad">http://fitnesse.info/trinidad</a></p>
]]></content:encoded>
			<wfw:commentRss>http://gojko.net/2009/06/22/trinidad-1-0-8-released/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

