<?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 Samadhi Peiris on Medium]]></title>
        <description><![CDATA[Stories by Samadhi Peiris on Medium]]></description>
        <link>https://medium.com/@samadhiharshanipeiris?source=rss-26ddc4a5fa0f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*w2XkDJR3BwPQcJzx05nniQ.jpeg</url>
            <title>Stories by Samadhi Peiris on Medium</title>
            <link>https://medium.com/@samadhiharshanipeiris?source=rss-26ddc4a5fa0f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 04:53:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@samadhiharshanipeiris/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[How I Got My Money Back from a Canva Subscription (Simple Step‑by‑Step)]]></title>
            <link>https://samadhiharshanipeiris.medium.com/how-i-got-my-money-back-from-a-canva-subscription-simple-step-by-step-3aabb81dd2f4?source=rss-26ddc4a5fa0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/3aabb81dd2f4</guid>
            <dc:creator><![CDATA[Samadhi Peiris]]></dc:creator>
            <pubDate>Mon, 02 Feb 2026 18:19:58 GMT</pubDate>
            <atom:updated>2026-02-02T18:19:58.193Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AehhMsLChVaIgBvNHi7Wog.png" /></figure><p>Have you ever been charged for a <strong>Canva subscription by mistake</strong> and didn’t know how to get your money back? I had the same experience, and here’s exactly how I got my refund — quickly and without any hassle!</p><h3>🛠️What I Did</h3><ol><li><strong>Open Canva</strong> and go to the bottom right corner of the app or website.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*OTdPrBwGdO_4lcsdfVu5gA.png" /></figure><p>2. Tap the <strong>Help Assistant</strong> (chat bubble) — it opens a chat box with Canva support.</p><p>3. Type something like:<br> <em>“I want to cancel my subscription and refund my payment.”</em></p><p>4. The assistant will ask for your <strong>reason</strong> — just explain honestly what happened.</p><p>5. After you reply, the bot will <strong>automatically raise a ticket</strong> with Canva support.</p><p>6. You’ll receive an email about your refund ticket.</p><p>Canva support then <strong>reviews your request</strong>. Once approved, the refund is issued and should show in your account within <strong>10–20 business days</strong> (though I personally got mine back in about <strong>2 days</strong>!).</p><h3>📝 What Canva’s Refund Policy Says</h3><p>Officially, Canva’s terms state that <strong>cancellations don’t always guarantee refunds</strong> for subscriptions already billed, but the support team <strong>can approve refunds case‑by‑case</strong> — especially if it’s a mistaken charge, accidental purchase, or unwanted renewal.</p><p>For purchases made through the <strong>App Store (iOS)</strong> or <strong>Google Play</strong>, refunds must be requested via Apple/Google — Canva can’t process those directly.</p><p>If you’re lucky like me, Canva will refund your money fast!🎉</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3aabb81dd2f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Do You Know You’re Already Using AI as a Service Without Even Realizing It?]]></title>
            <link>https://samadhiharshanipeiris.medium.com/do-you-know-youre-already-using-ai-as-a-service-without-even-realizing-it-60c4fac767c6?source=rss-26ddc4a5fa0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/60c4fac767c6</guid>
            <dc:creator><![CDATA[Samadhi Peiris]]></dc:creator>
            <pubDate>Sun, 25 Jan 2026 17:10:00 GMT</pubDate>
            <atom:updated>2026-01-25T17:10:00.310Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NQnQaUXzApPkwGCowRDc1Q.png" /></figure><p>Do you know that every time you talk to a chatbot, scan a receipt using your phone or get smart code suggestions from cloud tools you are most likely using <strong>AI as a Service (AIaaS)</strong>? Many people imagine artificial intelligence as something built only by tech giants in secret labs but today AI is delivered just like streaming services or cloud storage instantly available through the internet.</p><p>AI as a Service means organizations no longer need to build machine learning systems from scratch. Instead they can access powerful pre-trained models through cloud platforms such as AWS, Google Cloud and Microsoft Azure. This has dramatically reduced the barrier to entry for AI adoption. A small startup and a multinational enterprise can now use the same level of AI capabilities with only a few lines of code.</p><p>A simple real world example is document processing. Many global companies deal with thousands of invoices, contracts and forms every day. Instead of manually extracting information, they use cloud based OCR and document intelligence services. Google Cloud’s document AI can automatically read text, detect tables and extract key fields such as invoice numbers and totals. What once took hours of human effort can now be done in seconds through an API call.</p><p>Customer support is another area where AIaaS is widely used. Large e-commerce platforms and banks rely on AI chatbots to handle common customer questions. Tools like IBM Watson Assistant power virtual agents that can respond 24/7 without human involvement. From the user’s perspective, it feels like chatting with a smart assistant. Behind the scenes it is a cloud based AI model trained on massive datasets and continuously improved by the service provider.</p><p>Software development teams also benefit from AI services. For example CodeGuru analyzes Java code and provides recommendations to improve performance and security. Developers upload their source code and the AI scans it using patterns learned from millions of real world applications. This allows teams to catch issues early without building their own static analysis engines.</p><p>However, AI as a Service comes with important limitations. Most providers guarantee service availability through Service Level Agreements. You might see promises such as 99.99% uptime and fast response times for system failures. But what they usually do not guarantee is how accurate the AI output will be. The service may be technically available and working perfectly, yet still produce incorrect predictions.</p><p>Imagine an image recognition system that identifies products in an online store. The API might always respond on time but if it misclassifies items, customers may see wrong recommendations. This is why many AI providers offer free trial periods. Companies use this time to test real world performance, validate accuracy and decide whether the service meets their business needs.</p><p>Another challenge is risk management. Most AIaaS contracts provide limited liability. If something goes wrong, the provider usually offers service credits instead of financial compensation. Because of this, organizations typically use AIaaS for low to medium risk use cases such as automation, search, recommendation engines and customer support rather than safety critical systems.</p><p>For IT professionals and software testers, this shift is significant. Traditional testing focused on fixed inputs and predictable outputs. AI systems behave differently. The same input may produce slightly different results and accuracy depends heavily on data quality and usage context. Testers now need to think about performance monitoring, output validation, bias detection and reliability under real world conditions.</p><p>AI as a Service has transformed artificial intelligence from a specialized research topic into an everyday business tool. Whether you are a developer, tester, product manager or end user, you are already interacting with AI-powered cloud services more often than you realize. As adoption continues to grow, understanding how AIaaS works is no longer optional,it is becoming a core digital skill.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60c4fac767c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding and Maintaining API Status Codes]]></title>
            <link>https://samadhiharshanipeiris.medium.com/understanding-and-maintaining-api-status-codes-b78649bc4cbb?source=rss-26ddc4a5fa0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b78649bc4cbb</guid>
            <dc:creator><![CDATA[Samadhi Peiris]]></dc:creator>
            <pubDate>Sat, 27 Jul 2024 03:21:05 GMT</pubDate>
            <atom:updated>2024-07-27T03:21:05.128Z</atom:updated>
            <content:encoded><![CDATA[<p>APIs (Application Programming Interfaces) are crucial for modern software development, enabling different systems to communicate and exchange data seamlessly. One key aspect of effective API design is the proper use of status codes. These codes provide important information about the success or failure of API requests, helping developers quickly understand and diagnose issues. This blog post will explore the importance of maintaining standard API status codes and provide examples to illustrate their proper usage.</p><h3><strong>Why Standardize API Status Codes?</strong></h3><p>Standardizing API status codes is essential for several reasons:</p><p>1. Clarity: Standard status codes provide clear and consistent communication between the API and its consumers, reducing confusion and making debugging easier.<br>2. Interoperability: Using widely recognized status codes ensures that different systems and developers can work together without needing custom code to interpret responses.<br>3. Efficiency: Developers can quickly identify and resolve issues by referencing standard status codes, saving time and resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*mNpTDyjaMuxSBJsjmlrvcQ.png" /></figure><h3><strong>Common HTTP Status Codes and Their Usage</strong></h3><p>Here are some of the most common HTTP status codes and examples of when to use them:</p><ol><li><strong>200 OK</strong></li></ol><p>The request was successful, and the server responded with the requested data.<br>Use this status code when a GET request retrieves the desired resource without any issues.</p><pre>{<br>  &quot;status&quot;: 200,<br>  &quot;message&quot;: &quot;User data retrieved successfully.&quot;,<br>  &quot;data&quot;: {<br>    &quot;id&quot;: 1,<br>    &quot;name&quot;: &quot;John Doe&quot;,<br>    &quot;email&quot;: &quot;john.doe@example.com&quot;<br>  }<br>}</pre><p>2. <strong>201 Created</strong></p><p>The request was successful, and a new resource was created.<br>Use this status code when a POST request successfully creates a new resource.</p><pre>{<br>  &quot;status&quot;: 201,<br>  &quot;message&quot;: &quot;User created successfully.&quot;,<br>  &quot;data&quot;: {<br>    &quot;id&quot;: 2,<br>    &quot;name&quot;: &quot;Jane Doe&quot;,<br>    &quot;email&quot;: &quot;jane.doe@example.com&quot;<br>  }<br>}</pre><p>3. <strong>400 Bad Request</strong></p><p>The server could not understand the request due to invalid syntax.<br>Use this status code when the request sent by the client is malformed or contains incorrect parameters.</p><pre>{<br>  &quot;status&quot;: 400,<br>  &quot;message&quot;: &quot;Invalid request format. Please check your input and try again.&quot;<br>}</pre><p>4. <strong>401 Unauthorized</strong></p><p>The client must authenticate itself to get the requested response.<br>Use this status code when the request lacks valid authentication credentials.</p><pre>{<br>  &quot;status&quot;: 401,<br>  &quot;message&quot;: &quot;Unauthorized access. Please provide valid authentication credentials.&quot;<br>}</pre><p>5. <strong>404 Not Found</strong></p><p>The server cannot find the requested resource.<br>Use this status code when the requested resource does not exist on the server.</p><pre>{<br>  &quot;status&quot;: 404,<br>  &quot;message&quot;: &quot;The requested user was not found.&quot;<br>}</pre><p>6. <strong>500 Internal Server Error</strong></p><p>The server encountered an unexpected condition that prevented it from fulfilling the request.<br>Use this status code when there is an error on the server side that prevents it from processing the request.</p><pre>{<br>  &quot;status&quot;: 500,<br>  &quot;message&quot;: &quot;Internal server error. Please try again later.&quot;<br>}</pre><h3>Best Practices for Maintaining API Status Codes</h3><ol><li><strong>Consistency</strong>: Ensure that status codes are used consistently across all endpoints in your API. This helps developers understand the behavior of your API more intuitively.</li><li><strong>Documentation</strong>: Clearly document the status codes your API uses, including the scenarios in which they are returned. This aids developers in quickly understanding how to interact with your API.</li><li><strong>Meaningful Messages</strong>: Accompany status codes with meaningful and informative messages. This provides additional context that can help developers diagnose and fix issues more efficiently.</li><li><strong>Error Handling</strong>: Implement robust error handling mechanisms to return appropriate status codes. Avoid returning generic codes like 500 for all errors; instead, use more specific codes to indicate the exact nature of the issue.</li></ol><p>Maintaining standard API status codes is vital for clear communication, interoperability, and efficient debugging. By adhering to widely recognized status codes and best practices, you can ensure that your API is user-friendly and easy to work with. Remember, a well-designed API not only makes development easier but also enhances the overall experience for its consumers.</p><p>Start implementing these practices today, and watch your API become more robust and developer-friendly!</p><p>Feel free to reach out or leave a comment if you have any questions or thoughts on API status codes and their best practices. Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b78649bc4cbb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Mobile Debugging with “chrome DevTools”]]></title>
            <link>https://samadhiharshanipeiris.medium.com/mastering-mobile-debugging-with-chrome-devtools-f2fbee64b9e5?source=rss-26ddc4a5fa0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2fbee64b9e5</guid>
            <dc:creator><![CDATA[Samadhi Peiris]]></dc:creator>
            <pubDate>Sun, 21 Jul 2024 11:21:06 GMT</pubDate>
            <atom:updated>2024-07-21T11:21:06.554Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*Pm5VqE3k7WqyyPuaLK7p9A.jpeg" /></figure><p>Debugging mobile applications can be a daunting task, but Chrome DevTools offers a powerful and user-friendly solution. By utilizing the chrome://inspect/#devices feature, developers can seamlessly inspect and debug their mobile web applications directly from their desktop browser. This blog post will walk you through the steps to harness the full potential of this tool.</p><h3>Why Use chrome://inspect/#devices?</h3><p>Mobile devices often exhibit different behavior from desktop browsers due to variations in screen size, touch interactions, and hardware capabilities. Debugging these issues requires a reliable method to inspect and interact with the mobile environment. Chrome DevTools’ chrome://inspect/#devices provides a direct bridge to your mobile device, allowing for real-time debugging and inspection.</p><h3>Getting Started</h3><h4>Step 1: Set Up Your Mobile Device and Desktop</h4><ol><li><strong>Enable Developer Mode on Your Mobile Device</strong>:</li></ol><ul><li>For Android, go to <strong>Settings &gt; About Phone</strong> and tap on the <strong>Build Number</strong> seven times to enable Developer Mode.</li><li>Navigate to <strong>Developer Options</strong> and enable <strong>USB Debugging</strong>.</li></ul><p><strong>2. Install Chrome on Your Mobile Device</strong>:</p><ul><li>Ensure you have the latest version of Chrome installed on both your mobile device and desktop.</li></ul><h4>Step 2: Connect Your Mobile Device</h4><ol><li><strong>Connect via USB</strong>:</li></ol><ul><li>Use a USB cable to connect your mobile device to your desktop computer.</li></ul><p><strong>2. Open Chrome on Your Desktop</strong>:</p><ul><li>Navigate to chrome://inspect/#devices in your Chrome browser.</li></ul><h4>Step 3: Configure Chrome DevTools</h4><ol><li><strong>Enable Discover USB Devices</strong>:</li></ol><ul><li>In the chrome://inspect/#devices tab, ensure that the <strong>Discover USB devices</strong> checkbox is enabled.</li></ul><p><strong>2. Authorize Your Computer</strong>:</p><ul><li>On your mobile device, you may see a prompt to allow USB debugging. Confirm this to authorize your desktop to interact with your mobile device.</li></ul><h3>Inspecting and Debugging</h3><h4>Step 4: Start Debugging</h4><ol><li><strong>View Connected Devices</strong>:</li></ol><ul><li>In the chrome://inspect/#devices tab, you should see your connected mobile device listed. Below the device, you will see any open tabs or web views.</li></ul><p><strong>2. Open DevTools for Your Mobile Site</strong>:</p><ul><li>Click on the <strong>Inspect</strong> link next to the tab or web view you want to debug. This will open Chrome DevTools, mirroring the mobile device’s screen.</li></ul><p><strong>3. Interact and Debug</strong>:</p><ul><li>You can now use all the familiar DevTools features such as the Elements panel, Console, Network panel, and more, to inspect and debug your mobile web application. Interactions on your desktop DevTools will be reflected in real-time on your mobile device.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*vU-Bo83GmEd6ZhaYv3PtDA.png" /><figcaption>Web View</figcaption></figure><h3>Advanced Tips</h3><h4>Remote Debugging Over Wi-Fi</h4><ol><li><strong>Enable Remote Debugging</strong>:</li></ol><ul><li>If you prefer a wireless setup, you can enable remote debugging over Wi-Fi. In Developer Options on your mobile device, find <strong>Wireless debugging</strong> and pair your device with your desktop following the on-screen instructions.</li></ul><p><strong>2. Discover Network Targets</strong>:</p><ul><li>In the chrome://inspect/#devices tab, enable <strong>Discover network targets</strong>. Enter the IP address and port of your mobile device to start remote debugging.</li></ul><p>The chrome://inspect/#devices feature in Chrome DevTools is an indispensable tool for any developer working with mobile web applications. By following these steps, you can effortlessly connect your mobile device to your desktop and leverage the full suite of debugging tools that Chrome DevTools offers. This setup not only simplifies the debugging process but also enhances your ability to deliver a seamless mobile experience. Start exploring and mastering mobile debugging with Chrome DevTools today!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2fbee64b9e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Start With Selenium Testing]]></title>
            <link>https://samadhiharshanipeiris.medium.com/getting-start-with-selenium-testing-f948ae91f96f?source=rss-26ddc4a5fa0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f948ae91f96f</guid>
            <category><![CDATA[selenium]]></category>
            <dc:creator><![CDATA[Samadhi Peiris]]></dc:creator>
            <pubDate>Thu, 31 Dec 2020 06:24:59 GMT</pubDate>
            <atom:updated>2020-12-31T06:24:59.647Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*74IU2LGrPk_mtyVqhHrg3A.jpeg" /></figure><p>One of the traditional ways of software testing is manual testing. It does not need the knowledge of any testing tool of applications and can test any program functionally.</p><p>The tester performs test cases manually against applications and compares the real findings with the expected results. Any distinctions between the two are known as faults and are set immediately. To guarantee an entirely error-free program, the checks are then re-run.</p><p>Manual testing has some drawbacks.</p><ul><li>Time-consuming</li><li>High risk of error</li><li>Limited scope of testing</li><li>Requires manual creation of logs</li><li>Requires the presence of a tester 24/7</li></ul><p>Given all the weaknesses, there was a need to automate the testing process. Now let us understand what selenium is.</p><h3><strong>Selenium</strong></h3><p>Manual research was considered repetitive and boring by Jason Huggins, an engineer at ThoughtWorks, Chicago. He created a JavaScript program, called JavaScriptTestRunner, to simplify the testing of a web application.</p><p>Initially, the workers at Thoughtworks deployed the latest invention. Nevertheless, in 2004, it was renamed as Selenium.</p><p>Selenium is one of the open-source portable framework which is used for automation testing for web applications. It is flexible when doing regression and functional test cases. Selenium test cases can write different languages like Java, Python, Ruby, C#, etc. All the test cases run across various web browsers like chrome, firefox, opera, etc. Support Windows, MAC, Linux OS platforms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*pzQkCCbFkvCmbJQQf6-I3g.jpeg" /></figure><p>Selenium specializes in Web-based application automation but does not support desktop or mobile application automation. Testing conducted using the Selenium tool is referred to as Selenium Testing.</p><p><strong><em>Selenium suite</em></strong></p><p>Selenium suite has four components.</p><ol><li>Selenium Integrated Development Environment (IDE)</li><li>Selenium Remote Control (RC)</li><li>WebDriver</li><li>Selenium Grid</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/1*d1ne0TU8YeqC-RtrNKwkqA.png" /></figure><p><strong><em>Why Selenium becomes a widely used testing tool?</em></strong></p><p>Selenium is easy to use because it’s basically developed using JavaScript. Selenium can test web applications against various browsers like Firefox, Chrome, Opera, and Safari. In many programming languages, such as Java, Python, Perl, PHP, and Ruby, samples can be coded.</p><p>Selenium is independent of the platform, which ensures it can be run on Windows, Linux, and Macintosh. Selenium can be integrated for test control with software such as JUnit and TestNG</p><p><strong><em>Benefits of Selenium Testing</em></strong></p><ul><li>Selenium has shown to be accurate with results, making it highly reliable.</li><li>Anybody can learn testing without any cost.</li><li>Support various programming languages.</li><li>Easy to implement because don’t require in-depth knowledge of the tool.</li><li>Selenium can reusable and add-ons.</li></ul><p><strong><em>Limitation of Selenium Testing</em></strong></p><ul><li>Selenium doesn’t have a developer community and doesn’t have reliable tech support.</li><li>Offers limited support for image testing</li><li>Cannot test mobile or desktop applications.</li><li>Limites support to test management.</li><li>Need knowledge of programming languages to use Selenium.</li></ul><p><strong><em>Summary of Selenium Testing</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/1*B2zwi_ntPalDFsNeQkw77Q.png" /></figure><p>I hope you get an idea of selenium test automation. Thank you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f948ae91f96f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[If not a vegetable, what is this Cucumber??]]></title>
            <link>https://samadhiharshanipeiris.medium.com/if-not-a-vegetable-what-is-this-cucumber-ae52e91a75ed?source=rss-26ddc4a5fa0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae52e91a75ed</guid>
            <category><![CDATA[cucumber]]></category>
            <dc:creator><![CDATA[Samadhi Peiris]]></dc:creator>
            <pubDate>Thu, 31 Dec 2020 04:11:48 GMT</pubDate>
            <atom:updated>2020-12-31T04:11:48.822Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5rqAKFDHpQ17RP29bWfrHA.jpeg" /></figure><p>Cucumber is a tool that supports Behavior Driven Development (BDD). Its offer the way to write test anyone can understand regardless of their technical knowledge. It explains the behavior of the application in a simple English text using Gherkin language.</p><p>Initially, Cucumber was introduced in Ruby and then expanded to the Java platform. The native JUnit is supported by both instruments. Cucumber enables practical validation for automation that is easy to read and understand.</p><p>Cucumber is the most important tools because of the following reasons;</p><ol><li>Open-source &amp; Free to use</li><li>Multiple language support</li><li>Widely used BDD tools</li></ol><p>Cucumber Support multi-software platforms.</p><ul><li>Selenium</li><li>Spring Framework</li><li>Ruby on Rails</li><li>Watir</li><li>PicoContainer</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*c7vDG8tM8SJTFNUvQTy7Zg.png" /></figure><p>Cucumber serves the purpose of an end-to-end test framework, unlike other tools. Due to simple test script architecture, Cucumber provides code reusability.</p><p><strong>What is BDD?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*ywZpObYK4ofSh1eG163Ucg.jpeg" /></figure><p>Organizations are now taking a step further in order to take full advantage of app testing. When development is in progress, they enforce major acceptance test scenarios. This technique is widely referred to as the production of Behavior Driven Development(BDD).</p><p>It is a technique where your specifications r test cases are written in plain English like sentences.</p><p><strong>Why use cucumber with selenium?</strong></p><p>Do you want a strong and user-friendly command-line interface to run Selenium tests? Cucumber could be the alternative for you. For the strong browser-driving tool Selenium, Cucumber offers language bindings. The Gherkin language helps you to write the experiments in a manner that everyone on your team can understand quickly.</p><p>Cucumber Java quickly combines with the CrossBrowserTesting platform, so you can run experiments, all from one test, on a wide range of OS/Device/Browser combinations.</p><p><strong>Advantages of using Cucumber</strong></p><ul><li>Readability promotes teamwork</li><li>Reusability decreases necessary steps</li><li>Automate tests by using example tables</li><li>Gherkin is easily adopted</li></ul><p><strong>Drawbacks of using Cucumber</strong></p><ul><li>The huge challenge of generic code, but unique.</li><li>Reduce teamwork.</li></ul><p>I hope you enjoy my article. Thank You.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae52e91a75ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[BDD in Agile Software Development]]></title>
            <link>https://samadhiharshanipeiris.medium.com/bdd-in-agile-software-development-c9e932de0ae9?source=rss-26ddc4a5fa0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9e932de0ae9</guid>
            <category><![CDATA[bdd]]></category>
            <category><![CDATA[amigos]]></category>
            <dc:creator><![CDATA[Samadhi Peiris]]></dc:creator>
            <pubDate>Wed, 30 Dec 2020 17:42:34 GMT</pubDate>
            <atom:updated>2020-12-30T17:42:34.124Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*t31vAzG-HN6vX0efm5a1kg.jpeg" /></figure><p><strong>Behavior Driven Development (BDD)</strong></p><blockquote>“BDD is a way for software teams to work that closes the gap between business people and technical people”</blockquote><p>The BDD is defined as a mechanism for software teams to work in a collaborative manner according to the Cucumber website and to bridge the gap between business and technical people in terms of requirements, misunderstandings, and assumptions that can affect the delivery piece.</p><p>The way to accomplish it. BDD is a collaborative work culture, which suggests that the specifications are derived from a collaborative effort of business and technical people working together and addressing the issue and seeking a solution to it.</p><p><strong>Traditional Waterfall Model</strong></p><p>In the traditional waterfall model, the client may notify the business analyst of the model to be developed.</p><p>In Typical waterfall model company analyst will begin recording the specifications in the format of the use case. The business analyst will share the specifications with the developers and the testers until the documentation is completed. To create the program, developers will take the specifications and the testers will take the scenario to write the test cases and test automation scripts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HwhBGX8AZJhaixZ81TB1ag.png" /><figcaption>Typical waterfall process</figcaption></figure><p>The main problem with this approach is that the developer, the tester, and the business analyst are at high risk of misunderstandings and assumptions. This occurs because the selection of criteria has not taken place in a collaborative manner. This will lead to the application being transmitted slower to the inductors.</p><p><strong>Agile with BDD Approach</strong></p><p>In order to overcome these threats, BDD plays a crucial role.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kzMqFHY5dzpcmEyA0XjmsA.png" /><figcaption>Agile with BDD</figcaption></figure><ul><li>The client will inform the business analyst about the feature that has to be created in the BDD approach. Then the business analyst will call the developers and the testers to discuss the functionality in detail for a meeting called the Three Amigos Session.</li><li>An arrangement can then be made on the specifications they are preparing to produce between the market consultant, developer, and the tester.</li><li>The specifications are called Acceptance Criteria in the BDD terminology and they are usually the bits of small requirements.</li></ul><p>As accepted and mentioned earlier, the developer and the tester will take up the acceptance requirements directly and start the phase of production and testing.</p><p>The main possibility of misunderstandings and prejudices can also be avoided when doing this.</p><p><strong>Three Amigos Sessions</strong></p><p>Let’s see a little bit more of the Three Amigos Session now.</p><p>The Three Amigos Session is a meeting between the product owner or the company analyst, the developer, and the tester, as we saw in the previous slide, who consider and analyze the customer stories and write them in Gherkin scenarios.</p><p>A person who is responsible for determining the scope of the application and for converting the use of stories into a collection of features is the product owner or market analyst.</p><p>In contrast, it is up to the tester to come up with the scenarios and edge cases.</p><p>It is the duty of the developer to come up with the philosophy to construct the application and foresee any technological difficulty in designing and producing the software.</p><p><strong>As an end result, the approval conditions are extracted and Gherkin terminology is used to make it simpler and more comprehensible for both professional and business people to write such scenarios.</strong></p><p><strong>I hope you have a quick understanding of the how-to avoid misunderstanding using BDD.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9e932de0ae9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How you can import a large SQL database on your PHPmyAdmin?]]></title>
            <link>https://samadhiharshanipeiris.medium.com/how-you-can-import-a-large-sql-database-on-your-phpmyadmin-cca2d99b5f3a?source=rss-26ddc4a5fa0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/cca2d99b5f3a</guid>
            <dc:creator><![CDATA[Samadhi Peiris]]></dc:creator>
            <pubDate>Wed, 29 Jul 2020 09:57:45 GMT</pubDate>
            <atom:updated>2020-07-29T09:57:45.092Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*lPtKA0Cld6YqYwLNOljitA.jpeg" /><figcaption><a href="https://images.app.goo.gl/f1kaWn4YCgWHKnCH7">https://images.app.goo.gl/f1kaWn4YCgWHKnCH7</a></figcaption></figure><p>Hello, guys in this article I am going to explain how you can import a large SQL database on your PHPmyAdmin which is running on your webserver.</p><p>I have a database which is test.sql and it is around 250MB and I want to import this database in this PHPMyAdmin MySQL database using this webserver.</p><p>When import database it says you probably tried to upload a file that is too large please refer to the documentation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*HjRo_wEGDcVsZfmpyxqTvQ.jpeg" /><figcaption>Image by Author</figcaption></figure><p>Now your file size is not enough for uploading SQL file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*NhfU5mT-HHA5OUNi8amC2A.png" /><figcaption>Image by author</figcaption></figure><p>As a solution for too long file size, you need to change the php.ini file and change limits of MySQL database upload max filesize in php.ini</p><p><strong>Steps</strong>:</p><ol><li>Start your WampServer.</li><li>Right-click on WampServer.</li><li>Go to <em>PHP &gt;php.ini</em> and open the file.</li></ol><figure><img alt="ghjkcrfg" src="https://cdn-images-1.medium.com/max/309/1*6muLg5ZsYezP5q-ZJc1G0g.png" /><figcaption>Image by author</figcaption></figure><p>4. Search for <em>upload_max_filesize</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*HmEp05tc1Q_P8vtElYlaGQ.png" /><figcaption>Image by author</figcaption></figure><p>5. You will find upload_max_filesize=2M</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*t0pp_mZqRy1W08KedFDQQw.png" /><figcaption>Image by author</figcaption></figure><p>6. Change it to 100M or more according to your requirements. Save file and close.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*wVp8_U-Xp9_nGRLU_GXdVA.png" /><figcaption>Image by author</figcaption></figure><p>7. Right-click on WampServer and click on “Restart All Services”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/247/1*TMxcjKqbFkMEuKLQANg7bA.png" /><figcaption>Image by author</figcaption></figure><p>Finally, you can see your upload file size is now changed and it is larger what you previously had.</p><p>I hope this article will help you.</p><p>See you again, bye!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cca2d99b5f3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>