<?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 Tharushi Lakshani on Medium]]></title>
        <description><![CDATA[Stories by Tharushi Lakshani on Medium]]></description>
        <link>https://medium.com/@tharushilakshani81?source=rss-8481aaa74a22------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vGeEIRAUVJrfVAhqcTCczg.jpeg</url>
            <title>Stories by Tharushi Lakshani on Medium</title>
            <link>https://medium.com/@tharushilakshani81?source=rss-8481aaa74a22------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 17:50:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tharushilakshani81/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[Understanding Hadoop: A Simple Way to Handle Huge Amounts of Data]]></title>
            <link>https://medium.com/@tharushilakshani81/understanding-hadoop-a-simple-way-to-handle-huge-amounts-of-data-ad861a84197b?source=rss-8481aaa74a22------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad861a84197b</guid>
            <dc:creator><![CDATA[Tharushi Lakshani]]></dc:creator>
            <pubDate>Thu, 18 Jun 2026 05:50:18 GMT</pubDate>
            <atom:updated>2026-06-18T06:09:16.306Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/474/0*fhzumGNJPjpTJeUl" /></figure><p>Hadoop is an open-source project under the Apache Software Foundation, written in Java, and built for one <strong>main purpose:</strong> handling very large amounts of data across many computers at once. It was inspired by a paper Google published about its own internal file system, and it brought those large-scale storage ideas into the open-source world, where anyone could use and build on them. The project lives at hadoop.apache.org, and unlike a lot of enterprise software, anyone can download it, read the code, and change it.</p><p><strong>What Hadoop is,</strong> how its file system works, how its processing model works, the tools that grew around it, the file formats it can use, and finally, how to use it without writing a single line of Java.</p><p>Funnily enough, the name itself has nothing technical behind it. The creator of Hadoop, Doug Cutting, named the project after his son’s stuffed toy elephant. He simply wanted a word that was easy to say and did not already mean something else, and the toy’s name fit perfectly. Behind that simple name, though, sits a system made of two main parts working together: a file system called HDFS, which stores data, and a processing model called MapReduce, which works on that data. A smaller third piece, Hadoop Common, just holds the shared libraries that the other two depend on.</p><blockquote>I am going to walk through each of those in turn.</blockquote><h3>Use of the Technology</h3><p>Hadoop exists because traditional databases and single, powerful servers eventually run out of room when the amount of data grows past a certain point. Instead of buying one extremely expensive machine, Hadoop spreads both storage and processing across many ordinary, inexpensive computers connected in a cluster.</p><p>In practice, this makes Hadoop a natural fit for jobs like going through years of website logs to spot patterns, processing huge batches of sensor or transaction data, running large-scale text analysis, or storing raw data that does not fit neatly into rows and columns. Companies use it when they need to work with data that is too large, too varied in format, or arriving too quickly for a single server to handle comfortably. Tools built on top of Hadoop, such as Hive for SQL-style queries, Pig for data-flow scripts, and HBase for fast record access, extend this further, letting people analyse and query that data without writing low-level processing code by hand every time.</p><h3>Why Hadoop Was Built to Expect Failure</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/0*lDlwe0N6iRQ2dIZl" /></figure><p>Before going into the technical pieces, it helps to understand the mindset behind Hadoop, because almost every design choice traces back to one idea: things will break, so plan for it instead of hoping it does not happen.</p><p>Hadoop runs on clusters made of ordinary, inexpensive machines rather than expensive, specialised servers. When you have hundreds or thousands of these machines working together, some of them are going to fail on any given day, simply because of how many parts are involved. Rather than trying to make every single machine perfectly reliable, Hadoop builds redundancy directly into the system. Data is stored in multiple places at once, so losing one machine does not mean losing any data. The programming model assumes a task might fail partway through, and if it does, the system simply reruns that piece of work on a different machine without anyone needing to step in. This combination is what gives Hadoop clusters the ability to heal themselves, and it is also what makes the whole approach affordable. You do not need a handful of expensive supercomputers. You need a large number of ordinary machines and a system clever enough to work around their failures.</p><h3>Type of Distributed System</h3><p>Hadoop is organised as a master and slave distributed system, meaning one main node manages and coordinates the work, while a larger number of other nodes carry out the actual storage and processing.</p><p>On the storage side, this shows up as the NameNode and the DataNodes. The NameNode acts like a librarian, keeping track of which blocks of data live on which machine, while the DataNodes are the machines that actually hold the data on their own local disks. On the processing side, the same pattern repeats with the JobTracker and the TaskTrackers. The JobTracker decides how a job should be split up and which nodes should handle each piece, while the TaskTrackers run the actual map and reduce tasks and report their progress back. This master and slave design keeps coordination simple, since there is always one clear authority deciding where data and work should go, while the heavy lifting is shared out across many machines at once.</p><h3>The Two Halves That Make Up Hadoop</h3><p>If you strip away all the extra parts, Hadoop is really made up of two main pieces working together, plus a smaller supporting piece that ties everything together.</p><p><strong>The first main piece</strong> is a file system called HDFS, short for the Hadoop Distributed File System. Its job is to store data, but instead of storing a file in one place, it breaks the file into smaller blocks and spreads those blocks across many machines in a cluster, copying each block so the data survives even when individual machines go offline.</p><p><strong>The second main piece</strong> is a way of processing that data, called MapReduce. Instead of running one huge program on one computer, MapReduce splits the work into smaller map tasks and reduce tasks, and spreads them across the same cluster of machines. The map tasks turn raw data into simple key and value pairs, and the reduce tasks combine those pairs into a final answer. Because the reduce step always depends on the output of the map step, it always runs after mapping is complete, which is exactly why the order is built into the name itself.</p><p>The smaller, <strong>third piece</strong> is called Hadoop Common. It is just a set of shared libraries and utilities that the rest of the project depends on. It does not do anything exciting on its own, but without it, the other two pieces and the wider ecosystem built on top of them would not run properly.</p><h3>How HDFS Actually Stores a File</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/0*R8JYQa1VO_argjf4.jpg" /></figure><blockquote>The easiest way I found to understand HDFS was through an example. Imagine a single file that contains every phone number in an entire country. If you tried to store that file the normal way, it would have to live on one machine, and that machine would need to be huge and very reliable.</blockquote><p>HDFS solves this differently. It would chop that giant phonebook into pieces, maybe names starting with A on one server, names starting with B on another, and so on. By default, each piece, or block, was originally set at 64 megabytes, though many modern setups now default to 128 megabytes instead. Each block is copied three times by default, and at least one of those copies is kept on a completely different server rack, so that even if an entire rack of machines fails at once, no data is lost. To read the complete file back, the system has to fetch the right blocks from every server that is holding a piece of it.</p><p>All of this block placement is managed by a special server called the NameNode. You can think of the NameNode as a kind of librarian. It does not hold the actual data itself, but it remembers exactly which blocks are stored where, and it keeps that information ready in memory so it can answer requests quickly. The NameNode’s own records are saved to local disk as two files, one holding a snapshot of the file system structure and another holding a running log of recent changes. The actual data, meanwhile, lives on separate machines called DataNodes, which simply store the raw blocks on local disk and report back to the NameNode about what they are holding.</p><p>There is also a deliberate reason <strong>why HDFS blocks are kept so large compared to a normal file system</strong>. If a block is big enough, the time spent actually transferring it from disk becomes much larger than the time spent just locating where it starts, which keeps reading large files efficient. Large blocks also pair naturally with replication, since each one only needs to be copied a handful of times across separate machines rather than managing thousands of tiny pieces. And because HDFS does not care what kind of data it is storing, whether structured, semi-structured, or completely unstructured, those large blocks work just as well for log files as they do for structured tables.</p><p>When an application wants to read or write something in HDFS, it usually goes through Java programs written specifically for that purpose, or through a set of simple shell commands. These commands cover the basics you would expect from any file system: listing files in a directory, creating folders, copying files in and out of HDFS, moving or renaming files, changing ownership or permissions, deleting files, and even emptying the trash once files are no longer needed.</p><h3>How MapReduce Solves a Real Problem</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*JUrt4_zC9ddhuUFa.jpg" /></figure><blockquote>To understand MapReduce, a simple temperature example, and I think it explains the idea better than any technical definition could.</blockquote><blockquote>Five separate text files. Each one lists a city name next to a temperature reading for that city, recorded on a different day. In Hadoop’s own terms, the city is the key and the temperature is the value. The goal is to find the highest temperature ever recorded for each city, using all five files together.</blockquote><p>Hadoop assigns one map task to each file, so five files mean five separate mapper tasks running at the same time. Every map task goes through its own file and works out the highest temperature it can find for each city in that file alone. The first file, for example, produced a highest reading of twenty degrees for Toronto, twenty five for Whitby, twenty two for New York, and thirty three for Rome. The other four files each produced their own separate set of highest readings, all slightly different from one another, since each file only contained a portion of the full data.</p><p>Then comes the reduce step. All five sets of results are gathered together, and the reduce task compares them and picks the true highest temperature for each city across every file combined. Once all five mapper outputs were combined, the final answer came out to thirty two degrees for Toronto, twenty seven for Whitby, thirty three for New York, and thirty eight for Rome. Notice that none of these final numbers necessarily came from the same single file. The reduce step had to look across all five mapper results to find the true maximum for each city.</p><p><strong>A second classic example,</strong> is simply counting how many times each word appears across a large body of text. The mapper reads each line, breaks it into individual words, and emits each word paired with the number one. The reducer then receives all the occurrences of a single word together and simply adds up how many times that word appeared, producing one final count per word. It is a small example, but it is the one almost every Hadoop starts with, because it shows the map and reduce pattern in its purest form.</p><p>Behind the scenes, when you submit a MapReduce program, it is called a job, and that job gets broken into smaller pieces called tasks. A server running a program called the JobTracker decides how to split the work and where to send it. It does this by first talking to the NameNode to figure out where the relevant data blocks actually live, and then assigning map and reduce tasks to the nodes closest to that data, a principle known as data locality, which cuts down on unnecessary network traffic. Other servers run a second program called the TaskTracker, which keeps watch over the tasks running locally and reports back if anything fails, so the JobTracker can simply reschedule that piece of work on another node instead of failing the whole job. Programs written for this system are typically packaged as Java archive files, and these are exactly what the JobTracker distributes out to the cluster nodes that will run them.</p><h3>How It Preserves Data</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/0*8YNjKcFL6McrGSsH" /></figure><p>One thing that surprised me is that Hadoop does not force you to use one single file format, and there is no default choice that fits every situation. The right format depends on what you care about most: how fast you can write the data, how fast you can read it back, whether the file can be split easily across the cluster, whether it supports compression, and whether its structure can change over time without breaking everything.</p><p>Hadoop runs across so many ordinary machines, it has to assume that some of them will fail sooner or later, simply due to how many parts are involved. Rather than treating this as a rare emergency, Hadoop treats failure as something completely normal and plans for it from the start.</p><p>The main way it protects data is through replication. Every block of data is copied a set number of times, three by default, and stored on different machines. At least one of those copies is kept on a separate server rack, so that even losing an entire rack does not mean losing the data, since other copies are still sitting safely elsewhere in the cluster. If a machine holding one copy goes down, the system simply reads from one of the remaining copies instead, and can quietly create a fresh replacement copy elsewhere to keep the replication count back at its normal level.</p><p>The same thinking carries over into how processing is handled. If a task fails partway through, the system does not give up or restart the entire job. It simply reruns that one failed piece of work on a different, healthy machine, without anyone needing to step in manually. Between the two, data replication on the storage side and automatic task retries on the processing side, Hadoop manages to stay reliable even though it is built entirely out of machines that are individually expected to fail from time to time.</p><h3><strong>Why This Still Matter</strong></h3><p>What stuck with me most while studying this topic is how much of modern computing rests on a fairly old, almost playful idea: take a job too big for one machine, break it into smaller pieces, spread those pieces across many ordinary computers, and assume that some of those computers will fail along the way anyway. Hadoop did not try to build perfect, expensive machines. It built a system that expects things to go wrong and quietly works around it, while leaving room for an entire ecosystem of tools to grow on top of it.</p><blockquote><em>Thank you very much for reading!</em></blockquote><blockquote><em>I’ll catch you again soon with another exciting article.</em></blockquote><blockquote><em>Until then, stay safe and inspired!</em></blockquote><blockquote><em>-Tharushi Lakshani-</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad861a84197b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software Reengineering: Giving Old Software a New Life]]></title>
            <link>https://medium.com/@tharushilakshani81/software-reengineering-giving-old-software-a-new-life-f0cd82646067?source=rss-8481aaa74a22------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0cd82646067</guid>
            <dc:creator><![CDATA[Tharushi Lakshani]]></dc:creator>
            <pubDate>Sun, 10 May 2026 12:28:43 GMT</pubDate>
            <atom:updated>2026-05-10T12:28:43.250Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8Zw4XqLXooIBkHba.jpg" /></figure><h3>Why Your Legacy System Might Need More Than Just a Fix</h3><p>Every software system has a lifespan. What starts as a clean, well-designed application in its early years slowly becomes harder and harder to work with. Bugs pile up. New features become difficult to add. The technology it was built on becomes outdated. Developers who understood it have moved on. At some point, the business faces a painful question: do we keep patching this aging system, or do we start fresh?</p><blockquote>This is where <strong>software reengineering</strong> comes in.</blockquote><p>Software reengineering is not simply fixing bugs or adding new features. It is the process of examining an existing software system, understanding how it works, and transforming it into a better form, while keeping what still works. Think of it like renovating an old house rather than tearing it down and building a new one from scratch.</p><p>In this article, we will explore what software reengineering really means, the key concepts behind it, how the process works, and where the field is heading in the future.</p><h3>What Is Software Reengineering?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*zigcFjIlu7FZ4MHC" /></figure><p>At its core, software reengineering is about <strong>transformation with purpose</strong>. Several experts have defined it in slightly different ways, but they all point to the same idea:</p><ul><li><strong>Chikofsky and Cross</strong> describe it as the analysis and alteration of a system to represent it in a new, higher-level form and then build a new implementation from that form.</li><li><strong>Byrne</strong> puts it simply: it is a process of creating a new and better software from an existing one.</li><li><strong>Arnold</strong> adds that reengineering improves how understandable the software is, or raises its quality in areas like performance, reusability, and maintainability.</li></ul><p>Put together, reengineering is not just about changing code. It is about truly understanding what a system does, making thoughtful improvements at a conceptual or design level, and then rebuilding it in a cleaner form.</p><h3>The Core Concepts: Abstraction, Refinement, and Alteration</h3><blockquote>To understand how reengineering works, you need to understand three key principles.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*IHeZ0PJDYcsj9wJ8.jpg" /></figure><h3>Abstraction</h3><p>Abstraction means zooming out and focusing on the big picture while hiding unnecessary details. When you look at a car from the outside, you do not need to understand every mechanical part inside,</p><p>you just need to know that pressing the accelerator makes it go faster. That is abstraction at work.</p><p>In software, abstraction helps engineers understand a complex system by hiding the low-level details and focusing on what the system does, not how it does it. This is the foundation of <strong>reverse engineering; </strong>the first step in reengineering, where you study existing code and build a higher-level understanding of the system.</p><h3>Refinement</h3><p>Refinement is the opposite of abstraction. It means zooming in taking a high-level concept and working out all the specific details needed to actually implement it. This is what software developers do in <strong>forward engineering</strong>: starting from a concept, defining requirements, then designing and coding the actual system.</p><p>In reengineering, you use abstraction to understand what you have, and refinement to build what you want.</p><h3>Alteration</h3><p>Alteration sits in the middle. It means making changes to a system at the same level of abstraction, neither going up nor down, but modifying things at the same layer.</p><blockquote>For example, restructuring code logic or translating a program from one language to another (like rewriting Visual Basic code in Java) is a form of alteration.</blockquote><p>Together, these three principles are captured in a famous formula by <strong>Jacobson and Lindstorm</strong>:</p><blockquote><strong><em>Reengineering = Reverse Engineering + Δ + Forward Engineering</em></strong></blockquote><p>The “Δ” (delta) represents the alterations, the improvements and changes made along the way.</p><h3>Four Levels of Abstraction in Software</h3><p>Think of a software system as a pyramid with four layers, each answering a different question:</p><p><strong>1. Conceptual level</strong> — <em>Why does this system exist?</em> (The business purpose)</p><p><strong>2. Requirements level</strong> — <em>What does the system do?</em> (The features and functions)</p><p><strong>3. Design level</strong> — <em>How is it structured?</em> (The architecture and design decisions)</p><p><strong>4. Implementation level</strong> — <em>How exactly is it built?</em> (The actual code)</p><p>Forward engineering moves <strong>downward</strong> through these layers from concept to code. Reverse engineering moves <strong>upward </strong>from code back to concept. Reengineering does both: it goes up to understand the system and then comes back down to rebuild it in a better way.</p><h3>Types of Changes in Reengineering</h3><blockquote>Not all reengineering projects are the same. Depending on what needs to change, engineers can take one of four paths:</blockquote><ul><li><strong>Rethink</strong> — Changing the very purpose or domain of the system. For example, evolving from a simple mobile phone application to a full smartphone platform. This is the most fundamental type of change.</li><li><strong>Re-specify</strong> — Changing or expanding the requirements. Adding new features, removing old ones, or redefining what the system should do.</li><li><strong>Redesign</strong> — Changing the architecture or data model. This might mean moving from a monolithic design to a microservices architecture, or replacing a slow algorithm with a faster one.</li><li><strong>Re-code</strong> — Changing the implementation without changing what the system does. This includes translating the code to a new language (called <em>translation</em>) or improving it while staying in the same language (called <em>rephrasing</em>, which includes techniques like refactoring and optimization).</li></ul><h3>Reengineering Strategies: Rewrite, Rework, and Replace</h3><blockquote>When teams decide how to approach the transformation, they typically choose one of three strategies:</blockquote><p><strong>Rewrite</strong> is the simplest strategy. The system is transformed at the same level of abstraction, like converting Fortran code to C. The logic stays the same; only the language or format changes.</p><p><strong>Rework</strong> goes deeper. The team first abstracts the system to understand it (for example, building a control-flow diagram from the code), then makes improvements at that higher level, and finally refines the result back into working code. This approach is used when the structure of the code needs to change, such as replacing unstructured GOTO statements with clean loop structures.</p><p><strong>Replace</strong> skips alteration entirely. The team abstracts upward to remove the problematic aspect of the system, then refines downward using a completely new approach. It is like gutting the wiring of a house and rewiring it from scratch using modern electrical standards.</p><h3>The Reengineering Process: Five Approaches</h3><blockquote>How do you actually carry out a reengineering project? There are five well-known approaches, and choosing the right one depends on the size of your system, your resources, and your goals.</blockquote><h3>1. Big Bang</h3><p>The entire system is replaced in one go. This works well when the whole system is tightly connected and cannot be changed piece by piece. The advantage is speed of transition. The downside is risk, it is expensive, takes a long time, and if something goes wrong, a lot of work is lost.</p><h3>2. Incremental</h3><p>The system is improved in small steps, releasing better versions one at a time. This makes it easier to spot errors and lets stakeholders see progress regularly. However, it takes longer to complete and cannot easily support changes to the overall architecture.</p><h3>3. Partial</h3><p>Only a specific part of the system is reengineered, and then it is stitched back together with the parts that were left alone. This saves time and money but can cause problems at the boundary between the old and new parts.</p><h3>4. Iterative</h3><p>The reengineering process is applied to a few components at a time in short cycles. This approach keeps the system running continuously during the process and preserves the team’s familiarity with the system. The challenge is managing four types of components at once: old unchanged parts, parts being changed, parts already changed, and new additions.</p><h3>5. Evolutionary</h3><p>Components of the existing system are grouped by similar functions and rebuilt together. This leads to a cleaner, more cohesive design. The difficulty is identifying all the related functions across a large system before starting.</p><h3>The Phase Reengineering Model</h3><blockquote>One well-known structured model for reengineering is the <strong>Phase Model</strong>, originally proposed by Byrne and Gustafson. It breaks the entire reengineering effort into five distinct phases:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_h-qjWwr-k9mGpwC.jpg" /></figure><ol><li><strong>Analysis and Planning</strong> — Study the existing system, understand its problems, and plan the reengineering project.</li><li><strong>Renovation</strong> — Make the actual changes to the source code based on the plan.</li><li><strong>Target System Testing</strong> — Test the new system to make sure it works correctly.</li><li><strong>Redocumentation</strong> — Write updated documentation that reflects the new system.</li><li><strong>Acceptance Testing and System Transition</strong> — Run final tests and hand the new system over to users.</li></ol><blockquote>This model gives teams a clear roadmap and ensures that nothing important is skipped during such a complex transformation.</blockquote><h3>New Tools and Technologies Supporting Reengineering</h3><blockquote>The field of software reengineering has grown significantly with the help of modern tools. Today, engineers have access to powerful aids that make the process faster and more reliable:</blockquote><ul><li><strong>Static analysis tools</strong> (like SonarQube) help scan existing codebases and identify problem areas — dead code, security vulnerabilities, and design smells, without even running the program.</li><li><strong>Automated refactoring tools</strong> built into modern IDEs (like IntelliJ IDEA and Visual Studio Code) can restructure code safely with a single click.</li><li><strong>Architecture recovery tools</strong> can analyze a large codebase and generate diagrams showing how the components relate to each other, something that would take weeks to do manually.</li><li><strong>AI-assisted code migration tools</strong> are now emerging that can help translate code from one language to another (such as COBOL to Java) with a level of accuracy that was impossible just a few years ago.</li><li><strong>Version control systems</strong> like Git make it much easier to manage the many versions of a system during an incremental or iterative reengineering effort.</li></ul><h3>The Future of Software Reengineering</h3><p>Software reengineering is becoming more important than ever. As more companies sit on decades-old legacy systems running critical operations — banks, hospitals, governments the need to modernize without shutting everything down is urgent.</p><blockquote>Several trends are shaping the future of this field:</blockquote><p><strong>AI and machine learning</strong> are beginning to play a larger role. Large language models (LLMs) can now read, explain, and even suggest improvements to code. In the near future, teams might be able to describe the changes they want in plain English and let AI handle much of the low-level rewriting.</p><p><strong>Cloud migration</strong> is driving a wave of reengineering projects worldwide. Companies are moving from on-premise systems to cloud-based architectures, which requires rethinking not just the code but the entire design of how software is deployed and scaled.</p><p><strong>Microservices and APIs</strong> are becoming the preferred architectural style, which means many reengineering projects today involve breaking large monolithic applications apart into smaller, independent services.</p><p><strong>Continuous reengineering</strong> is gaining popularity. Rather than waiting for a system to become dangerously outdated, teams are adopting a mindset of ongoing, small improvements — regularly refactoring, updating dependencies, and revisiting design decisions. This is sometimes called <em>software gardening</em>.</p><h3>Conclusion</h3><p>Software reengineering is not a sign that a project failed. It is a natural and necessary part of a software system’s life. All software ages. Business needs change. Technology moves forward. A system that was perfect ten years ago may be a liability today.</p><p>Understanding reengineering, its principles of abstraction, alteration, and refinement; its four types of changes; its five approaches; and its structured models, gives software professionals the tools to make confident, informed decisions about how to transform aging systems into modern ones.</p><p>As AI tools grow more powerful and the pressure to modernize legacy systems increases, software reengineering will only become more central to the practice of software engineering. The question is no longer <em>whether</em> to reengineer, but <em>how</em> to do it well.</p><blockquote>Thank you very much for reading!</blockquote><blockquote>I’ll catch you again soon with another exciting article.</blockquote><blockquote>Until then, stay safe and inspired!</blockquote><blockquote>-Tharushi Lakshani-</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0cd82646067" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Postman : API Testing]]></title>
            <link>https://medium.com/@tharushilakshani81/mastering-postman-api-testing-94b237b3f211?source=rss-8481aaa74a22------2</link>
            <guid isPermaLink="false">https://medium.com/p/94b237b3f211</guid>
            <dc:creator><![CDATA[Tharushi Lakshani]]></dc:creator>
            <pubDate>Thu, 18 Dec 2025 17:22:57 GMT</pubDate>
            <atom:updated>2025-12-18T17:22:57.341Z</atom:updated>
            <content:encoded><![CDATA[<h3>Mastering Postman : API Testing</h3><blockquote>APIs (Application Programming Interfaces) are the invisible threads that weave our applications together. Whether you’re building a mobile app, a web platform, or integrating third-party services, APIs are at the heart of it all. But how do you ensure these APIs work correctly? Enter <strong>Postman, </strong>the Swiss Army knife of API development and testing.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*39laG28Ub4GRg-7x.jpeg" /></figure><p>If you are stepping into the world of <strong>API testing</strong>, <strong>Postman</strong> is one of the most powerful and beginner-friendly tools you can learn. In today’s software development world, <strong>APIs (Application Programming Interfaces)</strong> are the backbone of modern applications.</p><p>With over 25 million users worldwide, Postman has become the go-to tool for developers, QA engineers, and API enthusiasts. In this comprehensive guide, I’ll take you on a journey from absolute beginner to Postman pro, sharing insights from my years of experience in API testing.</p><h3>What is Postman?</h3><blockquote>Postman is a popular tool used to <strong>test APIs (Application Programming Interfaces)</strong>. It allows developers and testers to send HTTP requests and analyze responses <strong>without writing complex code</strong>.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tedYgn_j1eWBcMvd" /></figure><ul><li>Send API requests</li><li>View responses</li><li>Validate data</li><li>Automate tests</li><li>Collaborate with teams</li></ul><p>It supports HTTP methods like <strong>GET, POST, PUT, DELETE</strong>, making API testing simple and efficient.</p><h3>Why APIs Matter</h3><p>APIs allow different systems (frontend, backend, mobile apps) to communicate with each other. Postman helps us <strong>verify that these APIs work correctly</strong>.</p><blockquote>Before we dive into Postman, let’s demystify APIs. Think of an API as a waiter in a restaurant. You (the client) tell the waiter what you want, the waiter takes your order to the kitchen (the server), and brings back your food (the response).</blockquote><p>APIs work the same way:</p><ul><li><strong>You make a request</strong> (GET me user data)</li><li><strong>The server processes it</strong> (finds the user in the database)</li><li><strong>You get a response</strong> (here’s the user data in JSON format)</li></ul><h3>Why Postman?</h3><ul><li><strong>Visual Interface</strong>: No more cryptic command-line syntax</li><li><strong>Free &amp; Accessible</strong>: Start testing APIs within minutes</li><li><strong>Collaboration</strong>: Share collections with your team effortlessly</li><li><strong>Automation</strong>: Run thousands of tests without lifting a finger</li><li><strong>Documentation</strong>: Auto-generate API docs that actually make sense</li></ul><h3>Key Benefits of Postman</h3><ul><li>Easy-to-use graphical interface</li><li>Supports all HTTP methods (GET, POST, PUT, DELETE)</li><li>No deep coding knowledge required</li><li>Ideal for manual and automated API testing</li></ul><h3>Getting Started: Your First 5 Minutes with Postman</h3><p><strong>Step 1: Installation</strong> Head to <a href="https://www.postman.com/">postman.com</a> and download the app for your OS (Windows, Mac, or Linux). While there’s a web version, I recommend the desktop app for the full experience.</p><p><strong>Step 2: Create Your Workspace</strong> Think of workspaces as project folders. Create one called “Learning Postman” to keep things organized.</p><p><strong>Step 3: Your First Request</strong> Let’s test a public API:</p><ol><li>Click the <strong>“+”</strong> tab to create a new request</li><li>Set the method to <strong>GET</strong></li><li>Enter this URL: <a href="https://jsonplaceholder.typicode.com/users/1">https://jsonplaceholder.typicode.com/users/1</a></li><li>Click <strong>Send</strong></li></ol><h3>Understanding HTTP Requests &amp; Responses</h3><blockquote>Before using Postman, you should understand basic HTTP concepts:</blockquote><h3>Common HTTP Methods</h3><p>APIs communicate using different HTTP methods</p><ul><li><strong>GET</strong> — Retrieve data</li><li><strong>POST</strong> — Send new data</li><li><strong>PUT</strong> — Update existing data</li><li><strong>DELETE</strong> — Remove data</li></ul><p><strong>GET</strong> — Retrieve data (like reading a book)</p><pre>GET https://api.example.com/users/123</pre><p><strong>POST</strong> — Create new data (like writing a new book)</p><pre>POST https://api.example.com/users<br>Body: {&quot;name&quot;: &quot;John Doe&quot;, &quot;email&quot;: &quot;john@example.com&quot;}</pre><p><strong>PUT</strong> — Update entire resource (like rewriting a whole chapter)</p><pre>PUT https://api.example.com/users/123<br>Body: {&quot;name&quot;: &quot;Jane Doe&quot;, &quot;email&quot;: &quot;jane@example.com&quot;}</pre><p><strong>PATCH</strong> — Update part of a resource (like editing a paragraph)</p><pre>PATCH https://api.example.com/users/123<br>Body: {&quot;email&quot;: &quot;newemail@example.com&quot;}</pre><p><strong>DELETE</strong> — Remove data (like burning a book… but digitally)</p><pre>DELETE https://api.example.com/users/123</pre><h3>HTTP Response Components</h3><ul><li><strong>Status Codes</strong> (200 OK, 201 Created, 400 Bad Request, 401 Unauthorized, 500 Server Error)</li><li><strong>Response Body</strong> (JSON or XML data)</li><li><strong>Headers</strong> (metadata about the request/response)</li></ul><h3>Making Your First API Request in Postman</h3><p>Steps to send a simple request:</p><ol><li>Open Postman</li><li>Select HTTP method (GET/POST)</li><li>Enter API URL</li><li>Click <strong>Send</strong></li><li>View response data, status code, and time</li></ol><h3>Our First API Request</h3><p>Example:</p><ul><li>Method: <strong>GET</strong></li><li>URL: <a href="https://jsonplaceholder.typicode.com/users">https://jsonplaceholder.typicode.com/users</a></li></ul><p>You will receive a JSON response with user data.</p><p>This helps beginners understand:</p><ul><li>API endpoints</li><li>Request–response cycle</li><li>HTTP status codes (200, 201, 404, 500)</li></ul><h3>Using POST Requests</h3><p>POST requests are used to <strong>send data to the server</strong>.</p><p>You can:</p><ul><li>Select <strong>Body → raw → JSON</strong></li><li>Send user data</li><li>Validate response</li></ul><p>This is commonly used for <strong>registration and login APIs</strong>.</p><h3>Working with Collections</h3><p>As projects grow, managing multiple requests becomes difficult. Postman solves this using <strong>Collections</strong>.</p><h3>What is a Collection?</h3><p>A collection is a folder that groups related API requests together.</p><h3>The Power of Collections</h3><p>Collections are where Postman truly shines. They’re like playlists for your API requests. Here’s my recommended structure:</p><pre> Project Name<br>  Authentication<br>    - Login<br>    - Refresh Token<br>    - Logout<br>  Users<br>    - Get All Users<br>    - Get User by ID<br>    - Create User<br>    - Update User<br>    - Delete User<br>  Products<br>    - List Products<br>    - Get Product Details<br>    - Add Product</pre><h3>Variables: Your Secret Weapon</h3><p>Hardcoding values is a rookie mistake. Use variables instead:</p><p><strong>Environment Variables</strong> for different environments:</p><pre>{{base_url}} = https://dev-api.example.com<br>{{base_url}} = https://prod-api.example.com</pre><p><strong>Collection Variables</strong> for shared data:</p><pre>{{api_key}} = your-secret-key-here<br>{{user_id}} = 12345</pre><p><strong>Global Variables</strong> for truly universal values:</p><pre>{{timeout}} = 5000<br>{{retry_count}} = 3</pre><blockquote>Use double curly braces {{variable_name}} to reference variables anywhere in your requests.</blockquote><h3>Benefits of Collections</h3><ul><li>Organized test cases</li><li>Easy execution of multiple APIs</li><li>Better collaboration with teams</li></ul><p>Example:</p><ul><li>User APIs</li><li>Product APIs</li><li>Authentication APIs</li></ul><blockquote>Collections are widely used in <strong>real-world projects</strong>, especially in Agile teams.</blockquote><h3>Environment Variables in Postman</h3><blockquote>Environment variables help you avoid hard-coding values like:</blockquote><ul><li>Base URLs</li><li>Tokens</li><li>User IDs</li></ul><p>Example:</p><pre>{{base_url}}/login</pre><h3>Authorization</h3><p>Postman supports:</p><ul><li><strong>Basic Auth</strong></li></ul><pre>Username: your-username<br>Password: your-password</pre><ul><li>Bearer Token</li></ul><p>(Most common for modern APIs)</p><pre>// Pre-request Script to get token<br>pm.sendRequest({<br>    url: &#39;{{base_url}}/auth/login&#39;,<br>    method: &#39;POST&#39;,<br>    header: {<br>        &#39;Content-Type&#39;: &#39;application/json&#39;,<br>    },<br>    body: {<br>        mode: &#39;raw&#39;,<br>        raw: JSON.stringify({<br>            username: pm.environment.get(&quot;username&quot;),<br>            password: pm.environment.get(&quot;password&quot;)<br>        })<br>    }<br>}, function (err, res) {<br>    var token = res.json().token;<br>    pm.environment.set(&quot;auth_token&quot;, token);<br>});</pre><ul><li>API Key</li><li>OAuth 2.0</li></ul><blockquote>(For complex integrations) Postman has built-in OAuth 2.0 support. Just configure:</blockquote><ul><li>Auth URL</li><li>Access Token URL</li><li>Client ID</li><li>Client Secret</li><li>Scope</li></ul><p>This is essential for testing <strong>secured APIs</strong>.</p><h3>Advantages</h3><ul><li>Easy switching between <strong>Dev, QA, and Production</strong></li><li>Reduces errors</li><li>Improves reusability</li></ul><h3>Writing Tests in Postman</h3><blockquote>Postman allows writing tests using <strong>JavaScript</strong> inside the <strong>Tests tab</strong>.</blockquote><h3>Example Test Cases</h3><ul><li>Verify status code</li><li>Validate response time</li><li>Check response data</li></ul><p>Example:</p><pre>pm.test(&quot;Status code is 200&quot;, function () {<br>    pm.response.to.have.status(200);<br>});</pre><p>These tests run automatically when the request is sent.</p><h3>Writing Your First Test</h3><p>Tests in Postman use JavaScript. Here’s a simple but powerful test:</p><pre>// Check if status code is 200<br>pm.test(&quot;Status code is 200&quot;, function () {<br>    pm.response.to.have.status(200);<br>});</pre><pre>// Verify response time is under 500ms<br>pm.test(&quot;Response time is acceptable&quot;, function () {<br>    pm.expect(pm.response.responseTime).to.be.below(500);<br>});</pre><pre>// Validate response structure<br>pm.test(&quot;Response has user data&quot;, function () {<br>    var jsonData = pm.response.json();<br>    pm.expect(jsonData).to.have.property(&#39;name&#39;);<br>    pm.expect(jsonData).to.have.property(&#39;email&#39;);<br>    pm.expect(jsonData.email).to.include(&#39;@&#39;);<br>});</pre><h3>Professional API Testing</h3><blockquote>Pre-request scripts run <strong>before</strong> the API request.</blockquote><p>Use cases:</p><ul><li>Generate tokens</li><li>Set dynamic variables</li><li>Prepare test data</li></ul><blockquote>This enables <strong>dynamic and reusable tests</strong>.</blockquote><h3>Automated API Testing</h3><p>Postman supports automation through:</p><ul><li>Collection Runner</li><li>Newman (CLI tool)</li></ul><h3>Automation with Collection Runner</h3><blockquote>The <strong>Collection Runner</strong> allows you to:</blockquote><ul><li>Run multiple requests automatically</li><li>Execute data-driven tests using CSV/JSON</li><li>Validate entire workflows</li></ul><blockquote>This feature is widely used in <strong>CI/CD pipelines</strong>.</blockquote><h3>Monitoring APIs</h3><p>Postman can:</p><ul><li>Monitor APIs at scheduled intervals</li><li>Detect failures early</li><li>Improve system reliability</li></ul><blockquote>This is crucial in production environments.</blockquote><h3>Collaboration &amp; Documentation</h3><p>Postman allows teams to:</p><ul><li>Share collections</li><li>Generate API documentation</li><li>Work collaboratively</li></ul><blockquote>This improves communication between <strong>developers, testers, and stakeholders</strong>.</blockquote><h3>Newman — Running Postman Tests via CLI</h3><blockquote><strong>Newman</strong> is Postman’s command-line tool.</blockquote><h3>Why Newman?</h3><ul><li>Integrates with Jenkins, GitHub Actions, GitLab CI</li><li>Enables continuous testing</li><li>Generates test reports</li></ul><h3>Automation at Scale</h3><pre>npm install -g newman</pre><p>Run collections from CI/CD:</p><pre>newman run MyCollection.json \<br>  -e Production.json \<br>  --reporters cli,html \<br>  --reporter-html-export report.html</pre><p>Integrate with Jenkins, GitHub Actions, or any CI/CD tool:</p><pre># GitHub Actions example<br>- name: Run Postman Tests<br>  run: |<br>    newman run collection.json \<br>      -e environment.json \<br>      --bail</pre><h3>Postman in CI/CD Pipelines</h3><p>In modern software development:</p><ul><li>APIs are tested automatically</li><li>Postman collections are triggered on every build</li><li>Bugs are detected early</li></ul><p>Postman plays a major role in <strong>Continuous Integration and Continuous Testing</strong>.</p><h3>Why Postman is Important for QA &amp; Developers</h3><p>✔ Easy to learn<br>✔ Reduces manual testing effort<br>✔ Supports automation<br>✔ Improves API reliability<br>✔ Essential for CI/CD pipelines</p><h3>Real-World Use of Postman</h3><p>Postman is used by:</p><ul><li>QA Engineers for API testing</li><li>Developers for debugging APIs</li><li>DevOps teams in CI/CD</li><li>Students learning backend concepts</li></ul><blockquote>Learning Postman strengthens your understanding of <strong>backend systems, automation, and quality assurance</strong>.</blockquote><h3>Conclusion…</h3><p>Postman is more than just an API testing tool. it is a <strong>complete API development and testing platform</strong>.</p><p>From sending your first GET request to running automated tests in CI/CD pipelines, Postman grows with your skills. Mastering Postman can significantly boost your <strong>software testing and development skills</strong>.</p><p>Whether you are a <strong>student</strong>, <strong>QA engineer</strong>, or <strong>developer</strong>, mastering Postman will significantly boost your technical confidence and career opportunities.</p><blockquote><em>Start simple, practice consistently, and level up your API testing skills with Postman!</em></blockquote><blockquote>Thank you very much for reading!</blockquote><blockquote>I’ll catch you again soon with another exciting article.</blockquote><blockquote>Until then, stay safe and inspired!</blockquote><blockquote>-Tharushi Lakshani-</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94b237b3f211" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Selenium: A Beginner’s Guide to Web Automation]]></title>
            <link>https://medium.com/@tharushilakshani81/selenium-a-beginners-guide-to-web-automation-753ff044cbc0?source=rss-8481aaa74a22------2</link>
            <guid isPermaLink="false">https://medium.com/p/753ff044cbc0</guid>
            <dc:creator><![CDATA[Tharushi Lakshani]]></dc:creator>
            <pubDate>Tue, 02 Dec 2025 07:47:38 GMT</pubDate>
            <atom:updated>2025-12-10T04:29:16.618Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*h1r_6_07YZJS6nSt.jpeg" /></figure><blockquote>Automation testing is one of the most exciting skills today. And when it comes to web automation, <strong>Selenium</strong> is the tool that almost everyone starts with. In this blog, I’ll explore Selenium from scratch step by step.</blockquote><h3>1. What is Selenium?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*JW3qrBPAlqON5vT8.png" /></figure><blockquote>Selenium is an <strong>open-source tool</strong> used to automate web browsers. Instead of testing websites manually, you can write scripts that check if a website works correctly.</blockquote><blockquote>Think of it like this: if you have to click buttons, type text, or verify content on a website repeatedly, Selenium can do it for you automatically.</blockquote><h3><strong>Why Selenium is popular:</strong></h3><ul><li>Free and open-source</li><li>Supports multiple browsers: Chrome, Firefox, Edge, Safari</li><li>Supports multiple languages: Python, Java, C#, Ruby, JavaScript</li><li>Works on multiple operating systems: Windows, Mac, Linux</li></ul><p><strong>Diagram suggestion:</strong></p><p>A simple flow diagram showing</p><p><strong>User → Selenium → Browser → Website</strong></p><h3><strong>Why use Selenium?</strong></h3><ul><li>Test your website automatically</li><li>Save time on repetitive tasks</li><li>Make sure your website works correctly</li><li>Scrape data from websites (where allowed)</li></ul><h3>2. Selenium Components</h3><blockquote>Selenium is more than just a single tool. It has a few components:</blockquote><ol><li><strong>Selenium WebDriver</strong></li></ol><ul><li>The most widely used component.</li><li>Lets you write scripts to control a browser directly.</li></ul><p><strong>2. Selenium IDE</strong></p><ul><li>A browser plugin for Chrome and Firefox.</li><li>Allows recording and playback of tests without writing code.</li><li>Great for beginners to understand automation concepts.</li></ul><p><strong>3. Selenium Grid</strong></p><ul><li>Lets you run tests on multiple browsers and machines at the same time.</li><li>Useful for testing websites in different environments.</li></ul><blockquote><strong>Diagram suggestion:</strong> A component diagram showing WebDriver, IDE, and Grid with their functions.</blockquote><h3>3. Why Learn Selenium?</h3><p>Learning Selenium can help you:</p><ul><li>Save time by automating repetitive web tasks</li><li>Improve your career as a <strong>software tester or QA engineer</strong></li><li>Build a strong foundation for other automation tools and frameworks</li></ul><h3>4. Getting Started with Selenium (Beginner Level)</h3><h4>Step 1: Set up your environment</h4><ol><li><strong>Choose a programming language:</strong> Python and Java are most popular.</li><li><strong>Install Selenium:</strong> Use pip for Python or Maven for Java.</li><li><strong>Download the browser driver:</strong> For example, Chrome Driver for Chrome.</li></ol><blockquote>Once everything is set up, you can write your <strong>first simple script</strong> to open a browser and visit a website.</blockquote><blockquote><strong>Diagram suggestion:</strong> A simple setup flowchart: Language → Install Selenium → Browser Driver → Write Script</blockquote><h4>Step 2: Writing your first script</h4><h4><strong>Example in Python:</strong></h4><pre>from selenium import webdriver</pre><pre># Open Chrome browser<br>driver = webdriver.Chrome(executable_path=&#39;chromedriver.exe&#39;)</pre><pre># Go to a website<br>driver.get(&#39;https://www.google.com&#39;)</pre><pre># Close the browser<br>driver.quit()</pre><p><strong>What happens:</strong></p><ul><li>Chrome opens.</li><li>Google homepage is loaded.</li><li>Browser closes automatically.</li></ul><p><strong>Tips:</strong> Always close the browser at the end to free system resources.</p><h3>5.Interacting with Web Elements</h3><blockquote>When automating websites, you often interact with <strong>web elements</strong>, such as:</blockquote><ul><li>Text boxes</li><li>Buttons</li><li>Links</li><li>Dropdowns</li></ul><blockquote>from selenium.webdriver.support.ui import Select<br>dropdown = Select(driver.find_element_by_id(“country”))<br>dropdown.select_by_visible_text(“Sri Lanka”)</blockquote><ul><li>Checkboxes and radio buttons</li></ul><h3>Finding Web Elements</h3><blockquote>Selenium locates elements using:</blockquote><ul><li><strong>ID</strong>: Unique identifier for elements</li><li><strong>Name</strong>: The name attribute of an element</li><li><strong>XPath</strong>: Navigates elements in the page structure</li><li><strong>CSS Selector</strong>: Uses styles to locate elements</li></ul><p>Web elements include buttons, links, input boxes, dropdowns, checkboxes, etc. Selenium can <strong>find and interact</strong> with them.</p><h3>Finding elements</h3><ul><li>By ID: driver.find_element_by_id(&quot;element_id&quot;)</li><li>By Name: driver.find_element_by_name(&quot;element_name&quot;)</li><li>By XPath: driver.find_element_by_xpath(&quot;//tag[@attribute=&#39;value&#39;]&quot;)</li><li>By CSS Selector: driver.find_element_by_css_selector(&quot;css_selector&quot;)</li></ul><h3>Performing actions</h3><ul><li><strong>Click a button:</strong></li></ul><pre>driver.find_element_by_id(&quot;submit&quot;).click()</pre><ul><li><strong>Enter text in a textbox:</strong></li></ul><pre>driver.find_element_by_name(&quot;username&quot;).send_keys(&quot;Lakshani&quot;)</pre><ul><li><strong>Get text from an elements</strong></li></ul><pre>text = driver.find_element_by_xpath(&quot;//h1&quot;).text</pre><h3>Common Actions in Selenium</h3><blockquote>Once Selenium finds an element, you can:</blockquote><ul><li><strong>Click</strong>: Click buttons or links</li><li><strong>Type text</strong>: Enter text in forms</li><li><strong>Read text</strong>: Extract text to verify content</li><li><strong>Select options</strong>: Choose from dropdown menus</li><li><strong>Handle alerts</strong>: Accept or dismiss popups</li></ul><blockquote>alert = driver.switch_to.alert<br>alert.accept() # clicks OK<br>alert.dismiss() # clicks Cancel</blockquote><p><strong>Diagram suggestion:</strong> Show a webpage with arrows pointing to actions: click, type, select, read, alert.</p><h3>6. Waits in Selenium</h3><blockquote>Websites often take time to load elements. If your script tries to interact too early, it can fail. Selenium provides <strong>wait mechanisms</strong>:</blockquote><ol><li><strong>Implicit Wait</strong> — Waits a fixed time globally.</li></ol><ul><li>Waits a fixed time before throwing an error.</li></ul><pre>driver.implicitly_wait(10)  # waits up to 10 seconds</pre><ol><li><strong>Explicit Wait</strong> — Waits until a specific element appears.</li></ol><ul><li>Waits until a specific condition is true.</li></ul><pre>from selenium.webdriver.common.by import By<br>from selenium.webdriver.support.ui import WebDriverWait<br>from selenium.webdriver.support import expected_conditions as EC</pre><pre>element = WebDriverWait(driver, 10).until(<br>    EC.presence_of_element_located((By.ID, &quot;username&quot;))<br>)</pre><blockquote>Using waits makes your automation scripts <strong>more stable and reliable</strong>.</blockquote><h3>Advanced Selenium Techniques</h3><h4>1. Handling Multiple Windows</h4><pre>main_window = driver.current_window_handle<br># After clicking a link that opens new window<br>for handle in driver.window_handles:<br>    if handle != main_window:<br>        driver.switch_to.window(handle)</pre><h4>2. Taking Screenshots</h4><pre>driver.save_screenshot(&quot;screenshot.png&quot;)</pre><h4>3. Using Selenium with Python Unittest or Pytest</h4><ul><li>Allows you to <strong>organize tests</strong> and run multiple test cases.</li></ul><pre>import unittest<br>from selenium import webdriver</pre><pre>class GoogleTest(unittest.TestCase):<br>    def setUp(self):<br>        self.driver = webdriver.Chrome(executable_path=&#39;chromedriver.exe&#39;)</pre><pre>    def test_search(self):<br>        self.driver.get(&quot;https://www.google.com&quot;)<br>        self.driver.find_element_by_name(&quot;q&quot;).send_keys(&quot;Selenium&quot;)<br>        self.driver.find_element_by_name(&quot;q&quot;).submit()</pre><pre>    def tearDown(self):<br>        self.driver.quit()</pre><pre>if __name__ == &quot;__main__&quot;:<br>    unittest.main()</pre><h4>4. Data-Driven Testing</h4><ul><li>Selenium can read data from <strong>Excel, CSV, or JSON files</strong> and run tests multiple times with different data.</li></ul><h3>7. Best Practices for Beginners</h3><blockquote>Even as a beginner, following best practices helps:</blockquote><ul><li>Start simple and automate basic tasks first</li><li>Use <strong>explicit waits</strong> to avoid errors</li><li>Keep your code clean and organized</li><li>Close the browser after tests to save memory</li><li>Practice regularly on simple websites</li></ul><h3>8. Where to Practice Selenium</h3><blockquote>Try practicing on these websites:</blockquote><ul><li><a href="https://demoqa.com/"><strong>DemoQA</strong></a> — Forms, buttons, tables</li><li><a href="https://the-internet.herokuapp.com/"><strong>The Internet</strong></a> — Alerts, frames, authentication</li><li><a href="https://selenium.dev/"><strong>Selenium Official</strong></a> — Documentation and examples</li></ul><blockquote><strong>Diagram suggestion:</strong> A list with website logos/icons for visual appeal</blockquote><h3>9. Next Steps After Beginner Level</h3><blockquote>Once comfortable with basics, explore:</blockquote><ul><li>Automating multiple test cases using <strong>Python’s unit test or Pytest</strong></li><li>Organizing code using <strong>Page Object Model (POM)</strong></li><li>Running tests on multiple browsers with <strong>Selenium Grid</strong></li><li>Integrating Selenium with <strong>CI/CD tools like Jenkins</strong></li></ul><h3>10. Conclusion</h3><p>Selenium is an amazing tool to start your journey in <strong>automation testing</strong>. From opening a browser to interacting with elements, it makes repetitive tasks simple and saves a lot of time.</p><p>Start small, practice consistently, and gradually explore more advanced concepts. With Selenium, <strong>you can automate almost anything on the web</strong>!</p><p><strong>Diagram suggestion:</strong> Roadmap diagram: Beginner → Practice → POM → Selenium Grid → CI/CD Integration</p><blockquote><em>Thank you very much for reading!</em></blockquote><blockquote><em>I’ll catch you again soon with another exciting article.</em></blockquote><blockquote><em>Until then, stay safe and inspired!</em></blockquote><blockquote><em>-Tharushi Lakshani-</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=753ff044cbc0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[FashionHunt Web Application]]></title>
            <link>https://medium.com/@tharushilakshani81/fashionhunt-web-application-e6d0f94b09a2?source=rss-8481aaa74a22------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6d0f94b09a2</guid>
            <dc:creator><![CDATA[Tharushi Lakshani]]></dc:creator>
            <pubDate>Sat, 06 Sep 2025 15:29:05 GMT</pubDate>
            <atom:updated>2025-09-06T15:29:05.236Z</atom:updated>
            <content:encoded><![CDATA[<h3>My Experience, Security Considerations, and Key Learnings</h3><blockquote>Developing the <strong>FashionHunt web application</strong> has been one of the most exciting milestones in my software engineering journey. This project was designed to provide a seamless online shopping experience for customers while enabling admins to manage products, categories, and orders in a user-friendly way.</blockquote><blockquote>Through this journey, I not only sharpened my technical skills but also gained valuable insights into <strong>security practices, authentication mechanisms, and frontend–backend integration.</strong></blockquote><h3>Security Aspects Considered</h3><p>From the start, I knew that security would play a vital role. Since FashionHunt involves <strong>user accounts, product details, and payment workflows</strong>, it was critical to design the application with strong security principles.</p><blockquote>Here are the measures I implemented:</blockquote><p><strong>Input Validation &amp; Sanitization</strong></p><ul><li>Prevented SQL Injection and XSS attacks by validating and sanitizing inputs on both client and server side.</li></ul><p><strong>HTTPS Setup</strong></p><ul><li>Configured secure HTTPS communication to protect user data from interception.</li></ul><p><strong>CORS Configuration</strong></p><ul><li>Restricted API access to trusted origins, reducing risks from cross-origin attacks.</li></ul><p><strong>Password Protection</strong></p><ul><li>Used bcrypt hashing for storing passwords securely in the database.</li></ul><p><strong>Error Handling</strong></p><ul><li>Implemented global error handling to prevent sensitive error messages from being exposed to users.</li></ul><h3>Authentication Protocols (Auth0 + OIDC)</h3><blockquote>To protect FashionHunt’s private features such as <strong>order history, cart management, and admin dashboards</strong>, I integrated <strong>Auth0 with OpenID Connect (OIDC)</strong> for authentication.</blockquote><h3>How It Works</h3><ol><li><strong>Login Flow</strong></li></ol><ul><li>Users log in via Auth0’s hosted login page (supporting email/password and social logins).</li><li>Auth0 verifies credentials and issues secure <strong>JWT tokens</strong>.</li></ul><p><strong>2. Protected Routes</strong></p><ul><li>Each request to protected APIs includes the access token in the Authorization header.</li><li>Backend verifies token validity using Auth0’s public keys.</li></ul><p><strong>3. Role-Based Access Control (RBAC)</strong></p><ul><li>Roles like <strong>Admin</strong> and <strong>Customer</strong> were set up in Auth0.</li><li>The backend checks claims inside tokens before allowing access to admin-only endpoints.</li></ul><h3>Implementation Strategies</h3><blockquote>I structured the project into <strong>frontend and backend modules</strong>:</blockquote><ul><li><strong>Backend (Node.js + Express)</strong></li><li>Built REST APIs for authentication, product management, cart operations, and order tracking.</li><li>Integrated with <strong>MongoDB</strong> to store user accounts, products, and transactions.</li><li><strong>Frontend (React.js)</strong></li><li>Designed a responsive UI for customers to browse collections, add products to carts, and checkout.</li><li>Used <strong>Axios</strong> for API communication and <strong>React Hooks</strong> for state management.</li></ul><p>This modular separation made debugging and scaling much easier.</p><h3>Challenges Faced</h3><ol><li><strong>Authentication Bugs</strong></li></ol><ul><li>Initially, token expiration led to unwanted logouts. I fixed this by implementing a refresh-token strategy.</li></ul><p><strong>2. CORS Errors</strong></p><ul><li>Frontend and backend communication caused CORS conflicts, which I resolved by configuring Express with the cors middleware.</li></ul><p><strong>3. Database Queries</strong></p><ul><li>As the product catalog grew, queries became slower. I optimized them with MongoDB indexes.</li></ul><p><strong>4. Deployment &amp; HTTPS</strong></p><ul><li>Setting up HTTPS both locally and in production required trial and error but was a huge learning curve.</li></ul><h3>Learning Outcomes</h3><ul><li><strong>Security-first mindset</strong>: I realized that securing an app is as important as building features.</li><li><strong>Authentication flows</strong>: Working with JWT and OIDC gave me hands-on experience in modern authentication.</li><li><strong>Debugging real-world issues</strong>: Facing CORS, expired tokens, and database optimizations improved my problem-solving.</li><li><strong>Scalable architecture</strong>: Separating frontend and backend prepared me for building larger applications.</li></ul><h3>GitHub Repository</h3><blockquote>Want to explore the full project?<br> <strong>FashionHunt GitHub Repository </strong><a href="https://github.com/TharushiLakshani2002/Cosmatic-Website"><strong>https://github.com/TharushiLakshani2002/Cosmatic-Website</strong></a></blockquote><h3>Final Thoughts</h3><p>Building the FashionHunt application was more than just a coding exercise — it was a complete learning journey. From designing a secure shopping platform to managing authentication and scaling the app, I gained valuable skills that I can now apply to future real-world projects.</p><p>I now feel much more confident about <strong>working on production-grade applications where security, usability, and scalability matter most.</strong></p><blockquote>Thank you very much for reading!</blockquote><blockquote>I’ll catch you again soon with another exciting article.</blockquote><blockquote>Until then, stay safe and inspired!</blockquote><blockquote>-Tharushi Lakshani-</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6d0f94b09a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Makes Cypress Unique from Selenium]]></title>
            <link>https://medium.com/@tharushilakshani81/what-makes-cypress-unique-from-selenium-947118370c41?source=rss-8481aaa74a22------2</link>
            <guid isPermaLink="false">https://medium.com/p/947118370c41</guid>
            <dc:creator><![CDATA[Tharushi Lakshani]]></dc:creator>
            <pubDate>Wed, 04 Jun 2025 14:34:22 GMT</pubDate>
            <atom:updated>2025-06-04T14:50:12.184Z</atom:updated>
            <content:encoded><![CDATA[<p>— Not Better, But Different</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*P9rvfGzpBg59q2xK.jpg" /></figure><p>When it comes to test automation, Selenium has long been considered the go-to solution. But over the years, a modern alternative has been rising in popularity — <strong>Cypress</strong>. While some might jump to compare the two in terms of which is better, the truth is more nuanced.</p><p><strong>Cypress isn’t necessarily <em>better</em> than Selenium — it’s <em>different</em>.</strong> In this blog post, we’ll dive deep into what makes Cypress unique, its standout features, and how it compares to Selenium in various aspects of test automation.</p><h3>What is Cypress?</h3><p>Cypress is a <strong>JavaScript-based end-to-end testing framework</strong> built specifically for modern web applications. It’s open-source, fast-growing, and developer-friendly. Cypress runs directly in the browser, giving developers complete control over the test execution environment.</p><p>Unlike traditional automation tools, Cypress is tightly coupled with the application under test — which gives it <strong>native access to DOM elements, network requests, and JavaScript objects</strong>.</p><h3>Cypress vs Selenium: Key Differences</h3><p>Here are the major differences that make Cypress stand out from Selenium:</p><h3>1. Architecture</h3><p>The most significant technical distinction lies in their architecture:</p><ul><li><strong>Selenium</strong>: Operates by sending commands through a WebDriver to control browsers. It relies on browser drivers and runs outside the browser context in a different process.</li><li><strong>Cypress</strong>: Runs <strong>inside the browser</strong>, executing in the same run loop as your application. This means it can directly access and interact with browser APIs, page elements, and application internals.</li></ul><p><strong>Result</strong>: Cypress delivers <strong>faster and more reliable test execution</strong> due to its tight integration with the browser.</p><h3>2. Ease of Use</h3><p>Cypress was designed with developer experience in mind:</p><ul><li>Uses <strong>JavaScript</strong> (one of the most commonly used languages).</li><li>Provides a <strong>clean and expressive API</strong>.</li><li>Comes with an <strong>interactive test runner</strong> that shows real-time feedback, DOM snapshots, and step-by-step progression.</li></ul><p>Selenium, in contrast, supports multiple languages (Java, Python, C#, etc.), which is versatile but can be complex and harder to maintain for beginners.</p><h3>3. Debugging Made Simple</h3><p>One of Cypress’s biggest advantages is <strong>effortless debugging</strong>:</p><ul><li>Pauses the test execution with .debug() or .pause().</li><li><strong>DevTools integration</strong> makes inspecting elements and application state seamless.</li><li>Takes <strong>automatic screenshots and videos</strong> of test runs to assist in pinpointing issues.</li></ul><p>Selenium debugging typically requires external logging, breakpoints, or third-party tools, making it comparatively more challenging.</p><h3>4. Automatic Waiting</h3><p>Timing issues are common in test automation — and Cypress shines here:</p><ul><li>Cypress automatically <strong>waits for elements to appear</strong>, animations to finish, and AJAX calls to complete.</li><li>You don’t need to sprinkle your test code with wait, sleep, or timeout statements.</li></ul><p>Selenium, on the other hand, often requires <strong>explicit waits</strong> (WebDriverWait, Thread.sleep) or polling strategies to prevent flaky tests.</p><h3>5. Installation and Setup</h3><ul><li>Cypress has a <strong>zero-dependency setup</strong> — install via npm install cypress, and you’re good to go.</li><li>Selenium typically involves setting up browser drivers (ChromeDriver, GeckoDriver), frameworks (like TestNG or JUnit), and possibly a Selenium Grid for parallel testing.</li></ul><p>Cypress’s setup is <strong>streamlined</strong> and targeted at modern front-end developers.</p><h3>When to Choose Cypress over Selenium?</h3><blockquote><strong>Cypress</strong> is a great choice if you’re testing <strong>modern web applications</strong> built with frameworks like <strong>React, Angular, or Vue</strong>, and your development team primarily works with <strong>JavaScript or TypeScript</strong>. It’s ideal for projects that value <strong>speed, reliability, and a seamless debugging experience</strong>, thanks to its automatic waiting and real-time test runner. If you prefer a tool with a <strong>built-in dashboard</strong> and smooth <strong>continuous integration (CI) support</strong>,<strong> Cypress</strong> is likely the better fit.</blockquote><blockquote>On the other hand, <strong>Selenium</strong> is the preferred option when you need <strong>broad cross-browser support</strong>, including legacy browsers. It’s also well-suited for teams experienced in <strong>Java, Python, or C#</strong>, or when your testing requires <strong>multi-tab handling, cross-origin interactions, or automation for desktop and mobile apps</strong>.</blockquote><h3>Conclusion</h3><p>Cypress and Selenium are both powerful tools in the QA toolbox, each with its unique strengths. Cypress offers a <strong>developer-first experience</strong>, better debugging, automatic waiting, and a simple architecture — making it ideal for modern web testing.</p><p>However, Selenium remains the <strong>more mature and versatile tool</strong>, particularly for enterprise-level cross-browser and cross-platform testing.</p><blockquote>Cypress is not a replacement for Selenium — it’s a reimagination of what modern test automation can be.</blockquote><p>So, instead of asking which is better, ask:<br> <strong>“Which one suits my project, tech stack, and team better?”</strong></p><p><a href="https://medium.com/tag/cypress">#Cypress</a> <a href="https://medium.com/tag/selenium">#Selenium</a> <a href="https://medium.com/tag/test-automation">#TestAutomation</a> <a href="https://medium.com/tag/quality-assurance">#QualityAssurance</a> <a href="https://medium.com/tag/tools">#Tools</a> #QAEngineering #EndToEndTesting</p><blockquote><em>Thank you very much for reading!</em></blockquote><blockquote><em>I’ll catch you again soon with another exciting article.</em></blockquote><blockquote><em>Until then, stay safe and inspired!</em></blockquote><blockquote><em>-Tharushi Lakshani-</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=947118370c41" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Secure SDLC (SSDLC): Integrating Security from the Start]]></title>
            <link>https://medium.com/@tharushilakshani81/secure-sdlc-ssdlc-integrating-security-from-the-start-79da9a491a1f?source=rss-8481aaa74a22------2</link>
            <guid isPermaLink="false">https://medium.com/p/79da9a491a1f</guid>
            <dc:creator><![CDATA[Tharushi Lakshani]]></dc:creator>
            <pubDate>Sat, 31 May 2025 12:26:31 GMT</pubDate>
            <atom:updated>2025-05-31T12:26:31.077Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KVT7xhAhEqpuJ-qK.png" /></figure><blockquote>In today’s fast-paced digital world, cybersecurity is not a luxury — it’s a necessity. Whether you’re building a small app or a complex enterprise platform, overlooking security can lead to severe consequences, ranging from data breaches to regulatory fines. That’s why it’s critical to understand and implement the <strong>Secure Software Development Life Cycle (Secure SDLC or SSDLC)</strong>.</blockquote><blockquote>This article walks you through the core phases of Secure SDLC, provides real-world examples, and explains how security practices should be integrated into each step of the development journey. So if you’re a developer, tester, architect, or student stepping into software engineering — this one’s for you!</blockquote><h3>What is SDLC?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_fy9Ik_O-7fX8QU5.jpg" /></figure><blockquote>The <strong>Software Development Life Cycle (SDLC)</strong> is a structured approach to software creation that includes several well-defined stages:</blockquote><ol><li><strong>Planning &amp; Requirements Gathering</strong></li><li><strong>Design</strong></li><li><strong>Development</strong></li><li><strong>Testing</strong></li><li><strong>Deployment</strong></li><li><strong>Maintenance</strong></li></ol><blockquote>This traditional process focuses heavily on functionality and delivery. However, <strong>security is often treated as an afterthought</strong> — addressed only during the maintenance phase when issues are discovered (usually too late).</blockquote><h3>The Problem:</h3><p>Without security baked into earlier stages, you risk releasing vulnerable software into production — fixing which can be expensive, time-consuming, and damaging to your reputation.</p><h3>What is Secure SDLC?</h3><blockquote><strong>Secure SDLC (SSDLC)</strong> is the security-focused evolution of SDLC. It ensures that <strong>security is integrated into every phase</strong> of the development lifecycle, not just at the end. This is often referred to as <strong>“shift-left security”</strong> — shifting security practices to the left (earlier) in the lifecycle.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1Neou7z5fKyMuWv3.png" /></figure><h3>Key Benefit:</h3><blockquote>By identifying and fixing vulnerabilities early, SSDLC helps reduce risks, minimize costs, and deliver safer software to end-users.</blockquote><h3>Phases of the Secure SDLC (SSDLC)</h3><blockquote>Let’s now explore each phase of the SSDLC in detail — with <strong>security-focused actions</strong> and <strong>real-life examples</strong>.</blockquote><h3>01️). Planning &amp; Requirements Gathering (with Security in Mind)</h3><blockquote>At this early stage, both <strong>functional</strong> and <strong>security requirements</strong> are gathered.</blockquote><h4>Security Activities:</h4><ul><li><strong>Threat Modeling</strong>: Identify potential threats (e.g., SQL injection, DoS attacks).</li><li><strong>Risk Assessment</strong>: Classify data and assess potential business impact.</li><li><strong>Compliance Mapping</strong>: Ensure alignment with standards like <strong>GDPR</strong>, <strong>HIPAA</strong>, or <strong>PCI-DSS</strong>.</li></ul><h4>Example:</h4><p>If you’re building a healthcare app, you’ll need to plan for <strong>HIPAA compliance</strong>, secure patient data storage, and encrypted communication from the start.</p><h3>02️).Design (Secure Architecture)</h3><blockquote>In this phase, you create the blueprint of your application. Security decisions made here directly impact development.</blockquote><h4>Security Activities:</h4><ul><li><strong>Use secure design patterns</strong> (e.g., authentication flow, input validation).</li><li><strong>Identify attack vectors</strong> like <strong>XSS</strong>, <strong>CSRF</strong>, and design mitigation strategies.</li><li><strong>Define security controls</strong> (e.g., access control layers, encryption mechanisms).</li></ul><h4>Example:</h4><p>For a banking app, you might design a <strong>role-based access control</strong> system to ensure that customers, admins, and support agents access only their authorized features.</p><h3>03️). Development (Secure Coding Practices)</h3><blockquote>This is where the magic (and danger) happens — developers write the actual code.</blockquote><h4>Security Activities:</h4><ul><li><strong>Follow secure coding standards</strong> (e.g., OWASP Top 10).</li><li><strong>Run Static Application Security Testing (SAST)</strong> tools like <strong>SonarQube</strong>, <strong>Fortify</strong>.</li><li><strong>Use dependency scanning tools</strong> (e.g., <strong>OWASP Dependency-Check</strong>, <strong>Snyk</strong>) to check for vulnerable libraries.</li></ul><h4>Example:</h4><blockquote>Instead of writing this insecure PHP code:</blockquote><p><strong>$sql = “SELECT * FROM users WHERE email = ‘“.$_POST[‘email’].”’”;</strong></p><blockquote>Use parameterized queries to prevent SQL injection:</blockquote><p><strong>$stmt = $pdo-&gt;prepare(“SELECT * FROM users WHERE email = ?”);<br>$stmt-&gt;execute([$_POST[‘email’]]);</strong></p><h4><strong>04️). Testing (Security Testing)</strong></h4><blockquote>we verify not only if the software works — but also if it is <strong>secure</strong>.</blockquote><h4>Security Activities:</h4><ul><li><strong>Dynamic Application Security Testing (DAST)</strong> tools like <strong>OWASP ZAP</strong> to simulate real-world attacks.</li><li><strong>Penetration Testing</strong> by ethical hackers.</li><li><strong>Fuzz Testing</strong> to send random or malformed data to see how the application reacts.</li></ul><h4>Example:</h4><p>Before launching an e-commerce site, conduct a <strong>black-box pen test</strong> to uncover hidden vulnerabilities like <strong>broken authentication</strong> or <strong>unvalidated redirects</strong>.</p><h3>05️). Deployment (Secure Configuration and Monitoring)</h3><blockquote>Even secure code can become vulnerable if deployed improperly.</blockquote><h4>Security Activities:</h4><ul><li><strong>Secure Infrastructure-as-Code (IaC)</strong> using tools like <strong>Terraform</strong> + <strong>Checkov</strong>.</li><li><strong>Container security scanning</strong> using tools like <strong>AquaSec</strong> or <strong>Trivy</strong>.</li><li><strong>Review cloud configurations</strong> (e.g., make sure S3 buckets are not public).</li></ul><h4>Example:</h4><p>When deploying on AWS, ensure that:</p><ul><li>Security groups only expose necessary ports.</li><li>IAM roles follow <strong>least privilege</strong>.</li><li>SSL/TLS is enforced for all APIs.</li></ul><h3>06️). Maintenance (Continuous Monitoring and Response)</h3><blockquote>Security is not a one-time job — it’s continuous.</blockquote><h4>Security Activities:</h4><ul><li><strong>Implement continuous monitoring</strong> using tools like <strong>SIEMs</strong> (e.g., Splunk, Wazuh).</li><li><strong>Apply regular security patches</strong> for dependencies and OS.</li><li><strong>Set up an Incident Response Plan (IRP)</strong> to react to breaches.</li></ul><h4>Example:</h4><p>Suppose a new zero-day vulnerability is discovered in a logging library like <strong>Log4j</strong>.</p><p>Your response plan should include:</p><ol><li>Notifying stakeholders.</li><li>Applying hotfix patches.</li><li>Monitoring for signs of exploitation.</li></ol><h3>SSDLC in Practice: DevSecOps</h3><blockquote>Secure SDLC fits beautifully into the <strong>DevSecOps</strong> model, where development, security, and operations collaborate from the beginning.</blockquote><blockquote>Tools like:</blockquote><ul><li><strong>GitHub Actions</strong> or <strong>GitLab CI/CD</strong> for secure pipelines</li><li><strong>Checkmarx</strong>, <strong>Veracode</strong> for SAST</li><li><strong>AquaSec</strong>, <strong>Twistlock</strong> for container security</li></ul><blockquote>help automate the security processes within your development pipeline.</blockquote><p>The era of bolting on security at the end is over. By adopting a Secure SDLC mindset, we not only build better software — we build safer, resilient, and trustworthy systems.</p><p>As future engineers, it’s our <strong>ethical</strong> and <strong>professional responsibility</strong> to bake security into every phase of software development. Whether you’re planning your first app or leading an enterprise release, make Secure SDLC your default approach.</p><blockquote>Thank you very much for reading!</blockquote><blockquote>I’ll catch you again soon with another exciting article.</blockquote><blockquote>Until then, stay safe and inspired!</blockquote><blockquote>-Tharushi Lakshani-</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79da9a491a1f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Power of Automation Testing: Revolutionizing Software Quality Assurance]]></title>
            <link>https://medium.com/@tharushilakshani81/the-power-of-automation-testing-revolutionizing-software-quality-assurance-0e698dbe1958?source=rss-8481aaa74a22------2</link>
            <guid isPermaLink="false">https://medium.com/p/0e698dbe1958</guid>
            <dc:creator><![CDATA[Tharushi Lakshani]]></dc:creator>
            <pubDate>Tue, 27 May 2025 16:23:29 GMT</pubDate>
            <atom:updated>2025-05-27T16:23:29.493Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s rapidly evolving digital ecosystem, software products must be released faster and perform better than ever before. With shortened development cycles and ever-rising user expectations, <strong>automation testing</strong> has become not just a trend — but a strategic imperative.</p><blockquote>Automation testing isn’t just about reducing manual work — it’s about boosting <strong>efficiency, reliability, and scalability</strong> in the software quality assurance process. Let’s dive deep into what makes automation testing a game-changer in modern software development.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lUw7-nKbP_qKr7QW" /></figure><h3>What is Automation Testing?</h3><blockquote><strong>Automation testing</strong> refers to the use of specialized software tools to automatically execute predefined test cases, compare actual outcomes with expected results, and generate detailed reports — without the need for manual human input.</blockquote><p>Unlike manual testing, which is labor-intensive and error-prone, automation testing provides <strong>speed, consistency, and precision</strong>. It allows teams to test more, test faster, and test better.</p><h3>Why Automation Testing Matters</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/0*Qk9oAPjGwchtqfC3" /></figure><h3>1. Speed and Efficiency</h3><p>Automation drastically speeds up repetitive testing tasks, which is crucial in <strong>Agile</strong> and <strong>DevOps</strong> environments. With Continuous Integration and Continuous Deployment (CI/CD), faster feedback loops are essential — and automation delivers just that.</p><h3>2. Cost-Effectiveness</h3><p>Though setting up automation initially requires investment in tools and expertise, the <strong>long-term return</strong> is substantial. Automated tests are <strong>reusable across releases</strong>, saving significant labor costs over time.</p><h3>3. Improved Accuracy</h3><p>Manual testers can make mistakes — especially during repetitive testing. Automation ensures <strong>consistent execution</strong> every time, removing human error from the equation.</p><h3>4. Enhanced Test Coverage</h3><p>Automation enables the execution of thousands of <strong>complex scenarios across various browsers, platforms, and devices</strong>, ensuring broad and deep test coverage that manual testing can’t achieve efficiently.</p><h3>5. Faster Time-to-Market</h3><p>By streamlining test execution, automation helps teams <strong>release features faster</strong> without sacrificing quality — a major advantage in competitive markets.</p><h3>Key Tools for Automation Testing</h3><blockquote>Here are some powerful tools that are shaping the automation testing landscape:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*xWVZTY9v-cPU7cTDEpgpVg.png" /></figure><ul><li><strong>Selenium</strong> — A robust framework for web application testing supporting multiple programming languages.</li><li><strong>Appium</strong> — Perfect for testing mobile apps on <strong>Android</strong> and <strong>iOS</strong>.</li><li><strong>Jenkins</strong> — A CI/CD tool that integrates well with automated testing pipelines.</li><li><strong>TestComplete</strong> — A user-friendly tool for desktop, mobile, and web application testing.</li><li><strong>Cypress</strong> — A modern JavaScript-based tool for fast, reliable web testing with a developer-friendly approach.</li></ul><h3>Best Practices for Automation Testing</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Q0GFUA7DapsQjvFc.png" /></figure><blockquote>To make the most of automation testing, follow these proven best practices:</blockquote><h3>1.Start Small</h3><p>Begin by automating the most <strong>repetitive, time-consuming test cases</strong>. Expand gradually as the framework stabilizes.</p><h3>2.Choose the Right Tools</h3><p>Select tools that align with your <strong>project needs, budget, and team expertise</strong>. Open-source tools can be excellent starting points.</p><h3>3.Maintain Your Test Scripts</h3><p>Outdated scripts can cause false positives/negatives. Regularly <strong>refactor and update</strong> your tests for reliability.</p><h3>4.Integrate with CI/CD Pipelines</h3><p>Embed automation testing into your <strong>development pipeline</strong> to catch bugs early and ensure continuous feedback.</p><h3>5.Monitor and Analyze Results</h3><p>Use dashboards and detailed test reports to gain <strong>insights into test performance</strong> and make data-driven decisions.</p><h3>Challenges in Automation Testing</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*PHG5fusbVk7dkFyI.png" /></figure><blockquote>Despite its advantages, automation testing comes with a few hurdles:</blockquote><ul><li><strong>High Initial Investment</strong> — Setting up a test automation framework requires time and skilled resources.</li><li><strong>Steep Learning Curve</strong> — Testers may need to <strong>learn new tools, scripting languages</strong>, or automation frameworks.</li><li><strong>Limitations</strong> — Some types of testing (like <strong>exploratory</strong>, <strong>usability</strong>, or <strong>ad hoc testing</strong>) still require human intuition and creativity.</li></ul><h3>The Future of Automation Testing</h3><blockquote>The next frontier in automation testing is being shaped by <strong>Artificial Intelligence (AI)</strong> and <strong>Machine Learning (ML)</strong>.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/0*LcsycGpmUoVBnMbG.jpg" /></figure><blockquote>Exciting innovations include:</blockquote><ul><li><strong>Self-healing scripts</strong> that automatically adapt to UI changes.</li><li><strong>AI-driven test case generation</strong> based on application behavior.</li><li><strong>Predictive analytics</strong> to forecast potential failure points.</li></ul><blockquote>These advancements will not only reduce human intervention but also make testing <strong>smarter and more proactive</strong>.</blockquote><h3>Conclusion</h3><p>Automation testing is no longer a luxury — it’s a <strong>strategic necessity</strong> for any organization aiming to thrive in today’s fast-paced software development landscape. From faster releases and reduced costs to higher accuracy and broader test coverage, automation brings immense value.</p><p>Whether you’re a QA veteran or just stepping into the world of software testing, now is the perfect time to embrace the power of automation. Start small, scale smartly, and unlock the future of quality assurance.</p><blockquote><em>Thank you very much for reading!</em></blockquote><blockquote><em>I’ll catch you again soon with another exciting article.</em></blockquote><blockquote><em>Until then, stay safe and inspired!</em></blockquote><blockquote><em>-Tharushi Lakshani-</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0e698dbe1958" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Manual Software Testing: A Beginner’s Guide]]></title>
            <link>https://medium.com/@tharushilakshani81/mastering-manual-software-testing-a-beginners-guide-31437a1936b1?source=rss-8481aaa74a22------2</link>
            <guid isPermaLink="false">https://medium.com/p/31437a1936b1</guid>
            <dc:creator><![CDATA[Tharushi Lakshani]]></dc:creator>
            <pubDate>Mon, 26 May 2025 18:37:47 GMT</pubDate>
            <atom:updated>2025-05-26T18:37:47.021Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><a href="https://glossary.istqb.org/en_US/term/testing-9">ISTQB</a> defines testing as “<strong><em>The process within the software development lifecycle that evaluates the quality of a component or system and related work products</em></strong><em>.”</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*dileQw-4IqccGjGn" /></figure><p>In the world of software development, delivering high-quality products is a non-negotiable goal. With the rapid advancement of technology and increasing customer expectations, software must be reliable, user-friendly, and free of defects. One of the most essential processes in achieving this is <strong>software testing</strong> — and specifically, <strong>manual testing</strong>.</p><p>While automation testing tools have gained popularity and are indispensable for repetitive and large-scale testing, <strong>manual testing remains foundational</strong> — especially during early development phases, exploratory testing, and when evaluating the user experience. This guide will walk you through the key concepts, processes, and why manual testing is still crucial in today’s tech landscape.</p><h3>What is Manual Testing?</h3><p><strong>Manual testing</strong> is the process where a human tester manually executes test cases without relying on automated scripts or tools. The tester acts as an end-user, interacting with the software to verify if it behaves as expected.</p><h3>Real-life Example</h3><p>Imagine you’re testing a login page for a new website. As a manual tester, you would open the page, type in various usernames and passwords, click the login button, and observe the results. Does it accept valid credentials? Does it show an error message for invalid credentials? Is the UI clear and responsive? This kind of testing requires human judgment, observation, and interaction.</p><h3>Why Choose Manual Testing?</h3><blockquote>Despite the increasing use of automation, manual testing offers unique advantages:</blockquote><ul><li><strong>Human Insight</strong><br> Humans can recognize usability issues, design flaws, and typos — details that automated scripts might overlook. The tester’s intuition and experience are invaluable.</li><li><strong>Exploratory Testing</strong><br> Manual testing allows for flexible, unscripted exploration. Testers can try unexpected user behaviors or scenarios that were not initially considered, uncovering hidden bugs.</li><li><strong>Real-time Feedback</strong><br> Immediate feedback from manual testing helps developers quickly understand the problem and fix it, improving development cycles.</li><li><strong>Cost-effective for Small Projects</strong><br> For smaller projects or early prototypes, manual testing can be faster and less expensive than setting up automation frameworks.</li></ul><h3>Types of Manual Testing</h3><blockquote>Manual testing can be classified based on how testers interact with the software and its knowledge of the internal workings:</blockquote><h3>1. Black Box Testing</h3><p>Testers have <strong>no knowledge of the internal code</strong> or architecture. They focus solely on inputs and outputs, ensuring the software meets functional requirements. Example: Testing a payment gateway by entering various card details without knowing how the system processes the payment.</p><h3>2. White Box Testing</h3><p>Involves testing the <strong>internal structure, code, and logic</strong>. This is usually done by developers to check specific functions or modules. Example: Unit testing functions in code for expected behavior.</p><h3>3. Grey Box Testing</h3><p>Combines both approaches. Testers have <strong>partial knowledge</strong> of the system internals and test with an understanding of both functionality and architecture. Useful for integration testing or security testing.</p><h3>Levels of Testing</h3><blockquote>Testing occurs at multiple levels to ensure every part of the software works perfectly:</blockquote><ul><li><strong>Unit Testing</strong><br> Tests individual components or functions in isolation. Usually done by developers to verify small pieces of code.</li><li><strong>Integration Testing</strong><br> Checks if different modules or services work together correctly. For example, testing if the front end properly communicates with the backend API.</li><li><strong>System Testing</strong><br> Validates the entire software system as a whole against the specified requirements.</li><li><strong>Acceptance Testing</strong><br> Conducted by clients or end users to verify the software meets their expectations and is ready for production.</li></ul><h3>Defect Life Cycle (Bug Life Cycle)</h3><blockquote>Understanding how defects are managed helps testers track issues effectively:</blockquote><ol><li><strong>New</strong> — A bug is reported.</li><li><strong>Assigned</strong> — The bug is assigned to a developer.</li><li><strong>Open</strong> — Developer starts working on it.</li><li><strong>Fixed</strong> — The bug is fixed in the code.</li><li><strong>Retested</strong> — Tester verifies the fix.</li><li><strong>Closed</strong> — Bug is resolved and closed.</li><li><strong>Reopened</strong> — If the bug persists, it’s reopened for further fixing.</li></ol><h3>Key Terms Every Tester Should Know</h3><ul><li><strong>Test Scenario</strong>: A high-level description of a functionality to be tested.</li><li><strong>Test Case</strong>: A detailed step-by-step set of actions with expected outcomes.</li><li><strong>Test Data</strong>: The inputs used during testing.</li><li><strong>Test Environment</strong>: The hardware and software setup where testing occurs.</li><li><strong>Test Execution</strong>: The actual running of test cases on the software.</li></ul><h3>What Is a Test Strategy?</h3><blockquote>A <strong>test strategy</strong> is a comprehensive plan defining:</blockquote><ul><li>The <strong>scope</strong> and objectives of testing.</li><li>The types of testing and tools to be used.</li><li>Roles and responsibilities within the team.</li><li>How risks will be identified and mitigated.</li></ul><p>Having a test strategy ensures that testing is organized, consistent, and aligned with project goals.</p><h3>Software Testing Life Cycle (STLC)</h3><blockquote>Testing follows a structured cycle:</blockquote><ol><li><strong>Requirement Analysis</strong>: Understand what needs testing.</li><li><strong>Test Planning</strong>: Decide what will be tested and how.</li><li><strong>Test Case Design</strong>: Write detailed test cases.</li><li><strong>Test Environment Setup</strong>: Prepare the system for testing.</li><li><strong>Test Execution</strong>: Run the tests.</li><li><strong>Defect Reporting</strong>: Log and track any issues found.</li><li><strong>Test Cycle Closure</strong>: Summarize results and close the cycle.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/238/0*OvxWyH-RPCJctaru.png" /></figure><h3>Testing Levels</h3><blockquote>The testing pyramid below depicts the four broad levels of testing.</blockquote><ul><li><strong>Unit Tests:</strong> The smallest software unit (method, few lines of code) is tested individually.</li><li><strong>Integration Tests:</strong> Two or more code units are integrated, and their interaction and data exchange are tested.</li><li><strong>System Tests:</strong> The whole system is combined and tested as a single unit.</li><li><strong>Acceptance Tests:</strong> The final system is tested from the end user’s perspective.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/0*fjSJk8s2q7AUil1F.png" /></figure><h3>Types of Testing</h3><blockquote>Software testing encompasses various testing types to assess different aspects of a software application.</blockquote><ul><li><a href="https://testrigor.com/blog/an-in-depth-look-at-different-functional-testing-types/"><strong>Functional testing</strong></a> focuses on verifying that the software functions as intended.</li><li><strong>Non-functional testing</strong> evaluates factors like performance, security, and usability.</li><li><a href="https://testrigor.com/blog/unit-testing-best-practices-for-efficient-code-validation/"><strong>Unit testing</strong></a> involves testing individual components.</li><li><strong>Integration testing</strong> checks the interaction between modules.</li><li><a href="https://testrigor.com/blog/what-is-regression-testing/"><strong>Regression testing</strong></a> ensures that new changes do not affect existing functionality.</li><li><strong>User acceptance testing</strong> involves users validating that the software meets their needs.</li><li><strong>Performance testing</strong> assesses responsiveness and scalability.</li><li><a href="https://testrigor.com/blog/security-testing/"><strong>Security testing</strong></a> identifies vulnerabilities, threats, and security loopholes.</li><li><strong>Compatibility testing</strong> ensures the software works across various platforms and configurations.</li></ul><p>Here is more information about <a href="https://testrigor.com/blog/what-is-software-testing-our-quick-comprehensive-guide/">testing types</a>.</p><h3>QA Roles</h3><blockquote>Below are the most popular QA profile roles in an organization:</blockquote><ul><li>Software test engineer</li><li>Test analyst</li><li>Test automation engineer</li><li>Software development engineer in test (SDET)</li><li>Test architect</li><li>Test manager/ director</li></ul><h3>Priority vs. Severity</h3><ul><li><strong>Severity</strong>: How severe the impact of a bug is on the system. A crash is high severity; a typo may be low severity.</li><li><strong>Priority</strong>: How urgently the bug needs fixing. Critical bugs blocking release have high priority.</li></ul><h3>Final Thoughts</h3><p>Manual testing is not going anywhere soon. It remains vital because it adds a human layer of scrutiny, intuition, and adaptability that automation cannot replicate. For beginners in software testing, mastering manual testing builds the foundation of quality assurance skills, preparing you for advanced testing techniques and automation in the future.</p><blockquote>Embrace manual testing as your first step in a rewarding journey toward making software better for everyone.</blockquote><blockquote>Thank you very much for reading!</blockquote><blockquote>I’ll catch you again soon with another exciting article.</blockquote><blockquote>Until then, <strong>stay safe and inspired!</strong></blockquote><blockquote>-Tharushi Lakshani-</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31437a1936b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Start Your Career as a Quality Assurance (QA) Engineer]]></title>
            <link>https://medium.com/@tharushilakshani81/how-to-start-your-career-as-a-quality-assurance-qa-engineer-1fddd8f6b8c5?source=rss-8481aaa74a22------2</link>
            <guid isPermaLink="false">https://medium.com/p/1fddd8f6b8c5</guid>
            <dc:creator><![CDATA[Tharushi Lakshani]]></dc:creator>
            <pubDate>Fri, 16 May 2025 04:57:15 GMT</pubDate>
            <atom:updated>2025-05-16T04:57:15.049Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Are you curious about how to step into the world of software development without becoming a full-time developer? Becoming a <strong>Quality Assurance (QA) Engineer</strong> might be the perfect path for you. As someone passionate about software quality and attention to detail, I’ve written this guide to help aspiring professionals understand what it takes to become a successful QA Engineer.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*p8Q4XG6RrJvOr89V.jpg" /></figure><h3>What Does a QA Engineer Do?</h3><p>A <strong>QA Engineer</strong> is responsible for making sure a software product works as expected and meets quality standards before it reaches users. They test features, report bugs, collaborate with developers and product teams, and ensure the final product is reliable, usable, and efficient.</p><h3>QA vs QC — What’s the Difference?</h3><p>Before diving into the role, it’s important to distinguish between <strong>Quality Assurance (QA)</strong> and <strong>Quality Control (QC)</strong>:</p><ul><li><strong>Quality Assurance (QA)</strong> is a <em>proactive</em> process. It focuses on preventing bugs and ensuring quality through standards, documentation, audits, and planning.</li><li><strong>Quality Control (QC)</strong> is a <em>reactive</em> process. It focuses on detecting and fixing bugs by inspecting and testing the software.</li></ul><p>In simple terms, <strong>QA builds quality in</strong>, while <strong>QC inspects quality out</strong>.</p><h3>Must-Have Skills for a QA Engineer</h3><p>Here are the core skills you need to develop to succeed in this role:</p><ul><li><strong>Attention to detail</strong> — Spotting even the smallest issue can make a huge difference.</li><li><strong>Communication skills</strong> — QA engineers interact with developers, product owners, and stakeholders regularly.</li><li><strong>Time management</strong> — Testing projects can be time-sensitive. Prioritizing tasks is key.</li><li><strong>Problem-solving abilities</strong> — Bugs are often complex. You’ll need to think critically to diagnose and report them.</li><li><strong>Listening skills</strong> — Understanding requirements from users and stakeholders ensures effective testing.</li><li><strong>Test planning</strong> — Know how to write test plans and define test cases based on requirements.</li><li><strong>Manual &amp; automated testing knowledge</strong> — Familiarize yourself with tools like <strong>Selenium</strong>, <strong>Postman</strong>, or <strong>JMeter</strong>.</li><li><strong>SDLC knowledge</strong> — Understanding the Software Development Life Cycle helps you contribute at every stage.</li></ul><h3>Should You Learn Programming?</h3><p>Yes — at least the basics. Learning programming helps you:</p><ul><li>Automate tests to save time and increase coverage.</li><li>Communicate better with developers.</li><li>Understand software logic more deeply.</li></ul><p>Popular programming languages used in QA automation include:</p><ul><li><strong>Java</strong></li><li><strong>Python</strong></li><li><strong>JavaScript</strong></li><li><strong>C#</strong></li></ul><p>Pick one and start small. Python is often recommended for beginners due to its readability.</p><h3>Do You Need a Computer Science Degree?</h3><p>Not necessarily.</p><p>While a degree in Computer Science can open doors, <strong>it’s not the only path</strong>. Many QA Engineers:</p><ul><li>Join coding bootcamps</li><li>Learn through online platforms (like Coursera, Udemy, or freeCodeCamp)</li><li>Gain experience through internships, freelancing, or personal projects</li></ul><p>What matters most is <strong>your understanding of testing principles and your ability to demonstrate your skills</strong>.</p><h3>QA Certifications Worth Exploring</h3><p>Certifications can validate your knowledge and boost your résumé. Consider:</p><ul><li><strong>CAST</strong> (Certified Associate in Software Testing)</li><li><strong>CSTE</strong> (Certified Test Engineer)</li><li><strong>CSQA</strong> (Certified Software Quality Analyst)</li></ul><p>These aren’t always required but can be valuable, especially for those transitioning from other careers.</p><h3>Landing Your First QA Job</h3><p>Ready to enter the job market? Here’s how to stand out:</p><p><strong>1.Build a strong portfolio</strong> — Include sample test cases, bug reports, and automation scripts.</p><p><strong>2.Contribute to open source</strong> — It shows initiative and gives you real-world experience.</p><p><strong>3.Start with internships or freelance projects</strong> — Practical experience goes a long way.</p><p><strong>4.Practice interview questions</strong> — Sites like Glassdoor and LeetCode are great for preparation.</p><p><strong>5.Craft a sharp resume and LinkedIn profile</strong> — Highlight your projects, tools, and certifications.</p><h3>QA Engineer Salary Expectations</h3><p>In the U.S., <strong>entry-level QA Engineers earn an average of $72,000 per year</strong>, according to PayScale. This can vary based on location, experience, and specialization (e.g., manual vs automation testing).</p><p>In countries like Sri Lanka or India, salaries may start lower but grow significantly with experience and niche skills in automation and performance testing.</p><h3>Conclusion...</h3><p>If you’re detail-oriented, enjoy problem-solving, and love seeing things work <em>exactly</em> as intended, QA engineering could be a perfect match for you. The role is rewarding, dynamic, and deeply involved in delivering high-quality software to users.</p><p>Whether you’re pursuing a degree, attending a bootcamp, or teaching yourself, the journey to becoming a QA Engineer is achievable — and worth it.</p><p><strong>Believe in your skills, stay curious, and keep learning. You’ve got this!</strong></p><blockquote><em>Thank you very much for reading!</em></blockquote><blockquote><em>I’ll catch you again soon with another exciting article.</em></blockquote><blockquote><em>Until then, </em><strong><em>stay safe and inspired!</em></strong></blockquote><blockquote><em>-Tharushi Lakshani-</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1fddd8f6b8c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>