{"id":1010,"date":"2026-11-13T08:30:00","date_gmt":"2026-11-13T13:30:00","guid":{"rendered":"https:\/\/www.dataflowsoln.com\/blog\/?p=1010"},"modified":"2026-11-13T08:30:00","modified_gmt":"2026-11-13T13:30:00","slug":"users-should-not-be-your-test-suite","status":"publish","type":"post","link":"https:\/\/dataflowsoln.com\/blog\/users-should-not-be-your-test-suite\/","title":{"rendered":"BC Teardown #10: Users should not be your test suite"},"content":{"rendered":"<p><em>Click around and hope is not a test plan.<\/em><\/p>\n\n<h2>The pain<\/h2>\n<p>After every update someone clicks through the system for days, hoping nothing broke. Something always slips through.<\/p>\n<h2>Why it happens<\/h2>\n<p>Manual testing is slow and never repeated the same way twice, so it gets skipped when time is short.<\/p>\n<h2>Before: Click around and hope<\/h2>\n<pre style=\"background:#0c182c;color:#e6ecf5;padding:20px 24px;border-radius:10px;overflow-x:auto;font-size:15px;line-height:1.55;\"><code>1. Create a test order\n2. Post it\n3. Open the invoice\n4. Squint at the fields\n5. Repeat for every scenario\n   you remember\n6. Forget the one that breaks<\/code><\/pre>\n<h2>After: A repeatable AL test<\/h2>\n<pre style=\"background:#0c182c;color:#e6ecf5;padding:20px 24px;border-radius:10px;overflow-x:auto;font-size:15px;line-height:1.55;\"><code>\/\/ codeunit with Subtype = Test\n[Test]\nprocedure ProjectCodeReachesInvoice()\nvar\n  SalesHeader: Record \"Sales Header\";\n  InvHeader: Record \"Sales Invoice Header\";\n  LibrarySales: Codeunit \"Library - Sales\";\nbegin\n  LibrarySales.CreateSalesInvoice(SalesHeader);\n  SalesHeader.\"DF Project Code\" := 'PRJ1';\n  SalesHeader.Modify();\n  InvHeader.Get(LibrarySales.PostSalesDocument(\n    SalesHeader, true, true));\n  InvHeader.TestField(\"DF Project Code\", 'PRJ1');\nend;<\/code><\/pre>\n<h2>The result<\/h2>\n<p>Run the whole suite in a sandbox on the new version before you schedule the update. If it passes, update with confidence.<\/p>\n<p><strong>Tip:<\/strong> Add a test every time you fix a bug, so it can never come back.<\/p>\n<p><a href=\"https:\/\/dataflowsoln.com\/blog\/wp-content\/uploads\/2026\/11\/BC-Teardown-10-carousel.pdf\" target=\"_blank\" rel=\"noopener\">Download this teardown as a PDF<\/a><\/p>\n<hr \/>\n<p><strong>Got a Business Central problem like this?<\/strong> Free BC update readiness check. Senior Microsoft certified developers, and you talk to the person writing the code. <a href=\"https:\/\/www.dataflowsoln.com\/#contact\">Contact Dataflow Solutions<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Click around and hope is not a test plan.<\/p>\n","protected":false},"author":2,"featured_media":34,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[3,6,9],"class_list":["post-1010","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bc-teardowns","tag-al","tag-automated-testing","tag-business-central"],"_links":{"self":[{"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/posts\/1010","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/comments?post=1010"}],"version-history":[{"count":1,"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/posts\/1010\/revisions"}],"predecessor-version":[{"id":1032,"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/posts\/1010\/revisions\/1032"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/media\/34"}],"wp:attachment":[{"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/media?parent=1010"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/categories?post=1010"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/tags?post=1010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}