{"id":421,"date":"2013-05-10T11:08:35","date_gmt":"2013-05-10T11:08:35","guid":{"rendered":"https:\/\/www.genrocket.com\/?p=421"},"modified":"2022-09-05T16:47:03","modified_gmt":"2022-09-05T16:47:03","slug":"what-is-test-data-generation-and-why-you-should-care","status":"publish","type":"post","link":"https:\/\/www.genrocket.com\/blog\/what-is-test-data-generation-and-why-you-should-care\/","title":{"rendered":"What Is Test Data Generation And Why You Should Care"},"content":{"rendered":"<p>I&#8217;m going to go out on a limb and make a bold statement: \u00a0testing software is hard. \u00a0Okay, not that bold of a statement since we all know that. \u00a0No matter what language or platform, software has to be tested thoroughly. \u00a0Whether you&#8217;re delivering a product to a small company or trying to be the next Twitter, lack of good testing will cost you. \u00a0That cost might be\u00a0disguised\u00a0as time or customers, but at the end of the day, the cost hits someone&#8217;s bank account.<\/p>\n<p>As Architects and Engineers, we solve problems. \u00a0Over the years, we&#8217;ve made great strides in solving the difficulty that is testing our software. \u00a0We have frameworks that allow us to more easily mock methods for unit testing. \u00a0We have in memory databases for integration tests. \u00a0We even have browser automation tools that make functional testing fun again.<\/p>\n<p>What do all these testing methods need? \u00a0Test data. \u00a0Test Data Generation is the means by which some form of data is generated automatically by a system so that all of our tests have something to assert against. \u00a0Unfortunately, this concept is lost on most software shops. \u00a0Some of us are populating excel files with sheet after sheet of data to be read in by our tests. \u00a0Some of us are taking snapshots of the production database, hopefully scrubbing it of\u00a0sensitive\u00a0data, and loading it into a test database. \u00a0 Talk to 5 different Software Engineers and you&#8217;ll get 5 different methods by which they get test data. \u00a0And for the most part, all these methods are flawed.<\/p>\n<p>Here are 5 questions to ask yourself about your test data:<\/p>\n<ul>\n<li><span style=\"line-height: 13px;\">Does my test data take up gigabytes of space when unused?<\/span><\/li>\n<li>Does my test data become stale when the rules change?<\/li>\n<li>Do I write foreach loops and conditional statements to create my test data?<\/li>\n<li>Am I the only one with access to the test data?<\/li>\n<li>Do product releases create havoc for my test data?<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Test Data Generation is most often an afterthought when it comes to testing. \u00a0Test data is just as important as any assertion in your test. \u00a0Without the proper test data, what are you testing? \u00a0If you answered yes to any of the questions above you should consider evaluating how you&#8217;re generating your test data.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m going to go out on a limb and make a bold statement: \u00a0testing software is hard. \u00a0Okay, not that bold of a statement since we all know that. \u00a0No matter what language or platform, software has to be tested [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-421","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What Is Test Data Generation and Why You Should Care.<\/title>\n<meta name=\"description\" content=\"I\u2019m going to go out on a limb and make a bold statement: testing software is hard. Okay, not that bold of a statement since we all know that\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.genrocket.com\/blog\/what-is-test-data-generation-and-why-you-should-care\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What Is Test Data Generation and Why You Should Care.\" \/>\n<meta property=\"og:description\" content=\"I\u2019m going to go out on a limb and make a bold statement: testing software is hard. Okay, not that bold of a statement since we all know that\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.genrocket.com\/blog\/what-is-test-data-generation-and-why-you-should-care\/\" \/>\n<meta property=\"og:site_name\" content=\"GenRocket Blog\" \/>\n<meta property=\"article:published_time\" content=\"2013-05-10T11:08:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-09-05T16:47:03+00:00\" \/>\n<meta name=\"author\" content=\"Gregg Bolinger\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Gregg Bolinger\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.genrocket.com\/blog\/what-is-test-data-generation-and-why-you-should-care\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.genrocket.com\/blog\/what-is-test-data-generation-and-why-you-should-care\/\"},\"author\":{\"name\":\"Gregg Bolinger\",\"@id\":\"https:\/\/www.genrocket.com\/blog\/#\/schema\/person\/d080d5f4f0360a599587cad7a67254df\"},\"headline\":\"What Is Test Data Generation And Why You Should Care\",\"datePublished\":\"2013-05-10T11:08:35+00:00\",\"dateModified\":\"2022-09-05T16:47:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.genrocket.com\/blog\/what-is-test-data-generation-and-why-you-should-care\/\"},\"wordCount\":394,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.genrocket.com\/blog\/#organization\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.genrocket.com\/blog\/what-is-test-data-generation-and-why-you-should-care\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.genrocket.com\/blog\/what-is-test-data-generation-and-why-you-should-care\/\",\"url\":\"https:\/\/www.genrocket.com\/blog\/what-is-test-data-generation-and-why-you-should-care\/\",\"name\":\"What Is Test Data Generation and Why You Should Care.\",\"isPartOf\":{\"@id\":\"https:\/\/www.genrocket.com\/blog\/#website\"},\"datePublished\":\"2013-05-10T11:08:35+00:00\",\"dateModified\":\"2022-09-05T16:47:03+00:00\",\"description\":\"I\u2019m going to go out on a limb and make a bold statement: testing software is hard. Okay, not that bold of a statement since we all know that\",\"breadcrumb\":{\"@id\":\"https:\/\/www.genrocket.com\/blog\/what-is-test-data-generation-and-why-you-should-care\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.genrocket.com\/blog\/what-is-test-data-generation-and-why-you-should-care\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.genrocket.com\/blog\/what-is-test-data-generation-and-why-you-should-care\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.genrocket.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What Is Test Data Generation And Why You Should Care\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.genrocket.com\/blog\/#website\",\"url\":\"https:\/\/www.genrocket.com\/blog\/\",\"name\":\"GenRocket Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.genrocket.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.genrocket.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.genrocket.com\/blog\/#organization\",\"name\":\"GenRocket Blog\",\"url\":\"https:\/\/www.genrocket.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.genrocket.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.genrocket.com\/blog\/wp-content\/uploads\/2024\/03\/favicon.png\",\"contentUrl\":\"https:\/\/www.genrocket.com\/blog\/wp-content\/uploads\/2024\/03\/favicon.png\",\"width\":32,\"height\":32,\"caption\":\"GenRocket Blog\"},\"image\":{\"@id\":\"https:\/\/www.genrocket.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.genrocket.com\/blog\/#\/schema\/person\/d080d5f4f0360a599587cad7a67254df\",\"name\":\"Gregg Bolinger\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.genrocket.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c2986240127c520e001c65f540feb1bd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c2986240127c520e001c65f540feb1bd?s=96&d=mm&r=g\",\"caption\":\"Gregg Bolinger\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What Is Test Data Generation and Why You Should Care.","description":"I\u2019m going to go out on a limb and make a bold statement: testing software is hard. Okay, not that bold of a statement since we all know that","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.genrocket.com\/blog\/what-is-test-data-generation-and-why-you-should-care\/","og_locale":"en_US","og_type":"article","og_title":"What Is Test Data Generation and Why You Should Care.","og_description":"I\u2019m going to go out on a limb and make a bold statement: testing software is hard. Okay, not that bold of a statement since we all know that","og_url":"https:\/\/www.genrocket.com\/blog\/what-is-test-data-generation-and-why-you-should-care\/","og_site_name":"GenRocket Blog","article_published_time":"2013-05-10T11:08:35+00:00","article_modified_time":"2022-09-05T16:47:03+00:00","author":"Gregg Bolinger","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Gregg Bolinger","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.genrocket.com\/blog\/what-is-test-data-generation-and-why-you-should-care\/#article","isPartOf":{"@id":"https:\/\/www.genrocket.com\/blog\/what-is-test-data-generation-and-why-you-should-care\/"},"author":{"name":"Gregg Bolinger","@id":"https:\/\/www.genrocket.com\/blog\/#\/schema\/person\/d080d5f4f0360a599587cad7a67254df"},"headline":"What Is Test Data Generation And Why You Should Care","datePublished":"2013-05-10T11:08:35+00:00","dateModified":"2022-09-05T16:47:03+00:00","mainEntityOfPage":{"@id":"https:\/\/www.genrocket.com\/blog\/what-is-test-data-generation-and-why-you-should-care\/"},"wordCount":394,"commentCount":0,"publisher":{"@id":"https:\/\/www.genrocket.com\/blog\/#organization"},"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.genrocket.com\/blog\/what-is-test-data-generation-and-why-you-should-care\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.genrocket.com\/blog\/what-is-test-data-generation-and-why-you-should-care\/","url":"https:\/\/www.genrocket.com\/blog\/what-is-test-data-generation-and-why-you-should-care\/","name":"What Is Test Data Generation and Why You Should Care.","isPartOf":{"@id":"https:\/\/www.genrocket.com\/blog\/#website"},"datePublished":"2013-05-10T11:08:35+00:00","dateModified":"2022-09-05T16:47:03+00:00","description":"I\u2019m going to go out on a limb and make a bold statement: testing software is hard. Okay, not that bold of a statement since we all know that","breadcrumb":{"@id":"https:\/\/www.genrocket.com\/blog\/what-is-test-data-generation-and-why-you-should-care\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.genrocket.com\/blog\/what-is-test-data-generation-and-why-you-should-care\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.genrocket.com\/blog\/what-is-test-data-generation-and-why-you-should-care\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.genrocket.com\/blog\/"},{"@type":"ListItem","position":2,"name":"What Is Test Data Generation And Why You Should Care"}]},{"@type":"WebSite","@id":"https:\/\/www.genrocket.com\/blog\/#website","url":"https:\/\/www.genrocket.com\/blog\/","name":"GenRocket Blog","description":"","publisher":{"@id":"https:\/\/www.genrocket.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.genrocket.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.genrocket.com\/blog\/#organization","name":"GenRocket Blog","url":"https:\/\/www.genrocket.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.genrocket.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.genrocket.com\/blog\/wp-content\/uploads\/2024\/03\/favicon.png","contentUrl":"https:\/\/www.genrocket.com\/blog\/wp-content\/uploads\/2024\/03\/favicon.png","width":32,"height":32,"caption":"GenRocket Blog"},"image":{"@id":"https:\/\/www.genrocket.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.genrocket.com\/blog\/#\/schema\/person\/d080d5f4f0360a599587cad7a67254df","name":"Gregg Bolinger","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.genrocket.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c2986240127c520e001c65f540feb1bd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c2986240127c520e001c65f540feb1bd?s=96&d=mm&r=g","caption":"Gregg Bolinger"}}]}},"_links":{"self":[{"href":"https:\/\/www.genrocket.com\/blog\/wp-json\/wp\/v2\/posts\/421","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.genrocket.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.genrocket.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.genrocket.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.genrocket.com\/blog\/wp-json\/wp\/v2\/comments?post=421"}],"version-history":[{"count":2,"href":"https:\/\/www.genrocket.com\/blog\/wp-json\/wp\/v2\/posts\/421\/revisions"}],"predecessor-version":[{"id":10968,"href":"https:\/\/www.genrocket.com\/blog\/wp-json\/wp\/v2\/posts\/421\/revisions\/10968"}],"wp:attachment":[{"href":"https:\/\/www.genrocket.com\/blog\/wp-json\/wp\/v2\/media?parent=421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.genrocket.com\/blog\/wp-json\/wp\/v2\/categories?post=421"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.genrocket.com\/blog\/wp-json\/wp\/v2\/tags?post=421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}