Logo/
Reem Designs

Shared by Reem Designs

Log in

Make a lecture like this from your own PDF

Drop a PDF, slides or notes here. You'll sign up, then yours starts.

0:00 / 11:35

0:00 / 11:35Introduction
Software Maintenance and Quality: From Testing to DevOps
Reem Designs

Shared by Reem Designs

Summary

Software maintenance begins after an application is released to ensure it remains functional. This process includes corrective maintenance for bugs, adaptive maintenance for environmental changes like operating system updates, perfective maintenance for new features, and preventive maintenance to avoid future issues. To ensure quality, developers use unit testing for individual code components and integration testing to verify how those components work together.

Maintainability refers to how easily software can be modified, often supported by clean, modular code, while reliability measures the likelihood of the system operating without failure. Teams use quality models like ISO/IEC 25010 to define standards and software metrics—such as cyclomatic complexity or defect density—to move from subjective opinions to objective data. For outdated or complex legacy systems, reengineering can be used to improve internal structures through reverse engineering and modernization.

Security and delivery speed are maintained through specialized practices and tools. Security testing includes techniques like penetration testing, static and dynamic analysis, and fuzzing to identify vulnerabilities. DevOps practices, such as CI/CD pipelines and Infrastructure as Code, bridge the gap between development and operations to automate building, testing, and deployment. Finally, automated testing tools like Selenium and JUnit provide consistent, repeatable verification, while thorough documentation preserves critical knowledge as teams evolve.

Full transcript

0:00Let's talk about what happens to software after it's released. Most people think the hard work ends when an app ships. But that's when the real work begins. Software needs to be maintained — fixed when it breaks, updated when the world around it changes, and tested to make sure it still works right. In this lecture, I'll walk you through the key practices that keep software healthy: maintenance, testing, quality models, metrics, security checks, automation, and DevOps. By the end, you'll see how all these pieces fit together.

0:34What happens when your operating system updates, and an app you use every day suddenly stops working? The app hasn't changed, but its environment has. That's where adaptive maintenance comes in. Adaptive maintenance is the process of modifying software so it keeps working when its environment changes. That environment could be the operating system, new hardware, or a third-party API that updated its format. For example, imagine your app depends on a weather API. If that API changes its data format, someone has to update the app to match. That's adaptive maintenance — not a bug fix. It's one of four main types of maintenance. Corrective fixes bugs, adaptive handles environmental changes, perfective adds new features, and preventive stops problems before they happen.

1:29Now let's talk about testing — specifically two levels that every developer should understand. Unit testing checks one small piece of code in isolation, like a function that adds two numbers or a login check that validates a password. The idea is, if each tiny piece works on its own, you can trust the building blocks. But building blocks that work alone might not work together. That's what integration testing checks — it combines modules and verifies they communicate correctly. Think of it like testing a light bulb alone, and then testing the bulb inside the lamp. There's also code review, where developers read each other's code before it gets merged, looking for bugs and making sure the code follows standards. Together, these practices catch problems early, when they are cheapest to fix.

2:23Two words you will hear a lot in software quality are maintainability and reliability. They sound similar, but they measure different things. Maintainability is how easy it is to change the software — to fix a bug, add a feature, or adapt to a new environment. What makes software maintainable? Clean readable code, modular design with low coupling and high cohesion, good documentation, version control, and consistent coding standards. Reliability, on the other hand, is about how likely the software is to keep working without failing. It is measured with things like MTBF — mean time between failures — and availability, which is the percentage of time the system is up and running. Here is the connection: a maintainable system is easier to repair, which actually improves reliability over time.

3:17How do we define software quality in a way teams can agree on? That is where quality models come in. McCall's model, from 1977, groups quality into three perspectives. Product operation — does it work correctly and reliably? Product revision — can we fix and change it easily? And product transition — can we move it to different environments? The modern standard is ISO slash IEC 25010, which defines eight characteristics: functional suitability, reliability, performance efficiency, usability, security, maintainability, compatibility, and portability. Boehm's model is similar, focusing on utility, maintainability, and portability. Standards like ISO 9001 and IEEE 730 guide how organizations manage quality throughout development. Instead of saying 'this software is good,' teams can point to specific qualities and measure them.

4:23What do you do when an old system still does important work, but it is built on outdated technology, hard to maintain, and nobody remembers how it works? You reengineer it. Software reengineering is the process of examining and redesigning an existing system to improve its quality. It usually follows a few stages. First, reverse engineering — you study the existing system to understand its design, even if the original documentation is long gone. Next comes restructuring, where you improve the internal code structure without changing what users see. Then forward engineering — you rebuild the system using modern technology. You might also do data reengineering to update the database. Reengineering is useful when replacing the system would be too risky or expensive, but it still has business value.

5:20Have you ever heard a developer say 'this module feels risky' or 'we need to improve quality'? Those feelings are useful, but numbers are better. Software metrics are quantitative measures that help teams assess quality, complexity, performance, and progress. They fall into two categories. Product metrics measure the software itself: lines of code, cyclomatic complexity — which measures how many independent paths exist through the code — defect density, and test coverage. Process metrics measure how the team works: defect removal efficiency and velocity. Why do metrics matter? They help teams find risky modules that are too complex, estimate how long work will take, track progress over time, and make objective decisions. Low test coverage, for example, is a clear warning that important code paths are not being checked.

6:17Here is a question every team should ask: where could an attacker break in? Security testing is how teams find those weak spots before the bad guys do. There are several methods, and they are usually combined. Penetration testing — or pen testing — is where ethical hackers simulate real attacks on your system. It can be black box, white box, or grey box depending on how much knowledge they start with. Vulnerability scanning uses automated tools like Nessus or OWASP ZAP to check for known weaknesses. SAST, or static application security testing, analyzes your source code without running it — it catches problems like SQL injection early in development. DAST tests the running application from the outside. And fuzz testing throws random or unexpected data at the system to trigger weird behavior. Each method catches different things, so using them together gives the best protection.

7:23DevOps — you have probably heard the term. It is a combination of development and operations, and it has transformed how teams maintain software. The core idea is to break down the wall between the people who write code and the people who run it. Practically, DevOps works through a few key practices. CI slash CD pipelines automate building, testing, and deploying software, so bug fixes and patches can reach users fast. Infrastructure as Code means environments are defined in configuration files, using tools like Terraform or Ansible, so they are consistent and reproducible. Monitoring and alerting tools like Prometheus and Grafana catch production issues immediately. And automated rollbacks mean if a deployment breaks something, the system can revert to a stable version automatically. The result is faster fixes, fewer surprises, and better collaboration.

8:22Manual testing is valuable, but it is slow and humans get tired. That is why teams use automated testing tools — software that runs tests for you, fast and consistently. Here are some of the most common ones. Selenium automates web browser testing — it can click buttons, fill forms, and check results across different browsers. JUnit and pytest are frameworks for unit testing in Java and Python. Postman and REST Assured test APIs. JMeter simulates heavy user loads for performance testing. And modern tools like Cypress and Playwright handle end-to-end testing of entire web applications. The benefits are huge. Speed — because automated tests run much faster than manual ones. Repeatability — they run the exact same way every time. Broader coverage — you can test many more scenarios. And regression safety — every change gets checked against all existing functionality automatically.

9:28Let's talk about the elephant in the room for many organizations: legacy systems. A legacy system is an old software system that is still in use, often because replacing it would be too expensive or too risky. But legacy systems come with real problems. They run on outdated technology like COBOL or FORTRAN, with few developers who still know those languages. Original documentation is often missing or inaccurate. The systems are highly coupled, so small changes can break things unexpectedly. They lack modern security features, and the original developers have long since left, taking years of knowledge with them. Strategies for dealing with legacy systems include wrapping them with APIs so modern apps can talk to them, migrating incrementally, reengineering, or full replacement. This is where documentation becomes critical. Good documentation — requirements, design docs, API references, code comments, test plans — preserves knowledge, helps new developers get up to speed, reduces errors, and makes maintenance drastically cheaper.

10:43Let's tie it all together. Software quality isn't one tool or one practice — it is a system. Maintenance keeps software current as the world changes. Testing catches defects early, when they are cheap to fix. Quality models give teams a shared language for what 'good' means. Metrics turn gut feelings into data. Security testing finds vulnerabilities before attackers do. DevOps speeds up safe delivery. Automation saves time and prevents regressions. Reengineering extends the life of valuable old systems. And documentation protects knowledge from walking out the door when team members leave. When these practices work together, software doesn't just survive — it stays healthy, reliable, and useful for years.

Ask AI about this video

Answers cite the source. Free account, no credit card.