Software Engineering Essentials: Development Models, UML, Testing & Maintenance
This article compiles core software engineering concepts covering development methods (structured, prototype, OO, service-oriented), models (waterfall, V-model, spiral, unified process, CMMI, agile), requirements engineering, component-based engineering, UML/SysML modeling, structured and object-oriented analysis/design, service-oriented approaches, testing types and phases, maintenance categories, and legacy system disposal principles.
Reading font

1. Software Development Methods
1.1 Structured Method
Lifecycle divided into system investigation, system analysis, system design, system implementation, and system maintenance.
Follows defined procedures and steps, uses development tools, completes required documents, and develops information systems on a structured and modular basis.
1.2 Prototype Method
Builds a quick system model using development tools based on user requirements and demonstrates it to users.
1.3 Object-Oriented Method
Models using object-oriented information such as entities, relationships, and attributes, and applies encapsulation, inheritance, and polymorphism mechanisms to construct simulations.
1.4 Service-Oriented Method
Built on classes and objects, groups related objects by business function to form the concept of components.
2. Software Development Models
2.1 Waterfall Model
Contains a series of tightly coupled activities.
Drawbacks: completeness and correctness of software requirements are hard to determine; strict serialization means requirement changes cause high loss; each phase must be fully completed with no omissions.
2.2 Prototype Model
Prototype development phase: quickly develop a prototype based on the proposed definition.
Target software development phase: after prototype confirmation, further develop the actual system.
Throwaway prototype (discarded after requirements confirmation) and evolutionary prototype (continuously refined after confirmation).
2.3 V-Model
Requirements analysis corresponds to acceptance and system testing; high-level design corresponds to integration testing; detailed design corresponds to unit testing.
2.4 Spiral Model
Software development divided into multiple phases, each consisting of four parts: objective setting, risk analysis, development and validation, and review.
2.5 Unified Process
2.5.1 Four Phases
Inception: define final product vision and business model, determine system scope.
Elaboration: establish and baseline system architecture, develop work plan and resource requirements.
Construction: build product and evolve until delivery.
Transition: deliver product to users.
2.5.2 Nine Core Workflows
Business modeling, requirements, analysis & design, implementation, test, deployment, configuration & change management, project management, environment.
2.5.3 4+1 Views
Logical view: end-user concerns about system functionality.
Implementation view: programmer concerns about system configuration, assembly, etc.
Deployment view: system engineer concerns about release, installation, topology.
Process view: system integrator concerns about performance, scalability, throughput.
Use-case view: analyst and tester concerns about system behavior.
2.5.4 Iterative and Incremental
Iteration: project divided into complete cycles, each iteration completes a specific set of functions or tasks.
Increment: functionality or product components gradually added during development.
2.6 CMMI Maturity Model
Level 1 Initial: ad hoc, chaotic, relies on individual competence.
Level 2 Managed: established goals, achieve cost, schedule, and quality targets.
Level 3 Defined: standard processes defined, project accumulation performed.
Level 4 Quantitatively Managed: quantitative goals for product quality, service quality, process performance; process performance predictable.
Level 5 Optimizing: incremental and innovative process improvement.
2.7 Agile Methods
2.7.1 Core Philosophy
Adaptive not predictive, people-oriented not process-oriented, iterative incremental development.
2.7.2 Common Agile Methods
XP: communication, simplicity, feedback, courage.
Crystal family: advocates lightweight methods, includes common core elements.
Scrum: focuses on project management, iterative incremental software development.
Feature-Driven Development (FDD): people, process, technology.
2.8 Reverse Engineering
Analyzes a target product in reverse to deduce its processing flow, organizational structure, functional characteristics, and technical specifications, producing a functionally similar but not identical product.
2.9 Cleanroom Software Engineering
2.9.1 Core Philosophy
Aims to achieve zero defects or near-zero defects through a rigorous engineered software process.
2.9.2 Technical Means
Incremental development under statistical process control.
Function-based specification and design.
Correctness verification.
Statistical testing and software certification.
3. Requirements Engineering
3.1 Requirements Development
3.1.1 Requirements Elicitation
Develop, capture, and revise user requirements through user communication, observation of existing systems, and task analysis.
Methods: user interviews, workshops, questionnaires, on-site observation, prototyping, brainstorming.
3.1.2 Requirements Analysis
Establishes a conceptual model for requirements, provides an abstract description, captures as much real-world meaning as possible.
3.1.3 Requirements Specification
Generates documented requirements description per agreed specifications; user's original requirements serve as agreement between user and developer.
3.1.4 Requirements Validation
Uses requirements specification as input to validate completeness, correctness, consistency, testability, and feasibility.
3.2 Requirements Change Management
Traceability management of requirements documents, change control, version control, etc. Change Control Board (CCB).
4. Component-Based Software Engineering
4.1 Characteristics
Composability: external interaction through publicly defined interfaces.
Deployability: binary form, runs and deploys as independent entity.
Documented: users judge component suitability via documentation.
Independence: can be assembled and deployed without other specific components.
Standardization: conforms to standardized component models.
4.2 Main Activities
System requirements overview.
Identify candidate components.
Modify requirements based on discovered components.
Architecture design.
Component customization and adaptation.
Assemble components to create system.
4.3 Component Assembly
4.3.1 Sequential Assembly
Calls existing components in sequence; can create a new component from two existing ones.
4.3.2 Hierarchical Assembly
One component directly calls services of another; the called component's interface must be compatible with the caller's interface.
4.3.3 Additive Assembly
Multiple components merged to form a new component; the new component merges original content and provides a new interface.
5. Software System Modeling
5.1 UML Language
5.1.1 UML Basic Building Blocks
1) Things
Structural things: class, interface, collaboration, use case, active class, component, artifact, node.
Behavioral things: interaction, state machine, activity.
Grouping things: package.
Annotational things: comments.
2) Relationships
Dependency: semantic relationship between two things.
Association: describes a set of links; links are connections between objects.
Generalization: specialization/generalization relationship; child shares parent's structure and behavior.
Realization: semantic relationship between classifiers.
5.1.2 UML Diagrams
Static diagrams: class diagram, object diagram, component diagram, deployment diagram, artifact diagram, package diagram, composite structure diagram.
Dynamic diagrams: use case diagram, sequence diagram, communication diagram, state diagram, activity diagram, interaction overview diagram, timing diagram.
5.1.3 UML 4+1 Views
Use-case view, logical view, process view, implementation view, deployment view.
5.2 SysML Language
5.2.1 Basic Concepts
Modeling language specifically for systems engineering, supports Model-Based Systems Engineering (MBSE) practices.
SysML consists of diagrams and metamodel. Diagrams are syntax describing system aspects; metamodel is semantics defining meaning and rules of all elements and relationships.
5.2.2 Diagram Types
Structure diagrams: describe physical and logical structure, including Block Definition Diagram (BDD) and Internal Block Diagram (IBD).
Requirements diagrams: represent relationships among system requirements, including Requirements Diagram (REQ) and Verification Diagram (V&V).
Parametric diagrams: define and track system parameters, including Parametric Diagram (PD) and Constraint Block Diagram (CBD).
Behavior diagrams: describe dynamic behavior, including Activity Diagram (AD), State Machine Diagram (SMD), Sequence Diagram (SD).
6. System Analysis and Design
6.1 Structured Method (SASD)
6.1.1 Structured Analysis
1) Data Flow Diagram (DFD)
Graphically depicts data processing processes and data flows in a business system from the perspective of data flow.
Elements: data flow, process, data store, external entity.
2) Data Dictionary
Catalog of database records and application metadata accessible to users.
Contents: data items, data structures, data flows, data stores, processes.
3) State Transition Diagram
6.1.2 Structured Design
Data-flow-oriented design, top-down, stepwise refinement, modular approach. High cohesion, low coupling.
1) High Cohesion
2) Low Coupling
6.1.3 Structured Programming
Top-down, stepwise refinement; clarity first, efficiency second; standardized writing, indentation; basic structures combined.
6.1.4 Database Design
E-R diagram: entity types, attributes, and relationships.
6.2 Object-Oriented Method
6.2.1 Object-Oriented Analysis
Basic principles: abstraction, encapsulation, inheritance, classification, aggregation, association, message passing, granularity control, behavior analysis.
Basic steps:
Identify objects and classes.
Determine structure: structure refers to complexity and abstraction relationships in problem domain.
Determine subjects: subjects are overall appearance and overall analysis model.
Determine attributes: attributes are data elements.
Determine methods: operations performed after receiving messages.
6.2.2 Object-Oriented Design
Entity class: maps each entity in requirements.
Control class: controls use case workflow.
Boundary class: encapsulates information or data flows inside/outside use case, used for system interface and external interaction.
6.2.3 Object-Oriented Development
Object-centric; program composed of objects; object + class + inheritance + polymorphism + message.
6.3 Service-Oriented Method
6.3.1 Service-Oriented Analysis
Service-centric; defines application functional modules as independent services communicating via standardized interfaces.
Define business requirements: understand required functions and performance from business requirements documents.
Identify existing automated systems: analyze enterprise systems to determine reusable or integrable functions.
Model candidate systems: use service modeling to decompose business processes into smaller steps and identify candidate operations.
Extract process control logic: abstract control logic independently to accommodate new changes.
Build candidate services: group related service operations by context; each group forms a potential service.
Apply service-oriented principles to refine candidate services: check reusability, autonomy, etc., adjust as needed.
Determine service composition: determine relationships among candidate services, select primary execution paths, check which services are invoked.
6.3.2 Service-Oriented Design
Design service interfaces: determine supported service characteristics and specifications, including inputs, outputs, exception handling.
Build service-oriented architecture: design entity services, application services, task services, process services, and define their interactions and interface specifications.
Service layering: divide services into application service layer, business service layer, process service layer to improve modularity and maintainability.
6.3.3 Service-Oriented Development
Select development platform and language: choose appropriate platform and language per designed service interfaces and specifications.
Implement services: write service code per design documents, conduct unit and integration testing to ensure correctness and stability.
Deploy services: publish tested services to runtime environments such as application servers, cloud.
Service management: operate, manage, maintain services including monitoring, fault diagnosis, performance optimization.
7. Testing and Review
7.1 Test Types
7.1.1 White-Box and Black-Box Testing
Black-box testing: designs test cases from requirements specification without considering internal structure; focuses on interface and functionality.
White-box testing: uses internal logic and information; checks if internal actions follow design specification. Common techniques: control flow analysis, data flow analysis, path analysis, program mutation. Coverage levels: statement, decision, branch, path coverage.
7.1.2 Dynamic and Static Testing
Static testing: program not executed; analyzes or inspects source statements, structure, process for errors.
Dynamic testing: executes program, compares actual results with expected, analyzes efficiency and robustness.
7.1.3 Gray-Box Testing
Between black-box and white-box; judges internal operation via symbolic phenomena or indicators.
7.1.4 Automated Testing
Software test automation; automatically runs test program under pre-set conditions.
7.2 Software Test Phases
Unit testing: tests individual modules to find functional mismatches and coding errors.
Integration testing: tests assembled modules per design standards to verify structural correctness and interface issues.
System testing: uses black-box testing to verify system meets software requirements. Includes functional, performance, robustness, install/uninstall, UI, stress, reliability, security testing.
Performance testing: uses automated tools to simulate normal, peak, abnormal loads to test performance indicators. Load testing and stress testing are subsets, often combined.
Acceptance testing: final testing before delivery; ensures user requirements or contract terms are satisfied.
8. System Operation and Software Maintenance
Maintenance types: corrective maintenance, adaptive maintenance, perfective maintenance, preventive maintenance.
9. Legacy System Disposal Principles
Integration (high level, low value), Transformation (high level, high value), Elimination (low level, low value), Inheritance (low level, high value).
10. Knowledge Summary
For questions about attribution, corrections or content rights, please contactand we will review it promptly.