1/63
Looks like no tags are added yet.
Software Verification
Demonstration of consistency, completeness, and correctness of software artifacts at each stage of development. Ie, are we building the product correctly?
Software Validation
Evaluation of software’s compliance to customer requirements and needs at the end of development. Ie, are we building the right product?
Software Testing
Examination in the behavior of a program by executing the program on simple data sets
Goals of Software Testing
Demonstrate to the developer and the customer that the software meets its requirements. Discover situations in which the software’s behavior is incorrect, undesirable or does not conform to specifications
Waterfall Testing Approach
Software testing approach with manual testing only, end of phase QA with separate QA team. Bugs are found late and are expensive to fix
Agile Testing Approach
This testing approach uses automated testing, continuous integration, developer-owned tests. Bugs are found early
Unit Testing
Testing that checks the smallest units of the code, usually a single class. Most tests fall here.
Integration Testing
Testing that verify a system’s functionality or transaction. Involving multiple classes from different packages, may include external components like databases
End-to-End/System Testing
Testing that simulate a user session on the system as realistically as possible. More complex, time-consuming, and fewer in number
SUT
System Under Test. The class or system being tested.
Defect/Bug
Code that does not comply with specification
Failure
Defective code the causes incorrect behavior at runtime
Test Method
A method annotated with @Test that exercise the SUT
Fixture
The program state verified by one or more test methods, including data, objects, etc.
Test Case
A class containing one or more test methods
Test Suite
A collection of test cases executed together
Unit Tests should be…`
Fast, Independent, Repeatable, Pass/Fail, Timely
Black-Box Testing
Test behavior without knowledge of internal code. Focuses purely on input/output relationships
White-Box Testing
Test with full knowledge of internal code structure, used to design tests targeting specific paths
Non-functional Tests
Performance, Security, Scalability, and Usability. Ensure the system works well, not just correctly
Non-functional Tests
Performance, Security, Scalability, and Usability. Ensure the system works well, not just correctly
Regression Testing
Testing performed to verify that new code changes, bug fixes, or feature additions do not introduce defects into previously tested software
Software Architecture
Defines the high-level structure, components, and behavior of a system, serving as the foundational design that ensures quality attributes like security, scalability, and maintainability
Architectural Patterns
Expresses a fundamental structural organization schema for software systems and provides a set of predefined subsystems, responsibilities, and rules/guidelines for organizing the relationships between them. Ex, client-server, pipe and filter, model-view-controller.
Client-Server Architecture
Distributed system model which shows how data and processing is distributed across a range of components. The system is organized into services, with each service delivered from a separate server. Clients are users of these services and access servers to make use of them
Client-Server Architecture Use Case
Used when data in a shared database has to be accessed from a range of locations. May also be used when the load on a system is variable.
Microservice Architecture
Software is decomposed into multiple independent, loosely coupled services called microservices. Each service focuses on a specific business capability, can be developed and deployed independently, and communicates with others via lightweight protocols such as REST APIs or message brokers.
Microservice Architecture Use Case
Complex, large-scale applications, particularly cloud-native, that require frequent updates.
Pipe and Filter Architecture
Functional transformations process their inputs to produce outputs. Processes are linked using pipes, a transformation filters out the data it can process from its input data stream
Pipe and Filter Architecture Use Case
Suitable for batch process system and embedded systems where there is limited user interaction
Layered Architecture
Organize the system into a set of layers or abstract machines, each of which provide a set of services. Presentation: Top layer handling user interaction and capturing input. Business: Core layer containing business rules and workflows (service logic and API validation). Persistence/Data Access: Manages data storage and retrieval, interacts with databases. Database: The lowest layer where data is physically stored.
Layered Architecture Use Case
When building new facilities on top of existing systems, when the development is spread across several teams with each team responsibility for a layer of functionality, when there is a requirement for multi-level security
MVC Pattern
Divides the application into three interconnected components, allowing the separation of internal application logic from presentation logic and user input.
Model: Represents the data and business logic by handling data access, queries, and updates. Accesses the data persistence layer
View: The visual representation of data, everything the user can see on screen. It receives information from the model and displays it to the user in a comprehensible way, generating the UI.
Controller: Acts as an intermediary between the model and the view. Processes user inputs through the view and returns an appropriate response to the user.
MVC Pattern Flow
User interacts with View
The View processes the request and hands off to the Controller
The Controller asks the Model to provide data
The Model queries the data from the DB
The DB responds and sends data to the Model
The Model returns the data to the Controller
The Controller renders that content and hands it over to the view
The View is updated with the new data
Server-Side Rendering
A complete HTML page is generated on the server side and then sent to the client as the response. Opposed to rendering on the client-side using JavaScript. SSR improves initial page load time by delivering pre-rendered HTML to the browser.
Software
Computer programs, procedures, and possibly associated documentation and data pertaining to the operation of a computer system.
Software Development
Professional activity in which software is developed for business purposes or as software products
Software Process Activities
Software specification, software development, software validation, software evolution
Software Engineering
Application of a systematic, disciplined, quantifiable approach to the development, operation, and maintenance of software
Computer Science vs Software Engineering
Computer Science’s foundation is on mathematics and theory. Software Engineering’s foundation is on problem solving. The common thread is programming skills
Generic Software Products
Stand-alone systems that are marketed and sold to any customer who wishes to buy them. Specification and decision making are owned by the software developer
Customized Software
Software that is commissioned by a specific customer to meet their own needs. Specification is owned by the customer for the software, and they make decisions on software changes
Software Development Life Cycle
Structured lifecycle for planning, building, testing, deploying, and maintaining software
Plan-Driven (Sequential) Methodologies
Consecutive phases with heavy upfront planning. All process activities are planned in advance and progress is measured against the plan. Has the advantages of clarity, predictability, and documentation. Disadvantages of long discovery and inflexibility to late changes.
Agile Methodologies
Intended to deliver working software quickly and evolve quickly to meet changing requirements. Characterized by a flexible SDLC, tightly integrated cross-functional teams, rapid iterations, and continuous testing
Waterfall
Plan-Driven methodology that is linear and highly organized. The result of each phase of development is a document that must be signed off. The next phase does not begin until the previous completes. Phases can’t be changed, skipped, nor requirements altered when the project begins. Best for stable requirements, strict time/budget control.
V-Model
Plan-Driven methodology that extends Waterfall by incorporating parallel testing for each phase of the development cycle. Higher quality software is produced because of verification and validation at each stage, however, time and cost increases. Best for projects needing elevated reliability
Iterative
Plan-Driven methodology that focuses on refining and improving the product through repeated cycles. Each iteration is a mini-waterfall with specifications, testing, release, and evaluation. Each iteration improves the entire product, making it more complete and refined. The iteration may cycle multiple times between planning and evaluation before completing.
Incremental
Plan-Driven methodology delivered in increments, each a usable subset of functionality. Each increment goes through requirements, design, coding, testing, and deployment before incrementing again with new requirements. Best for quick market entry and modular design. Focuses on complete, usable builds.
Spiral
Plan-Driven methodology that combines elements of both iterative and incremental models. Iterates between planning, risk analysis, building, and evaluation. Strong focus on risk management. Uncertain total cost in funds and time. Best for large, risky projects with evolving requirements.
Scrum
Lightweight framework built around time-boxed sprints, inspection, and adaptation
Kanban
framework focusing on early continuous releases with an absence of pronounced iterations. Visualizes work on a board (backlog, to do, in-progress, testing, done, blocked). Great for support and maintenance
Extreme Programming
Framework for producing higher quality software quickly and adapting to customer’s changing requirements. Prioritizes work at the project management level and solicits feedback. Best for complex projects with unclear requirements and fixed deadlines. Test-first development, pair programming, collective ownership, continuous integration, refactoring, and small releases.
Rapid Application Development (RAD)
Short cycles, parallel modular development, early user testing. Heavy use of prototyping and component reuse, but needs skilled analysts and engaged users. Best for modular systems with upfront requirements.
DevOps
Operating model that combines shared ownership, automation, and continuous learning
Scrum
Framework that uses roles, events, and artifacts
Kanban
Flow-based agile framework with WIP limits
Acceptance Testing
Ensures the product fulfills business/user requirements
Test Coverage
The percentage of code executed when tests run
Iterative Prototyping
A prototype that is continuously improved until it becomes the final product
UML Class Diagram
Visual representation of a system’s classes, their attributes, methods, and the relationship among them
UML Activity Diagram
Behavioral diagram that visually represents workflows, showing actions, decisions, parallel path, and the overall control flow of a system or business process
UML Use Case Diagram
Visual representation that illustrates the interaction between users (actors) and a system
UML State Diagram
Behavioral diagram that shows the different states an object or system can be in and how it transitions between those states in response to events