<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Creating data for Functional Tests with the Test Data Builder Pattern	</title>
	<atom:link href="https://www.softwaretestingmagazine.com/videos/creating-data-for-functional-tests-with-the-test-data-builder-pattern/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.softwaretestingmagazine.com/videos/creating-data-for-functional-tests-with-the-test-data-builder-pattern/</link>
	<description></description>
	<lastBuildDate>Tue, 16 Jul 2013 14:48:30 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Veretax		</title>
		<link>https://www.softwaretestingmagazine.com/videos/creating-data-for-functional-tests-with-the-test-data-builder-pattern/#comment-13399</link>

		<dc:creator><![CDATA[Veretax]]></dc:creator>
		<pubDate>Tue, 16 Jul 2013 14:48:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.softwaretestingmagazine.com/?p=2318#comment-13399</guid>

					<description><![CDATA[I&#039;m a huge fan of the Test Data Builder pattern, and I think this pattern I first saw this pattern in Growing Object Oriented Programming.  I think it provides a great DSL for creating test data locally.  I would caution anyone from too tightly coupling it with database calls or api calls, but it can be a piece you use as part of a factory or module that handles setup and tear down.

As far as uniqueness goes, I tend to avoid using random numbers, since there&#039;s no guarantee that in a given set of n tests run concurrently that there won&#039;t be a numeric collision, I instead favor a timestamped approach.  But I think you&#039;ve given a very good synopsis on the pattern, and how it might be used.  I think cleanup and generating of Ids, if you can manage that later, may save you some in run time, but I subscribe to a the notion that its best to cleanup when you can.  Things work better if you&#039;re in an environment where the new deployment environment, also resets up a base database for use, which IMO means you could ignore some of the cleanup parts.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a huge fan of the Test Data Builder pattern, and I think this pattern I first saw this pattern in Growing Object Oriented Programming.  I think it provides a great DSL for creating test data locally.  I would caution anyone from too tightly coupling it with database calls or api calls, but it can be a piece you use as part of a factory or module that handles setup and tear down.</p>
<p>As far as uniqueness goes, I tend to avoid using random numbers, since there&#8217;s no guarantee that in a given set of n tests run concurrently that there won&#8217;t be a numeric collision, I instead favor a timestamped approach.  But I think you&#8217;ve given a very good synopsis on the pattern, and how it might be used.  I think cleanup and generating of Ids, if you can manage that later, may save you some in run time, but I subscribe to a the notion that its best to cleanup when you can.  Things work better if you&#8217;re in an environment where the new deployment environment, also resets up a base database for use, which IMO means you could ignore some of the cleanup parts.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
