<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mathias Do Vale on Medium]]></title>
        <description><![CDATA[Stories by Mathias Do Vale on Medium]]></description>
        <link>https://medium.com/@matdovale?source=rss-fd90821d605c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Ea4vIT-fkLp68uObA-cRMA.jpeg</url>
            <title>Stories by Mathias Do Vale on Medium</title>
            <link>https://medium.com/@matdovale?source=rss-fd90821d605c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 06:30:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@matdovale/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[BDD (Behavior Driven Development) in Python (POC)]]></title>
            <link>https://medium.com/@matdovale/bdd-behavior-driven-development-in-python-poc-b8cc1ddc5101?source=rss-fd90821d605c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8cc1ddc5101</guid>
            <category><![CDATA[bdd]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[behave]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Mathias Do Vale]]></dc:creator>
            <pubDate>Wed, 19 Jul 2023 20:40:20 GMT</pubDate>
            <atom:updated>2023-07-19T21:57:29.802Z</atom:updated>
            <content:encoded><![CDATA[<p><em>DISCLAIMER: I’m not an expert. I only share what I understood and give an opinion about it.</em></p><p>First we can talk about the main idea of BDD.</p><blockquote>Is an agile software development technique that encourages collaboration between developers, QA and non-technical or business participants in a software project.</blockquote><p>Sounds good right? But what does it mean? In software development usually there some steps to create a software: planning, analysis, design, implementation, etc. All these steps are executed by technicals and/or by non-technical, except by one, <strong>implementation. </strong>Implementation <strong>ALWAYS </strong>needs somone who knows how to code (technical person). Here in my opinion, there is a <strong>gap</strong>, because if you are a non-technical person, you are trusting that the technical person understood perfectly 100% the solution. Sounds risky right?</p><p>BDD comes to help us with that <strong>gap</strong>. How? Let’s see it with a short POC based on tutorial of <a href="https://www.youtube.com/watch?v=JIyvAFBx2Fw&amp;list=PLUDwpEzHYYLsARXz1o3Ldt1FnvRbvlxsS"><em>sdetpavan</em></a> made with P<strong>ython </strong>as a programming lenguange, <strong>Behave </strong>as a lib to implement <strong>BDD </strong>and <strong>Selenium </strong>for automation.</p><p>In this POC we will test the login of a random page</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*09GSBkCSOk-43zQBU0Ucvw.png" /></figure><p>So, what do we have here? Basically we have 2 files, <em>feature </em>and <em>steps</em>. Each <strong>Feature </strong>can have different scenarios. In this case, “Login” is the feature and there are two scenarios.</p><p>Scenarios are written in <strong>GHERKIN (Given — When — Then) </strong>because is easy to read and everyone can read it, so for example, a product owner who doesn’t know how to code, can read an scenario and decide if is it ok or not.</p><p>On the other hand we have <strong>Steps </strong>file. Here we have the code implementation of each sentence of each scenario (reusing same implementation in different scenarios).</p><p>By this way, gherkin (language for everyone) and code are <strong>directly related</strong>.</p><p><strong>So finally, which are the benefits of BDD?</strong></p><ol><li><strong>Improved Communication</strong>: promotes collaboration among developers, business analysts, and domain experts by using a common language that is understandable to everyone involved. This helps ensure that all parties have a shared understanding of the requirements.</li><li><strong>Clearer Requirements</strong>: encourages the use of descriptive scenarios written in a human-readable format. This clarity helps to eliminate ambiguity and ensures that the requirements are well-defined and easily understandable by the development team.</li><li><strong>Faster Feedback</strong>: emphasizes the creation of executable tests early in the development process. By automating these tests, developers can quickly receive feedback on whether their implementation meets the expected behavior. This leads to faster identification and resolution of issues.</li><li><strong>Regression Testing</strong>: scenarios serve as executable specifications, which can be used for regression testing. By re-running the tests after each change, developers can ensure that existing functionality has not been inadvertently broken.</li><li><strong>Higher Quality</strong>: encourages a focus on behavior and outcomes, rather than just implementation details. This helps in designing software that meets the intended purpose and delivers value to the end-users. Consequently, it leads to higher-quality software.</li><li><strong>Documentation</strong>: scenarios can serve as living documentation that reflects the current state of the system’s behavior. This documentation is more likely to stay up-to-date as it is tied directly to the tests and is easier to maintain compared to traditional documentation.</li><li><strong>Collaborative Approach</strong>: promotes collaboration between developers, testers, and business stakeholders throughout the development process. This collaborative approach fosters shared ownership and collective responsibility for the quality and success of the software.</li><li><strong>Increased Customer Satisfaction</strong>: By using BDD, the development team can ensure that the software meets the customer’s expectations and delivers the desired business value. This leads to increased customer satisfaction and a higher likelihood of meeting project goals.</li></ol><p>Link to repo: <a href="https://github.com/MathiasDoVale/selenium_behave">https://github.com/MathiasDoVale/selenium_behave</a></p><p>My linkedIn: <a href="https://www.linkedin.com/in/mathias-do-vale/">https://www.linkedin.com/in/mathias-do-vale/</a></p><p><em>Hope you enjoy this. Tell us your experience in comments.</em></p><p>Bye!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8cc1ddc5101" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>