Show 25 50 100
PDF
3 result(s) in Software Engineering with 1+ ★ Clear

Index

Showing 3 topics
  1. Software Engineering and SDLC
  2. Agile and Scrum
  3. Software Testing
1 Index

Software engineering is the systematic, disciplined approach to developing, operating and maintaining software. The SDLC (Software Development Life Cycle) is the series of phases a project goes through.

The seven SDLC phases

The seven SDLC phases

PhaseOutput
PlanningFeasibility study, cost and time estimate
Requirement analysisSRS (Software Requirements Specification)
DesignArchitecture, database design, UI design (HLD / LLD)
ImplementationSource code
TestingBug reports, tested build
DeploymentReleased product
MaintenanceBug fixes, updates, enhancements

Q & A

  1. What is software crisis?
    The problems of the 1960s-70s where projects went over budget, were late, unreliable and hard to maintain, which led to software engineering as a discipline.
2 Index

Agile builds software in short iterations, delivering working software often and welcoming changing requirements.

Agile Manifesto values:

  • Individuals and interactions over processes and tools
  • Working software over comprehensive documentation
  • Customer collaboration over contract negotiation
  • Responding to change over following a plan

Product backlog → sprint → increment

Product backlog → sprint → increment

Artifacts: Product Backlog, Sprint Backlog, Increment. Events: Sprint Planning, Daily Scrum, Sprint Review, Sprint Retrospective. Requirements are written as user stories: "As a <user>, I want <goal> so that <reason>".

Q & A

  1. Agile vs Waterfall?
    Waterfall: sequential, fixed requirements, delivery at the end, heavy documentation. Agile: iterative, requirements can change, frequent delivery, continuous customer feedback.
  2. Scrum vs Kanban?
    Scrum uses fixed-length sprints and defined roles. Kanban is a continuous flow on a board (To Do → Doing → Done) with limits on work in progress.
3 Index

Unit → Integration → System → Acceptance

Unit → Integration → System → Acceptance

Black box testingWhite box testing
Tests behaviour without seeing the codeTests internal code, paths and logic
Done by testersDone by developers
Equivalence partitioning, boundary value analysisStatement, branch and path coverage
  • Regression testing — re-test after a change to make sure nothing old broke.
  • Smoke testing — quick check that the main features work in a new build.
  • Alpha testing (inside the company) vs Beta testing (real users).
  • Verification = are we building the product right? Validation = are we building the right product?
A tiny unit test C++ 8 lines
// Function under test
int maxOf(int a, int b) { return a > b ? a : b; }

// Unit tests (boundary and normal cases)
assert(maxOf(3, 5) == 5);
assert(maxOf(5, 3) == 5);
assert(maxOf(-1, -1) == -1);
assert(maxOf(INT_MAX, 0) == INT_MAX);

Q & A

  1. What is boundary value analysis?
    Testing at the edges of valid ranges. For an age field 18–60, test 17, 18, 19, 59, 60 and 61, because bugs often hide at boundaries.
  2. Error vs defect vs failure?
    Error: a human mistake. Defect (bug): the fault in the code caused by it. Failure: the wrong behaviour seen when the defective code runs.