{"id":893,"date":"2024-10-01T21:19:41","date_gmt":"2024-10-01T21:19:41","guid":{"rendered":"https:\/\/razvanvancea.ro\/blog\/?p=893"},"modified":"2024-11-05T08:09:25","modified_gmt":"2024-11-05T08:09:25","slug":"dry-vs-wet-vs-damp-principles-in-test-automation","status":"publish","type":"post","link":"https:\/\/razvanvancea.ro\/blog\/2024\/10\/01\/dry-vs-wet-vs-damp-principles-in-test-automation\/","title":{"rendered":"DRY vs WET vs DAMP principles in Test Automation"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"893\" class=\"elementor elementor-893\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-dfba261 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"dfba261\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0e3d13c\" data-id=\"0e3d13c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-394380c elementor-widget elementor-widget-text-editor\" data-id=\"394380c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In software development, various programming principles exist to guide engineers toward writing cleaner, more maintainable, and scalable code. Three such principles are <strong>DAMP<\/strong>, <strong>DRY<\/strong>, and <strong>WET<\/strong>, which can help improve your code&#8217;s overall structure and efficiency.\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-84e4310 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"84e4310\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-55c4003\" data-id=\"55c4003\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-697ef6c elementor-widget elementor-widget-heading\" data-id=\"697ef6c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">1. DRY: Don\u2019t Repeat Yourself<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d0d479b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d0d479b\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d59e60c\" data-id=\"d59e60c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4246f24 elementor-widget elementor-widget-text-editor\" data-id=\"4246f24\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The DRY principle emphasizes avoiding the repetition of code. It advocates reusing existing code by extracting common functionality into functions, modules, or classes instead of writing similar logic multiple times. The idea is that every piece of knowledge (code) should have a single, unambiguous representation.<\/p><p><strong>Why DRY is Important:<\/strong><\/p><ul><li>Enhances maintainability by minimizing redundancy.<\/li><li>Simplifies future updates. A change in one place is reflected across all instances.<\/li><li>Improves readability by reducing code clutter.<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-33c4b05 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"33c4b05\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7d48adb\" data-id=\"7d48adb\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3a8ccf9 elementor-widget elementor-widget-text-editor\" data-id=\"3a8ccf9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>Example &#8211; before DRY<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b6b0bd6 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b6b0bd6\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1193b73\" data-id=\"1193b73\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-e3074de elementor-widget elementor-widget-text-editor\" data-id=\"e3074de\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In test automation, it&#8217;s easy to repeat the same logic across multiple tests. Consider a scenario where you test a login feature across different roles.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ff92bd2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ff92bd2\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-09250cf\" data-id=\"09250cf\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-bd2f0ba elementor-widget elementor-widget-image\" data-id=\"bd2f0ba\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"640\" height=\"426\" src=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-01-at-17.32.51-1024x681.png\" class=\"attachment-large size-large wp-image-895\" alt=\"login-concepts-nodry\" srcset=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-01-at-17.32.51-1024x681.png 1024w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-01-at-17.32.51-300x199.png 300w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-01-at-17.32.51-768x511.png 768w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-01-at-17.32.51-850x565.png 850w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-01-at-17.32.51-24x16.png 24w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-01-at-17.32.51-36x24.png 36w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-01-at-17.32.51-48x32.png 48w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-01-at-17.32.51.png 1486w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-6ce2bf6 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6ce2bf6\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-64d2305\" data-id=\"64d2305\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9450eed elementor-widget elementor-widget-text-editor\" data-id=\"9450eed\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Here, the login logic is repeated across both tests. If the login page changes, you\u2019d have to update the same code in multiple places.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-67799bb elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"67799bb\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-02b506e\" data-id=\"02b506e\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-6a21427 elementor-widget elementor-widget-text-editor\" data-id=\"6a21427\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>Example &#8211; after DRY<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d755b90 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d755b90\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6321871\" data-id=\"6321871\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-eaa9c17 elementor-widget elementor-widget-text-editor\" data-id=\"eaa9c17\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>To apply the DRY principle, we can refactor the login logic into a reusable function.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-c7707f7 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"c7707f7\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b50289c\" data-id=\"b50289c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-32a4bbe elementor-widget elementor-widget-image\" data-id=\"32a4bbe\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"640\" height=\"468\" src=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-01-at-17.40.27-1024x749.png\" class=\"attachment-large size-large wp-image-896\" alt=\"pw-with-dry\" srcset=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-01-at-17.40.27-1024x749.png 1024w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-01-at-17.40.27-300x219.png 300w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-01-at-17.40.27-768x562.png 768w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-01-at-17.40.27-850x622.png 850w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-01-at-17.40.27-24x18.png 24w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-01-at-17.40.27-36x26.png 36w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-01-at-17.40.27-48x35.png 48w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-01-at-17.40.27.png 1490w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-dcc4fea elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"dcc4fea\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7e7688d\" data-id=\"7e7688d\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-0e0bec5 elementor-widget elementor-widget-text-editor\" data-id=\"0e0bec5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Now, the <strong><code>login<\/code><\/strong> function handles the repeated logic. This not only reduces redundancy but also makes future updates easier since changes to the login process are done in one place.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-6bd7ccb elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6bd7ccb\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ee2d777\" data-id=\"ee2d777\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-22a6dd0 elementor-widget elementor-widget-heading\" data-id=\"22a6dd0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">2. <strong>WET: Write Everything Twice<\/strong><\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ca094d4 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ca094d4\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4455e78\" data-id=\"4455e78\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4eac9a5 elementor-widget elementor-widget-text-editor\" data-id=\"4eac9a5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The WET principle stands for \u201cWrite Everything Twice\u201d (or &#8220;We Enjoy Typing&#8221;). It refers to code that is <strong>intentionally repetitive<\/strong>. WET can be useful in certain scenarios, such as early-stage development or when working on simple scripts, where reusing code through abstractions might introduce unnecessary complexity.<\/p><p><strong>When WET Can Be Beneficial:<\/strong><\/p><ul><li><strong>Clarity in Simplicity:<\/strong> For small, straightforward tests, repeating code may make the tests more readable.<\/li><li><strong>Flexibility for Fast Changes:<\/strong> In rapidly changing environments, duplicating code gives flexibility without prematurely abstracting functionality.<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-3b85ec9 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3b85ec9\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-281f1e2\" data-id=\"281f1e2\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-e70aebe elementor-widget elementor-widget-text-editor\" data-id=\"e70aebe\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>Example &#8211; WET<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d733f3d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d733f3d\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c956b98\" data-id=\"c956b98\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-62302c6 elementor-widget elementor-widget-text-editor\" data-id=\"62302c6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>If you\u2019re rapidly iterating or working with a simple test suite, applying the WET principle might result in repeated logic, but with clear and easily understood tests.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7edb9bc elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7edb9bc\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f205aee\" data-id=\"f205aee\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-1479ba5 elementor-widget elementor-widget-image\" data-id=\"1479ba5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"640\" height=\"379\" src=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-02-at-00.03.14.png\" class=\"attachment-large size-large wp-image-900\" alt=\"wet-pattern\" srcset=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-02-at-00.03.14.png 747w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-02-at-00.03.14-300x178.png 300w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-02-at-00.03.14-24x14.png 24w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-02-at-00.03.14-36x21.png 36w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-02-at-00.03.14-48x28.png 48w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d9792d7 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d9792d7\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b119008\" data-id=\"b119008\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-afb2e8f elementor-widget elementor-widget-text-editor\" data-id=\"afb2e8f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Even though the login process is repeated, the simplicity of the code makes each test easier to understand in isolation. However, as the project grows, this repetition becomes harder to manage.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-e790da6 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"e790da6\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-09c6f52\" data-id=\"09c6f52\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-d7ac502 elementor-widget elementor-widget-heading\" data-id=\"d7ac502\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">3. DAMP: Descriptive and Meaningful Phrases<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-32eb478 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"32eb478\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2f47f47\" data-id=\"2f47f47\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9510b50 elementor-widget elementor-widget-text-editor\" data-id=\"9510b50\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The DAMP principle stands for <strong>Descriptive and Meaningful Phrases<\/strong>. It emphasizes writing code that is <strong>clear and easy to understand<\/strong>. DAMP encourages using meaningful variable names, function names, and test descriptions to make the code self-explanatory.<\/p><p><strong>Why DAMP is Important:<\/strong><\/p><ul><li><strong>Readability:<\/strong> Makes the tests easier to follow and understand by other developers and testers.<\/li><li><strong>Maintainability:<\/strong> Descriptive names help when debugging or maintaining tests.<\/li><li><strong>Collaboration:<\/strong> Improves team collaboration by making it easier for others to grasp the intent of the test.<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-34b59f8 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"34b59f8\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-9a54c0c\" data-id=\"9a54c0c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a9bd5e4 elementor-widget elementor-widget-text-editor\" data-id=\"a9bd5e4\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>Example &#8211; DAMP<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-223028f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"223028f\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-615bf96\" data-id=\"615bf96\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5f4efc2 elementor-widget elementor-widget-text-editor\" data-id=\"5f4efc2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Let\u2019s see how DAMP can be applied in a test suite by focusing on meaningful test descriptions and function names.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-6995395 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6995395\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-cc05fc7\" data-id=\"cc05fc7\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ab861ba elementor-widget elementor-widget-image\" data-id=\"ab861ba\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"400\" src=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-02-at-00.07.39.png\" class=\"attachment-large size-large wp-image-901\" alt=\"\" srcset=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-02-at-00.07.39.png 834w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-02-at-00.07.39-300x187.png 300w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-02-at-00.07.39-768x480.png 768w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-02-at-00.07.39-24x15.png 24w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-02-at-00.07.39-36x22.png 36w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-02-at-00.07.39-48x30.png 48w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5b8af46 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5b8af46\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b7ef9f6\" data-id=\"b7ef9f6\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-8331b7b elementor-widget elementor-widget-text-editor\" data-id=\"8331b7b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In this example, the function name <strong><code>loginWithCredentials<\/code><\/strong> clearly describes what the function does, and the test names indicate the expected behavior. This improves the readability of the code and allows other team members to easily understand the tests.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-6621149 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6621149\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-123affa\" data-id=\"123affa\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4a6475e elementor-widget elementor-widget-spacer\" data-id=\"4a6475e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-44353b2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"44353b2\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7c41374\" data-id=\"7c41374\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-924310e elementor-widget elementor-widget-text-editor\" data-id=\"924310e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Enjoyed this article? Make sure to subscribe to my\u00a0<em><a href=\"https:\/\/www.youtube.com\/@LearnwithRV\" target=\"_blank\" rel=\"noopener\">YouTube Channel<\/a><\/em>\u00a0for more Test Automation tutorials, and follow me on\u00a0<a href=\"https:\/\/www.linkedin.com\/in\/razvanvancea\/\" target=\"_blank\" rel=\"noopener\"><em>LinkedIn<\/em><\/a>\u00a0and\u00a0<em><a href=\"https:\/\/twitter.com\/razvanvancea\" target=\"_blank\" rel=\"noopener\">Twitter<\/a><\/em>\u00a0for regular insights.<strong><br \/>Looking to improve your test automation skills?<br \/><\/strong>I&#8217;ve created a<strong> personalized 1-on-1 Mentoring program <\/strong>refined to<strong> boost YOUR skills. <\/strong>Reach out at <a rel=\"noopener\">iamrv@razvanvancea.ro<\/a>\u00a0for more details and <strong>together <\/strong>will create a<strong> learning path <\/strong>adapted to your<strong> current skills and goals <\/strong>that you are aiming for<strong>,<\/strong> in a<strong> timely-efficient manner\ud83d\ude80<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>In software development, various programming principles exist to guide engineers toward writing cleaner, more maintainable,&#8230;<\/p>\n","protected":false},"author":2,"featured_media":908,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[10],"tags":[],"class_list":["post-893","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.5 - aioseo.com -->\n\t<meta name=\"description\" content=\"In software development, various programming principles exist to guide engineers toward writing cleaner, more maintainable, and scalable code. Three such principles are DAMP, DRY, and WET, which can help improve your code\u2019s overall structure and efficiency. 1. DRY: Don\u2019t Repeat Yourself The DRY principle emphasizes avoiding the repetition of code. It advocates reusing existing code\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Razvan Vancea\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/razvanvancea.ro\/blog\/2024\/10\/01\/dry-vs-wet-vs-damp-principles-in-test-automation\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.5\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Learn with RV - Tech Blog - #testautomation #qa #programming #linux #devops\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"DRY vs WET vs DAMP principles in Test Automation - Learn with RV - Tech Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"In software development, various programming principles exist to guide engineers toward writing cleaner, more maintainable, and scalable code. Three such principles are DAMP, DRY, and WET, which can help improve your code\u2019s overall structure and efficiency. 1. DRY: Don\u2019t Repeat Yourself The DRY principle emphasizes avoiding the repetition of code. It advocates reusing existing code\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/razvanvancea.ro\/blog\/2024\/10\/01\/dry-vs-wet-vs-damp-principles-in-test-automation\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-10-01T21:19:41+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-11-05T08:09:25+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/razvanvancea\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@RazvanVancea\" \/>\n\t\t<meta name=\"twitter:title\" content=\"DRY vs WET vs DAMP principles in Test Automation - Learn with RV - Tech Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"In software development, various programming principles exist to guide engineers toward writing cleaner, more maintainable, and scalable code. Three such principles are DAMP, DRY, and WET, which can help improve your code\u2019s overall structure and efficiency. 1. DRY: Don\u2019t Repeat Yourself The DRY principle emphasizes avoiding the repetition of code. It advocates reusing existing code\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@RazvanVancea\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/10\\\/01\\\/dry-vs-wet-vs-damp-principles-in-test-automation\\\/#blogposting\",\"name\":\"DRY vs WET vs DAMP principles in Test Automation - Learn with RV - Tech Blog\",\"headline\":\"DRY vs WET vs DAMP principles in Test Automation\",\"author\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/author\\\/iamrv\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/Copy-of-Copy-of-Your-paragraph-text-2.png\",\"width\":1920,\"height\":1080,\"caption\":\"principles-logo\"},\"datePublished\":\"2024-10-01T21:19:41+00:00\",\"dateModified\":\"2024-11-05T08:09:25+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/10\\\/01\\\/dry-vs-wet-vs-damp-principles-in-test-automation\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/10\\\/01\\\/dry-vs-wet-vs-damp-principles-in-test-automation\\\/#webpage\"},\"articleSection\":\"Programming\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/10\\\/01\\\/dry-vs-wet-vs-damp-principles-in-test-automation\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/category\\\/programming\\\/#listItem\",\"name\":\"Programming\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/category\\\/programming\\\/#listItem\",\"position\":2,\"name\":\"Programming\",\"item\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/category\\\/programming\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/10\\\/01\\\/dry-vs-wet-vs-damp-principles-in-test-automation\\\/#listItem\",\"name\":\"DRY vs WET vs DAMP principles in Test Automation\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/10\\\/01\\\/dry-vs-wet-vs-damp-principles-in-test-automation\\\/#listItem\",\"position\":3,\"name\":\"DRY vs WET vs DAMP principles in Test Automation\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/category\\\/programming\\\/#listItem\",\"name\":\"Programming\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#person\",\"name\":\"RV\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/10\\\/01\\\/dry-vs-wet-vs-damp-principles-in-test-automation\\\/#personImage\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/91ce41471f9ba5f15b3ef99e7deed87c.jpg?ver=1795095687\",\"width\":96,\"height\":96,\"caption\":\"RV\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/razvanvancea\\\/\",\"https:\\\/\\\/twitter.com\\\/RazvanVancea\",\"https:\\\/\\\/www.youtube.com\\\/@LearnwithRV\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/razvanvancea\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/author\\\/iamrv\\\/#author\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/author\\\/iamrv\\\/\",\"name\":\"Razvan Vancea\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/10\\\/01\\\/dry-vs-wet-vs-damp-principles-in-test-automation\\\/#authorImage\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/356548feb901191539c03dd4a0498f58.jpg?ver=1795095689\",\"width\":96,\"height\":96,\"caption\":\"Razvan Vancea\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/10\\\/01\\\/dry-vs-wet-vs-damp-principles-in-test-automation\\\/#webpage\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/10\\\/01\\\/dry-vs-wet-vs-damp-principles-in-test-automation\\\/\",\"name\":\"DRY vs WET vs DAMP principles in Test Automation - Learn with RV - Tech Blog\",\"description\":\"In software development, various programming principles exist to guide engineers toward writing cleaner, more maintainable, and scalable code. Three such principles are DAMP, DRY, and WET, which can help improve your code\\u2019s overall structure and efficiency. 1. DRY: Don\\u2019t Repeat Yourself The DRY principle emphasizes avoiding the repetition of code. It advocates reusing existing code\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/10\\\/01\\\/dry-vs-wet-vs-damp-principles-in-test-automation\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/author\\\/iamrv\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/author\\\/iamrv\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/Copy-of-Copy-of-Your-paragraph-text-2.png\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/10\\\/01\\\/dry-vs-wet-vs-damp-principles-in-test-automation\\\/#mainImage\",\"width\":1920,\"height\":1080,\"caption\":\"principles-logo\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/10\\\/01\\\/dry-vs-wet-vs-damp-principles-in-test-automation\\\/#mainImage\"},\"datePublished\":\"2024-10-01T21:19:41+00:00\",\"dateModified\":\"2024-11-05T08:09:25+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/\",\"name\":\"Learn with RV - Tech Blog\",\"description\":\"#testautomation #qa #programming #linux #devops\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"DRY vs WET vs DAMP principles in Test Automation - Learn with RV - Tech Blog","description":"In software development, various programming principles exist to guide engineers toward writing cleaner, more maintainable, and scalable code. Three such principles are DAMP, DRY, and WET, which can help improve your code\u2019s overall structure and efficiency. 1. DRY: Don\u2019t Repeat Yourself The DRY principle emphasizes avoiding the repetition of code. It advocates reusing existing code","canonical_url":"https:\/\/razvanvancea.ro\/blog\/2024\/10\/01\/dry-vs-wet-vs-damp-principles-in-test-automation\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/razvanvancea.ro\/blog\/2024\/10\/01\/dry-vs-wet-vs-damp-principles-in-test-automation\/#blogposting","name":"DRY vs WET vs DAMP principles in Test Automation - Learn with RV - Tech Blog","headline":"DRY vs WET vs DAMP principles in Test Automation","author":{"@id":"https:\/\/razvanvancea.ro\/blog\/author\/iamrv\/#author"},"publisher":{"@id":"https:\/\/razvanvancea.ro\/blog\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Copy-of-Copy-of-Your-paragraph-text-2.png","width":1920,"height":1080,"caption":"principles-logo"},"datePublished":"2024-10-01T21:19:41+00:00","dateModified":"2024-11-05T08:09:25+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/razvanvancea.ro\/blog\/2024\/10\/01\/dry-vs-wet-vs-damp-principles-in-test-automation\/#webpage"},"isPartOf":{"@id":"https:\/\/razvanvancea.ro\/blog\/2024\/10\/01\/dry-vs-wet-vs-damp-principles-in-test-automation\/#webpage"},"articleSection":"Programming"},{"@type":"BreadcrumbList","@id":"https:\/\/razvanvancea.ro\/blog\/2024\/10\/01\/dry-vs-wet-vs-damp-principles-in-test-automation\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/razvanvancea.ro\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/category\/programming\/#listItem","name":"Programming"}},{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/category\/programming\/#listItem","position":2,"name":"Programming","item":"https:\/\/razvanvancea.ro\/blog\/category\/programming\/","nextItem":{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/2024\/10\/01\/dry-vs-wet-vs-damp-principles-in-test-automation\/#listItem","name":"DRY vs WET vs DAMP principles in Test Automation"},"previousItem":{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/2024\/10\/01\/dry-vs-wet-vs-damp-principles-in-test-automation\/#listItem","position":3,"name":"DRY vs WET vs DAMP principles in Test Automation","previousItem":{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/category\/programming\/#listItem","name":"Programming"}}]},{"@type":"Person","@id":"https:\/\/razvanvancea.ro\/blog\/#person","name":"RV","image":{"@type":"ImageObject","@id":"https:\/\/razvanvancea.ro\/blog\/2024\/10\/01\/dry-vs-wet-vs-damp-principles-in-test-automation\/#personImage","url":"https:\/\/razvanvancea.ro\/blog\/wp-content\/litespeed\/avatar\/91ce41471f9ba5f15b3ef99e7deed87c.jpg?ver=1795095687","width":96,"height":96,"caption":"RV"},"sameAs":["https:\/\/www.facebook.com\/razvanvancea\/","https:\/\/twitter.com\/RazvanVancea","https:\/\/www.youtube.com\/@LearnwithRV","https:\/\/www.linkedin.com\/in\/razvanvancea"]},{"@type":"Person","@id":"https:\/\/razvanvancea.ro\/blog\/author\/iamrv\/#author","url":"https:\/\/razvanvancea.ro\/blog\/author\/iamrv\/","name":"Razvan Vancea","image":{"@type":"ImageObject","@id":"https:\/\/razvanvancea.ro\/blog\/2024\/10\/01\/dry-vs-wet-vs-damp-principles-in-test-automation\/#authorImage","url":"https:\/\/razvanvancea.ro\/blog\/wp-content\/litespeed\/avatar\/356548feb901191539c03dd4a0498f58.jpg?ver=1795095689","width":96,"height":96,"caption":"Razvan Vancea"}},{"@type":"WebPage","@id":"https:\/\/razvanvancea.ro\/blog\/2024\/10\/01\/dry-vs-wet-vs-damp-principles-in-test-automation\/#webpage","url":"https:\/\/razvanvancea.ro\/blog\/2024\/10\/01\/dry-vs-wet-vs-damp-principles-in-test-automation\/","name":"DRY vs WET vs DAMP principles in Test Automation - Learn with RV - Tech Blog","description":"In software development, various programming principles exist to guide engineers toward writing cleaner, more maintainable, and scalable code. Three such principles are DAMP, DRY, and WET, which can help improve your code\u2019s overall structure and efficiency. 1. DRY: Don\u2019t Repeat Yourself The DRY principle emphasizes avoiding the repetition of code. It advocates reusing existing code","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/razvanvancea.ro\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/razvanvancea.ro\/blog\/2024\/10\/01\/dry-vs-wet-vs-damp-principles-in-test-automation\/#breadcrumblist"},"author":{"@id":"https:\/\/razvanvancea.ro\/blog\/author\/iamrv\/#author"},"creator":{"@id":"https:\/\/razvanvancea.ro\/blog\/author\/iamrv\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Copy-of-Copy-of-Your-paragraph-text-2.png","@id":"https:\/\/razvanvancea.ro\/blog\/2024\/10\/01\/dry-vs-wet-vs-damp-principles-in-test-automation\/#mainImage","width":1920,"height":1080,"caption":"principles-logo"},"primaryImageOfPage":{"@id":"https:\/\/razvanvancea.ro\/blog\/2024\/10\/01\/dry-vs-wet-vs-damp-principles-in-test-automation\/#mainImage"},"datePublished":"2024-10-01T21:19:41+00:00","dateModified":"2024-11-05T08:09:25+00:00"},{"@type":"WebSite","@id":"https:\/\/razvanvancea.ro\/blog\/#website","url":"https:\/\/razvanvancea.ro\/blog\/","name":"Learn with RV - Tech Blog","description":"#testautomation #qa #programming #linux #devops","inLanguage":"en-US","publisher":{"@id":"https:\/\/razvanvancea.ro\/blog\/#person"}}]},"og:locale":"en_US","og:site_name":"Learn with RV - Tech Blog - #testautomation #qa #programming #linux #devops","og:type":"article","og:title":"DRY vs WET vs DAMP principles in Test Automation - Learn with RV - Tech Blog","og:description":"In software development, various programming principles exist to guide engineers toward writing cleaner, more maintainable, and scalable code. Three such principles are DAMP, DRY, and WET, which can help improve your code\u2019s overall structure and efficiency. 1. DRY: Don\u2019t Repeat Yourself The DRY principle emphasizes avoiding the repetition of code. It advocates reusing existing code","og:url":"https:\/\/razvanvancea.ro\/blog\/2024\/10\/01\/dry-vs-wet-vs-damp-principles-in-test-automation\/","article:published_time":"2024-10-01T21:19:41+00:00","article:modified_time":"2024-11-05T08:09:25+00:00","article:publisher":"https:\/\/www.facebook.com\/razvanvancea","twitter:card":"summary_large_image","twitter:site":"@RazvanVancea","twitter:title":"DRY vs WET vs DAMP principles in Test Automation - Learn with RV - Tech Blog","twitter:description":"In software development, various programming principles exist to guide engineers toward writing cleaner, more maintainable, and scalable code. Three such principles are DAMP, DRY, and WET, which can help improve your code\u2019s overall structure and efficiency. 1. DRY: Don\u2019t Repeat Yourself The DRY principle emphasizes avoiding the repetition of code. It advocates reusing existing code","twitter:creator":"@RazvanVancea"},"aioseo_meta_data":{"post_id":"893","title":null,"description":null,"keywords":null,"keyphrases":{"focus":[],"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2024-10-01 11:51:12","updated":"2026-10-04 21:19:14","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/razvanvancea.ro\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/razvanvancea.ro\/blog\/category\/programming\/\" title=\"Programming\">Programming<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tDRY vs WET vs DAMP principles in Test Automation\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/razvanvancea.ro\/blog\/"},{"label":"Programming","link":"https:\/\/razvanvancea.ro\/blog\/category\/programming\/"},{"label":"DRY vs WET vs DAMP principles in Test Automation","link":"https:\/\/razvanvancea.ro\/blog\/2024\/10\/01\/dry-vs-wet-vs-damp-principles-in-test-automation\/"}],"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/10\/Copy-of-Copy-of-Your-paragraph-text-2.png","_links":{"self":[{"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/posts\/893","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/comments?post=893"}],"version-history":[{"count":25,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/posts\/893\/revisions"}],"predecessor-version":[{"id":925,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/posts\/893\/revisions\/925"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/media\/908"}],"wp:attachment":[{"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/media?parent=893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/categories?post=893"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/tags?post=893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}