Supplemental Study Guide - Semester 7, Curriculum 2025

Important Notice: This document is an original supplementary study guide created for educational purposes. It is not an official syllabus, verified TU outline, or approved course structure. The 2025 TU curriculum for BCA405-III lists the course but contains no detailed unit outline (as confirmed by the source document, PDF p. 9). All content herein is original supplemental material and should be treated as study support only. Students should refer to official course materials, lecture notes, and instructor guidance for the authoritative course structure.

Course Context

Software Testing and Quality Assurance (QA) is a critical discipline in software engineering that ensures delivered systems meet requirements, satisfy user needs, and maintain acceptable quality levels. This supplemental guide covers core QA/QC concepts, testing methodologies, lifecycle processes, and specialized topics relevant to BCA405-III, semester 7, under the 2025 curriculum. The course carries 3 credits and is offered as an elective option in the BCA program.

QA vs QC: Fundamental Distinctions

Quality Assurance (QA) and Quality Control (QC) are often used interchangeably but represent distinct activities in the software delivery pipeline:

Quality Assurance (QA) is a proactive, process-focused approach aimed at preventing defects before they enter the codebase. QA activities include:

  • Defining and standardizing development processes
  • Conducting reviews, inspections, and walkthroughs of work products
  • Establishing quality metrics and measurement frameworks
  • Creating standards for coding, documentation, and testing
  • Process improvement initiatives (e.g., CMMI, ITIL)
  • Early involvement in requirements analysis to validate feasibility and clarity

QA asks "Are we building the product right?" by focusing on the processes that produce the software. It is preventive in nature and applies throughout the entire software development lifecycle (SDLC).

Quality Control (QC) is a reactive, product-focused approach aimed at identifying defects in the developed work products. QC activities include:

  • Executing tests (unit, integration, system, acceptance) against requirements
  • Performing dynamic analysis by running code with test cases
  • Documenting defects found during testing
  • Conducting regression testing after defect fixes
  • Validating that the final product meets specified requirements

QC asks "Are we building the right product?" by verifying the actual software artifacts. It is detective in nature and typically occurs after development phases are complete or during dedicated testing phases.

The distinction is critical: QA prevents defects through process rigor; QC detects defects through systematic testing. A mature quality organization employs both QA and QC in a complementary fashion, with QA establishing the conditions under which QC can be most effective.

Verification and Validation

Verification and validation are foundational concepts in software quality that answer different but equally important questions:

Verification evaluates whether a product satisfies the conditions imposed at the start of a development phase. It asks "Are we building the product right?" Verification is:

  • Process-oriented: Focuses on documents, code, designs, and other work products
  • Static by nature: Can be performed without executing code (reviews, inspections, static analysis)
  • Phase-gated: Conducted at the end of each development phase to confirm proper completion
  • Examples: Requirements reviews, design walkthroughs, code inspections, static code analysis, checklist-based assessments

Verification activities produce work products such as review reports, inspection checklists, and compliance matrices that document conformance to specified standards.

Validation evaluates whether a product satisfies specified requirements and user needs. It asks "Are we building the right product?" Validation is:

  • Product-oriented: Focuses on the final software system and its behavior
  • Dynamic by nature: Requires executing the code with test cases to observe actual behavior
  • End-of-phase or release-gated: Typically performed after development is complete or before release
  • Examples: System testing, integration testing, user acceptance testing (UAT), performance testing, security testing

Validation produces test execution results, user feedback, and risk assessments that confirm the software meets its intended purpose.

The V-model explicitly maps verification activities to the left side (verification: requirements analysis, system design, detailed design, code modules) and validation activities to the right side (validation: integration testing, system testing, acceptance testing). This model illustrates that verification occurs early and continuously throughout development, while validation activities accumulate toward the right side, culminating in user acceptance testing.

SDLC and STLC: Structure and Relationship

The Software Development Life Cycle (SDLC) and Software Testing Life Cycle (STLC) are complementary frameworks that structure how software is built and verified:

SDLC encompasses the entire process of software creation, from initial concept through retirement. Common SDLC models include:

  • Waterfall: Sequential phases (requirements → design → implementation → verification → maintenance) with documented handoffs between phases
  • Iterative: Repeated cycles of development and verification, with incremental feature delivery
  • Agile/Scrum: Time-boxed sprints (typically 2-4 weeks) that deliver potentially shippable increments with continuous testing
  • V-Model: Explicit verification-validation pairing for each development phase
  • Spiral: Risk-driven iterative approach with prototyping and evidence-based decision points

STLC defines the specific activities required to test software effectively. Key STLC phases include:

  1. Requirement Analysis: Understanding what needs to be tested, reviewing requirements for testability, identifying gaps and ambiguities
  2. Test Planning: Defining test strategy, scope, approach, resources, schedule, and deliverables
  3. Test Design: Creating test cases, test data, test scripts, and determining automation feasibility
  4. Test Environment Setup: Configuring hardware, software, network, and data needed for testing
  5. Test Execution: Running test cases, documenting results, and logging defects
  6. Test Closure: Evaluating test completion criteria, documenting lessons learned, and releasing test artifacts

The relationship between SDLC and STLC is iterative and overlapping in modern development approaches:

  • In Waterfall, SDLC completes first, followed by a distinct STLC phase
  • In Iterative and Agile approaches, STLC activities occur within each SDLC iteration/sprint
  • Early involvement of testing in SDLC (shift-left) improves defect detection efficiency and reduces rework costs
  • Continuous Integration/Continuous Deployment (CI/CD) pipelines embed STLC activities within every code change cycle

Key insight: STLC is a subset of SDLC focused on verification and validation, but effective quality requires testing considerations throughout the entire development process, not as a separate final phase.

SDLC/STLC Integration Example

In a typical Agile project with two-week sprints:

  • Sprint planning includes defining what will be tested
  • Daily standups surface testing progress and blockers
  • Sprint demo includes testing completed user stories
  • Sprint retrospective evaluates testing effectiveness and identifies improvements
  • Release train includes comprehensive system testing and UAT before deployment

Test Levels and Types

Testing occurs at multiple levels, each with distinct objectives, scope, and focus:

Test Levels (progressive layers of testing activity):

  1. Unit Testing: Tests individual functions, methods, or classes in isolation. Typically performed by developers using white-box techniques. Objectives: verify logic correctness, ensure individual components work as designed, provide rapid feedback on code changes.

  2. Integration Testing: Tests interfaces and interactions between integrated units or modules. Objectives: verify data flows correctly between components, detect interface mismatches, confirm combined functionality works as expected. Types: big-bang, top-down, bottom-up, incremental.

  3. System Testing: Tests the complete, integrated software system against specified requirements. Objectives: verify end-to-end functionality, validate non-functional requirements (performance, security, usability), confirm the system operates in its intended environment.

  4. Acceptance Testing: Confirms the system meets user requirements and is ready for deployment. Objectives: validate business requirement compliance, obtain stakeholder sign-off, identify gaps between expectations and delivered functionality. Types: User Acceptance Testing (UAT), Business Acceptance Testing (BAT), Contract Acceptance Testing, Alpha/Beta Testing.

Test Types (categorized by focus and methodology):

  • Functional Testing: Validates that each function behaves according to requirements. Includes smoke testing (preliminary health check), sanity testing (quick verification of specific changes), regression testing (ensuring fixes don't break existing functionality).

  • Non-Functional Testing: Validates quality attributes beyond functional correctness:

    • Performance Testing: Load testing (expected volume), stress testing (beyond normal capacity), scalability testing (ability to handle growth)
    • Security Testing: Vulnerability scanning, penetration testing, configuration validation. References OWASP Top Ten for common web application risks.
    • Usability Testing: Evaluates user interface intuitiveness, learning efficiency, and user satisfaction
    • Compatibility Testing: Verifies operation across browsers, operating systems, devices, and versions
    • Reliability Testing: Measures mean time between failures (MTBF), mean time to failure (MTTF) under specified conditions
    • Maintainability Testing: Assesses ease of modification, understanding, and enhancement
  • Static Testing: Analysis without code execution (reviews, inspections, static analysis). Early defect detection, cost-effective.

  • Dynamic Testing: Execution-based testing with code running. Observes actual behavior, identifies runtime defects.

  • White-Box Testing: Uses internal knowledge of code structure, logic, and implementation. Includes statement coverage, branch coverage, path coverage, data flow analysis.

  • Black-Box Testing: Tests functionality without knowledge of internal code structure. Focuses on inputs, outputs, and behavioral expectations from the user perspective.

  • Grey-Box Testing: Combines white-box and black-box approaches. May use design documents or partial code knowledge to inform test design while primarily testing from a user perspective.

Black-Box vs White-Box Testing: Comparative Analysis

The following comparison highlights key distinctions:

Aspect Black-Box Testing White-Box Testing
Code Knowledge No internal code structure knowledge Full or partial code knowledge required
Perspective User/external behavioral view Developer/internal structural view
Test Derivation Requirements, specifications, use cases Code logic, control flow, data structures
Typical Techniques Equivalence partitioning, boundary value analysis, scenario-based Statement coverage, branch coverage, path coverage, data flow analysis
Goal Verify functionality matches requirements Verify code implements logic correctly, achieve adequate coverage
Best For Functional validation, user acceptance, system-level verification Developer unit testing, coverage analysis, early defect detection
Tool Support Test management tools, test data generators, fuzzers Coverage tools, debuggers, unit test frameworks, static analysis

Both approaches are complementary: black-box testing ensures the software meets user needs and requirements; white-box testing ensures the implementation is correct, robust, and adequately exercised. Effective test strategies employ both types at appropriate levels.

Test Design Techniques

Test design techniques improve the efficiency and effectiveness of creating test cases. Key techniques include:

Black-Box Techniques:

  • Equivalence Partitioning (EP): Divides input domain into equivalence classes where the system should behave similarly. Test one representative from each class, reducing the total number of test cases while maintaining coverage. Classes typically include one valid and one or more invalid classes.

    Example: A field accepting age 18-60 has classes: <18 (invalid), 18-60 (valid), >60 (invalid). Testing age 25 covers the valid class.

  • Boundary Value Analysis (BVA): Focuses on testing at edges of equivalence classes, as defects frequently occur at boundaries. Test values at: boundary-1, boundary, boundary+1 for each boundary point.

    Example: For age 18-60, test: 17, 18, 19, 59, 60, 61. Six test cases target the four boundary points.

  • Cause-Effect Graphing: Identifies logical relationships between inputs and outputs, then derives test cases from the graph. Useful for complex business rules with multiple interacting conditions.

  • Error Guessing: Relies on tester experience to identify likely defect-prone areas. Not systematic but valuable when combined with other techniques.

  • Partition Testing: Generalizes equivalence partitioning to more complex input spaces, including multi-dimensional parameter spaces.

White-Box Techniques:

  • Statement Coverage: Ensures every executable statement in the code is executed at least once during testing. Simple to measure but does not guarantee branch outcomes are tested.

  • Branch Coverage (Decision Coverage): Ensures both the true and false outcomes of each decision (if/else, switch, loop condition) are tested at least once. Required by standards such as DO-178C for aviation software.

  • Path Coverage: Ensures every possible execution path through a program is tested. Impractical for complex code with loops and many branches (path explosion problem).

  • Condition Coverage: Ensures each Boolean sub-expression evaluates to both true and false at least once. More thorough than statement coverage.

  • Multiple Condition Coverage: Ensures all individual conditions in a decision evaluate to true and false independently, and all combinations of conditions are tested. Very thorough but often impractical for complex logic.

Test Design Technique Selection Framework:

Scenario Recommended Technique(s)
Simple input validation EP + BVA
Complex business rules with multiple conditions Cause-effect graphing + EP + BVA
  • Safety-critical systems | Branch coverage + multiple condition coverage |
  • Rapid prototyping/early lifecycle | Error guessing + EP + BVA |
  • Regression test suite optimization | Combinatorial testing (pairwise) |
  • User interface validation | Scenario-based testing + usability heuristics |

Combinatorial Testing: Particularly pairwise (all-pairs) testing tests all possible discrete combinations of input parameters using orthogonal arrays. For n parameters each with v values, pairwise testing catches defect-inducing interactions with significantly fewer test cases than full combinatorial coverage. Orthogonal arrays of strength 2 ensure every pair of parameter values appears together at least once. Array strength refers to the strength of the orthogonal array; strength 2 covers all pairs, strength 3 covers all triples, and so on. Practical systems often use strength 2 pairwise testing, which reduces test cases from v^n to approximately O(v^2 * ln(n)).

Test Plans and Test Cases

Test Plan is a comprehensive document that defines the scope, approach, resources, and schedule of testing activities. Key components include:

  • Test Strategy: High-level approach to testing (types of testing, levels, techniques, tools)
  • Test Scope: What will be tested and what is excluded (boundaries, out-of-scope items)
  • Test Objectives: What testing aims to achieve (find defects, validate requirements, assess risk, provide quality information)
  • Test Approach: Specific methods and techniques to be used (test design techniques, automation strategy, test environment setup)
  • Resources: Personnel, hardware, software, test data, tools, and environments needed
  • Schedule: Testing timeline, milestones, duration per test phase, dependencies on development milestones
  • Deliverables: Test plan document, test cases, test scripts, test data, test environment configuration, test execution reports, defect reports
  • Risk Assessment: Identified risks, likelihood, impact, and mitigation strategies
  • Entry and Exit Criteria: Conditions that must be met before testing begins and before testing concludes
  • Defect Management: How defects will be logged, tracked, prioritized, and resolved
  • Configuration Management: Version control of test artifacts, environment configuration, and test data

Test Case is a specific, executable test designed to verify a particular requirement, functionality, or behavior. A well-designed test case includes:

  • Test Case ID: Unique identifier (e.g., TC-001, Login-001)
  • Title/Description: Clear, concise description of what the test validates
  • Preconditions: Conditions that must be true before test execution (system state, data setup, configuration)
  • Test Steps: Sequential actions to execute, described at appropriate granularity
  • Test Data: Specific inputs, values, or setup data needed for test execution
  • Expected Result: The correct/expected outcome if the software functions as designed
  • Actual Result: The observed outcome during test execution (filled during test execution)
  • Pass/Fail Criterion: Objective determination of whether the test passed or failed
  • Priority: Business priority for executing this test (critical, high, medium, low)
  • Tags/Labels: Categories for grouping (e.g., smoke, regression, UI, API, security)

Test Suite is a collection of test cases grouped by functionality, module, or testing level, executed together for efficiency and reporting. Suites may be organized by:

  • Feature area (e.g., "Checkout Suite," "Login Suite")
  • Testing level (e.g., "Unit Test Suite," "System Test Suite")
  • Priority (e.g., "Critical Path Tests," "Regression Pack")
  • Test type (e.g., "Performance Test Suite," "Security Test Suite")

Traceability Matrix links requirements to test cases and test results, ensuring all requirements are tested and test results can be traced back to specific requirements. A typical traceability matrix includes columns: Requirement ID, Requirement Description, Test Case ID, Test Result (Pass/Fail), Defect ID (if failed), and Verification Status.

Defect Lifecycle

The defect lifecycle (also called bug lifecycle) tracks a defect from discovery through resolution and closure. A typical lifecycle includes these states:

  1. New: Defect is first logged/logged by tester, customer, or stakeholder. Initial information includes summary, description, steps to reproduce, severity, priority, and environment details.

  2. Assigned: Triage team (test lead, project manager, development lead) evaluates the defect and assigns it to the responsible developer or team. The defect may be prioritized against other defects in the backlog.

  3. Open: Developer actively works on the defect: analyzes the root cause, identifies the code change needed, and implements the fix.

  4. Fixed: Developer has made the code change and believes the defect is resolved. The code is checked into the version control repository.

  5. Retested: Tester re-runs the original test case(s) with the fix applied to verify the defect is resolved. Additional related test cases may be run to check for rippling effects.

  6. Verified: Tester confirms the defect is genuinely resolved and no new issues were introduced. The tester may perform additional validation to ensure the fix is complete and correct.

  7. Closed: Tester marks the defect as closed in the tracking system with a resolution type:

    • Fixed: Defect resolved and verified
    • Not-a-defect: Issue is not actually a defect (misunderstanding, feature request, environmental issue)
    • Won't-fix: Defect acknowledged but not scheduled for fix (by design, low priority, resource constraints)
    • Duplicate: Same defect already logged elsewhere
    • Deferred: Defect acknowledged but scheduled for future resolution
  8. Reopened: If verification fails (the fix doesn't resolve the issue or introduces new defects), the defect reopens from step 3 or an earlier state. Reopening may also occur if the original defect description was incomplete and additional information emerges.

Defect Attributes documented for each defect include:

  • Summary: Brief description of the issue
  • Description: Detailed steps to reproduce, expected behavior, actual behavior
  • Steps to Reproduce: Numbered list of actions that trigger the defect
  • Severity: Technical impact on system operation (critical, major, minor, cosmetic)
  • Priority: Business urgency to fix (critical, high, medium, low)
  • Module/Area: Component or functionality where the defect was found
  • Environment: OS, browser, hardware, database version, configuration
  • Reporter: Person who discovered and logged the defect
  • Assignee: Person responsible for resolving the defect
  • Root Cause: Analysis of why the defect occurred (if determined)
  • Resolution: Outcome (fixed, not-a-defect, wont-fix, etc.)
  • Verification Results: Test results confirming resolution

Defect Metrics help assess testing effectiveness and product quality:

  • Defect Density: Defects per KLOC (thousand lines of code) or per function point
  • Defect Discovery Rate: Defects found over time (early vs. late in lifecycle)
  • Defect Removal Efficiency: Percentage of defects found and removed relative to total defects present
  • Average Resolution Time: Time from defect discovery to closure
  • Reopen Rate: Percentage of defects that are reopened after closure
  • Defect Distribution: Defects by severity, priority, module, phase of discovery

Automation Concepts and CI Integration

Test Automation uses specialized software to control test execution and compare actual outcomes with predicted outcomes. Automation improves test efficiency, coverage, and repeatability, but requires careful feasibility assessment.

Automation Feasibility Assessment evaluates whether the cost and effort of automation are justified by expected benefits. Automate when:

  • The test is repetitive and runs frequently (e.g., on every build, nightly)
  • The test involves large data sets or complex calculations
  • The test covers critical business paths that must work correctly
  • The stable UI avoids frequent changes (frequent UI changes create brittle tests)
  • The test is difficult or time-consuming to perform manually
  • The test provides consistent, objective results (vs. subjective human judgment)

Do NOT automate when:

  • The test is exploratory or ad-hoc (requires human judgment and creativity)
  • The UI changes frequently (creates maintenance burden)
  • The test is a one-time validation (not worth automation investment)
  • The test involves visual/UX assessment (color, layout, spacing)
  • The test requires human judgment (usability, accessibility evaluation by people with disabilities)
  • The setup cost exceeds the long-term benefit (rarely used, low-frequency tests)

Popular Automation Tools and Frameworks:

Domain Tools
Web UI Selenium WebDriver, Cypress, Playwright, TestCafe
Mobile Appium, Espresso (Android), XCUITest (iOS)
Unit Testing JUnit (Java), pytest (Python), NUnit (C#), Mocha/Chai (JavaScript)
API Testing Postman, RestAssured, SuperTest, SoapUI
Hybrid/BDD Cypress with Cucumber, Playwright with Playwright Test, Robot Framework

Framework Design Patterns:

  • Page Object Model (POM): Encapsulates page elements and actions within page classes, reducing code duplication and improving maintainability when UI changes occur.
  • Data-Driven Framework: Separates test logic from test data; test scripts read data from external sources (Excel, CSV, JSON, databases) to execute the same test scenario with different inputs.
  • Keyword-Driven Framework: Uses keywords (actions like "click," "input," "verify") stored in data files or tables, with framework code mapping keywords to implementation. Enables non-technical stakeholders to create test cases.
  • Modular Framework: Breaks the application under test into modules, each with its own test scripts. A master script orchestrates module execution. Good for large, complex applications.
  • Hybrid Framework: Combines elements of multiple patterns (e.g., POM + data-driven) to balance maintainability, readability, and flexibility.

Continuous Integration (CI) Integration:

CI integrates automated testing into the code change pipeline, ensuring that every commit is verified before merging. Typical CI pipeline stages:

  1. Code Commit: Developer pushes code to version control (Git, GitHub, GitLab)
  2. Build: Compile code, resolve dependencies, generate artifacts
  3. Unit Test Execution: Run unit test suite automatically; fail build on significant failures
  4. Static Analysis: Run linting, security scanning, code quality checks
  5. Integration Test Execution: Run integration tests against built artifact
  6. Deployment to Test Environment: Deploy to a dedicated test/staging environment
  7. System/Regression Test Execution: Run broader test suite in the test environment
  8. Reporting: Generate test reports, coverage metrics, trend data
  9. Notification: Alert team of build success/failure, critical defects
  10. Decision: Merge, reject, or request changes based on test results

CI Benefits:

  • Immediate feedback on code quality and regression risk
  • Reduced integration risk by catching defects early
  • Faster release cycles with confidence in quality
  • Documentation of test results and trends over time
  • Reduced manual testing effort and human error

CI Challenges:

  • Test maintenance overhead as code evolves
  • Flaky tests that intermittently fail without code changes
  • Test environment inconsistencies between CI and production
  • Balancing test speed vs. thoroughness
  • Initial setup cost and tooling investment

Metrics and Risk-Based Testing

Quality Metrics provide measurable data about software quality and testing effectiveness:

  • Defect Density: Number of confirmed defects divided by size measure (KLOC, function points, modules). Helps compare quality across deliverables or over time. Industry benchmark: 0.5-5 defects/KLOC for typical business software; significantly higher may indicate quality concerns.

  • Fault Rate: Defects detected per unit of testing effort or time. Tracks testing productivity and defect discovery patterns.

  • Test Coverage: Percentage of code or requirements exercised by the test suite.

    • Line coverage: Percentage of executable lines run at least once
    • Branch coverage: Percentage of true/false branch outcomes tested
    • Path coverage: Percentage of execution paths tested (often < 10% for non-trivial code)
    • Requirement coverage: Percentage of requirements having at least one associated test case
    • Aim high, but recognize: 100% coverage does not guarantee quality; poor test design can achieve high coverage with low effectiveness.
  • Mean Time Between Failures (MTBF): Average time between successive failures of a repairable system during normal operation. Reliability metric for systems that are repaired and returned to service.

  • Mean Time To Failure (MTTF): Average time to the first failure of a non-repairable system. Reliability metric for components that are replaced upon failure.

  • Mean Time To Repair (MTTR): Average time required to diagnose and repair a failed component and return it to service. Maintainability metric.

  • Escaped Defects: Defects found in production that were not detected during testing. Tracks testing effectiveness and identifies gaps.

  • Test Effectiveness: Ratio of defects found during testing to total defects (including escaped defects). High coverage but low effectiveness indicates poor test design.

  • Pass/Fail Ratio: Percentage of test cases that pass versus fail. Track over time to identify trends, but interpret with caution (a high pass rate may indicate insufficient testing, not high quality).

Risk-Based Testing prioritizes testing efforts based on the likelihood and impact of defects, ensuring critical areas receive appropriate attention given limited time and resources:

  1. Risk Identification: Identify potential defects, failures, or non-functional issues through:

    • Historical data (defect patterns from similar projects)
    • Code complexity metrics (cyclomatic complexity, high-risk modules)
    • Business impact analysis (what failures cause most harm)
    • Requirements volatility (frequently changing requirements)
    • New technology or unfamiliar components
    • Security, privacy, or compliance concerns
  2. Risk Assessment: Evaluate each identified risk by:

    • Likelihood: Probability the risk will manifest (high, medium, low)
    • Impact: Severity if the risk materializes (critical, major, minor, cosmetic)
    • Risk Priority Number (RPN): Likelihood × Impact score for prioritization
  3. Test Prioritization: Allocate testing resources to address highest-risk areas first:

    • Test critical business paths early in the test cycle
    • Apply more thorough test design techniques to high-risk areas
    • Allocate more test data and environment resources to critical functions
    • Plan early automation for high-risk, frequently executed tests
    • Document risk assumptions and mitigations for stakeholder visibility
  4. Risk Coverage Matrix (example format):

Risk ID Description Likelihood Impact Priority Test Coverage Approach
R-001 Payment processing failure High Critical P0 Full boundary value analysis, edge case testing
R-002 Memory leak in data processing Medium Major P1 Stress testing, long-running execution monitoring
R-003 UI layout breakage on mobile High Minor P2 Cross-device testing, responsive design validation
R-004 Data privacy breach via API Low Critical P0 Security testing, input validation, fuzz testing

Swipe to see all columns

Risk-Based Testing Benefits:

  • Maximizes defect detection per testing hour
  • Provides stakeholders with transparent risk assessment
  • Ensures critical business functions receive appropriate testing attention
  • Enables informed trade-off decisions when testing time is limited
  • Supports release go/no-go decisions based on assessed risk

Risk-Based Testing Challenges:

  • Requires accurate risk assessment (subjective elements possible)
  • Risk priorities may change during the project
  • Over-reliance on risk assessment may miss unexpected defect areas
  • Stakeholder agreement on risk priorities may be difficult to achieve

Accessibility, Security, and Performance Testing

Accessibility Testing ensures software is usable by people with diverse abilities and disabilities. Key focus areas:

  • Screen reader compatibility: Verify content is properly structured with semantic HTML, meaningful alt text, and logical heading hierarchy for assistive technologies.
  • Keyboard navigation: Ensure all functionality is operable via keyboard alone (no mouse-dependent interactions), with logical tab order and visible focus indicators.
  • Color contrast: Verify text and UI element contrast ratios meet WCAG AA (4.5:1 for normal text, 3:1 for large text) or AAA (7:1, 4.5:1) standards.
  • Alternative text: Provide descriptive alt text for meaningful images; decorative images should have empty alt attributes.
  • ARIA landmarks and roles: Use appropriate ARIA labels and roles where native HTML is insufficient, avoiding unnecessary or incorrect ARIA usage.
  • Font size and resizing: Ensure content remains usable and functional when users increase font size up to 200% without loss of content or functionality.
  • Language identification: Properly mark document language using lang attribute for screen reader pronunciation.

Accessibility Standards: WCAG (Web Content Accessibility Guidelines) 2.1/2.2 provides four principles: Perceivable, Operable, Understandable, and Robust. Each principle has guidelines and success criteria at levels A (minimum), AA (mid), and AAA (highest). Many jurisdictions have legal requirements for accessibility compliance (ADA in the US, Equality Act in the UK, EEA in EU).

Security Testing identifies vulnerabilities and ensures the software protects data and functionality from unauthorized access, modification, or denial of service:

  • OWASP Top Ten (2021): The most critical web application security risks, including:

    1. Broken Access Control: Improper enforcement of user permissions
    2. Cryptographic Failures: Inadequate encryption or protection of sensitive data
    3. Injection: SQL injection, OS command injection, LDAP injection, etc.
    4. Insecure Design: Security deficiencies in design decisions
    5. Security Misconfiguration: Default credentials, unnecessary features, outdated components
    6. Vulnerable and Outdated Components: Known CVEs in third-party libraries
    7. Identification and Authentication Failures: Weak password policies, session management issues
    8. Software and Data Integrity Failures: Untrusted code execution, CI/CD pipeline tampering
    9. Security Logging and Monitoring Failures: Inadequate logging, alerting, and incident response
    10. Server-Side Request Forgery (SSRF): Forced unwanted requests from the server
  • Penetration Testing: Controlled, authorized attack simulation to identify exploitable vulnerabilities. Types: network penetration testing, web application penetration testing, wireless network testing, social engineering testing.

  • Vulnerability Scanning: Automated scanning of systems, networks, or applications for known vulnerabilities using tools (Nessus, OpenVAS, Burp Suite, Snyk). Less thorough than penetration testing but can be performed more frequently.

  • Security Testing Techniques:

    • Fuzz Testing: Providing unexpected, random, or malformed inputs to identify crashes or security failures
    • Static Application Security Testing (SAST): Analyzing source code for security vulnerabilities without execution
    • Dynamic Application Security Testing (DAST): Testing running applications for vulnerabilities from an external perspective
    • Interactive Application Security Testing (IAST): Combines SAST and DAST instrumentation within running application
    • Software Composition Analysis (SCA): Identifies known vulnerabilities in third-party and open-source components
  • Security Testing in SDLC: Integrate security testing early (shift-left): threat modeling during design, SAST during coding, DAST during system testing, and regular penetration testing before major releases.

Performance Testing evaluates system behavior under various workload conditions:

  • Load Testing: Measures system performance under expected user load. Objectives: verify the system handles anticipated traffic, identify performance bottlenecks, confirm response time meets SLAs.

  • Stress Testing: Pushes the system beyond normal operational capacity to identify breaking points and failure modes. Objectives: understand how the system fails, ensure graceful degradation, validate failover and recovery mechanisms.

  • Scalability Testing: Evaluates how the system performs as workload increases (more users, more data, more transactions). Objectives: determine scaling requirements, identify scaling bottlenecks, plan capacity growth.

  • Endurance (Soak) Testing: Runs the system under normal load for an extended period (hours to days) to identify memory leaks, resource exhaustion, and performance degradation over time.

  • Spike Testing: Sudden increases in workload beyond normal expectations, then back to baseline, to test system stability under extreme conditions.

  • Performance Metrics:

    • Response Time: Time from request to first byte (TTFB), time to interactive, full page load time
    • Throughput: Number of requests/transactions per unit time
    • Error Rate: Percentage of requests resulting in errors
    • Resource Utilization: CPU usage, memory consumption, disk I/O, network bandwidth
    • Concurrent Users: Number of users the system supports simultaneously
  • Performance Testing Tools: Apache JMeter, Gatling, Locust, k6, LoadRunner, WebLoad.

  • Performance Testing in CI: Integrate performance tests into CI pipelines for regression detection. Use headless browsers, mocked services, or lightweight performance monitors to keep pipeline execution time reasonable.

Ethical Issues in Software Testing

Software testing carries ethical responsibilities testers and test organizations must uphold:

Honesty and Integrity: Report test results accurately, including defects found and not found. Do not conceal defects, pressure testers to pass failing tests, or manipulate results to achieve desired outcomes. Test effectiveness is measured by defect detection, not by pass rates.

Competence: Testers should only perform testing activities within their knowledge and skill level. Request appropriate training or guidance for unfamiliar testing types, technologies, or domains. Misrepresenting competence undermines test credibility and may miss critical defects.

Confidentiality: Handle sensitive data (personal information, financial data, trade secrets) with care during testing. Anonymize or mask sensitive data in test cases and reports. Follow organizational policies and applicable requirements.

Objectivity: Approach testing without bias toward particular outcomes. Do not let stakeholder pressure, personal feelings, or organizational politics influence defect classification or priority. Evaluate evidence fairly and document rationale for all decisions.

Responsibility: Testers have a responsibility to speak up when quality concerns arise, even when it is uncomfortable. Report serious safety/security issues to appropriate authorities. Do not remain silent about known defects that could harm users or society.

Accessibility Ethics: Prioritize inclusive design and testing that considers diverse user needs. Do not treat accessibility as a "nice-to-have" or compliance checkbox; recognize that inaccessible software excludes people with disabilities from essential services and opportunities.

Intellectual Property: Respect software licenses, copyrights, and proprietary information when creating test cases, using test data, or sharing testing knowledge. Do not reverse-engineer or disclose proprietary algorithms, protocols, or data formats beyond what is necessary for testing.

User Advocacy: Testers serve as user advocates, ensuring the delivered software meets user needs and does not cause harm. This includes considering not just stated requirements but also implicit user expectations, edge cases, and potential misuse scenarios.

Ethical Guidelines referenced by testing professionals:

  • ACM Code of Ethics and Professional Conduct
  • IEEE Code of Ethics
  • Association for Software Testing ethical principles
  • Organization-specific codes of conduct and compliance frameworks

Example Project Test Suite: E-Commerce Order Management System

Project Context: A web-based e-commerce platform enabling customers to browse products, add items to a cart, proceed to checkout, and complete purchases. The system includes product catalog, shopping cart, payment processing, order management, and user account features.

Test Strategy: Risk-based approach focusing on critical business paths (payment processing, order creation), with automated regression suite for frequent execution and manual exploratory testing for edge cases and usability.

Test Levels Applied:

  • Unit Testing: Individual functions (calculate total, validate credit card format, update inventory)
  • Integration Testing: Product-to-cart flow, cart-to-checkout transition, payment gateway integration
  • System Testing: End-to-end order placement, email notifications, order status tracking, inventory allocation
  • Acceptance Testing: User Acceptance Testing with representative customers, business requirement validation

Automation Scope:

  • Automated: Regression test suite (pytest + Playwright), API tests for payment gateway (Postman/RestAssured), smoke tests on every commit
  • Manual: Exploratory testing, usability evaluation, one-time validation of new features, visual regression checks

Test Design Techniques Applied:

  • Equivalence partitioning and boundary value analysis for input validation (price fields, quantity limits, discount percentages)
  • Boundary values for cart quantity (0, 1, max allowed, one above max)
  • Pairwise testing for combinations of product type, discount code, and shipping option
  • State transition testing for order status progression (new → confirmed → processing → shipped → delivered → completed/cancelled)

Sample Test Cases:

TC ID Title Preconditions Test Steps Expected Result Priority
TC-001 Valid order placement User logged in, items in cart 1. Add item to cart 2. Proceed to checkout 3. Enter valid shipping details 4. Enter valid payment info 5. Submit order Order confirmed, email sent, inventory reduced, order appears in user account Critical
TC-002 Expired credit card Items in cart 1. Enter expired card number 2. Submit payment Error message: "Card has expired, please provide a valid card." High
TC-003 Insufficient stock Item with 2 in stock, customer adds 5 1. Add 5 to cart 2. Proceed to checkout 3. Submit order Error: "Only 2 items available, please adjust quantity." Maximum purchase of 2 allowed. High
TC-004 Invalid promo code Items in cart, valid promo available 1. Apply invalid code "XYZ" Error: "Promo code not found or invalid." Medium
TC-005 Guest checkout No user account 1. Select guest checkout 2. Enter email and shipping 3. Complete purchase Order confirmed without account creation; order appears in history if enabled Medium
TC-006 Password complexity Registration form 1. Enter password <8 characters 2. Submit registration Error: "Password must be at least 8 characters." Medium
TC-007 Password with special characters Registration form 1. Enter password with @#$% characters 2. Submit registration Successful registration if requirements met Low
TC-008 Password reset flow Forgot password link 1. Click "Forgot Password" 2. Enter registered email 3. Check email for reset link 4. Reset password via link Reset email received, password reset link works, new password grants login High
TC-009 Search functionality Products available 1. Enter search term "laptop" 2. Verify results display matching products Relevant products displayed; no results message if no match Low
TC-010 Order history visibility Completed orders exist 1. Navigate to order history 2. Verify order list displays Order history shows all completed orders with details and status Low

Swipe to see all columns

Defect Examples from Project:

  1. Defect D-001: Promo code "SAVE10" applies 15% discount instead of 10%. Severity: High (financial impact), Priority: P0 (must fix before release). Root cause: Incountal calculation logic error. Resolution: Fixed discount calculation formula; retested all promo code scenarios.

  2. Defect D-002: Order confirmation email contains placeholder text "{order_number}" instead of actual order number. Severity: Medium (customer confusion), Priority: P2 (fix in next cycle). Root cause: Email template variable not populated. Resolution: Fixed template rendering; verified across email clients.

  3. Defect D-003: Admin can delete orders via URL manipulation that regular users cannot. Severity: Critical (data integrity), Priority: P0 (security fix). Root cause: Missing access control check. Resolution: Implemented proper authorization check; retested with various user roles.

Test Execution Summary (representative snapshot):

Metric Value
Total Test Cases 125
Automated Test Cases 87
Manual Test Cases 38
Tests Executed 112
Passed 96 (85.7%)
Failed 16 (14.3%)
Blocked 0
Defects Logged 23
Defects Fixed 18
Defects Reopened 3
Requirement Coverage 92%
Test Execution Time (automated) 45 minutes
Production Escaped Defects (post-release) 2

Lessons Learned:

  • Pairwise testing for parameter combinations caught 3 defects that single-variable testing missed
  • Early automation of critical path regression tests provided immediate feedback on each commit
  • Accessibility testing identified color contrast issues missed by functional testing alone
  • Production escaped defects highlighted need for more thorough security testing in future projects

Solved Labs and Worked Examples

Lab 1: Equivalence Partitioning and Boundary Value Analysis

Problem: Design test cases for a temperature control system that accepts values from 16°C to 30°C, with the following rules:

  • Values below 16°C: Display "Too Cold" and turn on heating
  • Values 16-30°C: Display current temperature and maintain current mode
  • Values above 30°C: Display "Too Hot" and turn on cooling

Solution:

Step 1: Identify input parameters and valid ranges

  • Parameter: Temperature setting (min 16°C, max 30°C)

Step 2: Apply Equivalence Partitioning

  • Invalid class 1: Temperature < 16°C (e.g., 10°C, 15°C)
  • Valid class: 16°C ≤ Temperature ≤ 30°C (e.g., 16°C, 20°C, 25°C, 30°C)
  • Invalid class 2: Temperature > 30°C (e.g., 31°C, 35°C)

Step 3: Apply Boundary Value Analysis Boundary values for the single boundary point (16°C and 30°C):

  • Below boundaries: 15°C (just below 16°C), 10°C (well below)
  • At boundaries: 16°C (minimum), 30°C (maximum)
  • Above boundaries: 31°C (just above 30°C), 35°C (well above)

Step 4: Combine into test cases

TC ID Temperature Expected Behavior
TC-01 14 FAIL - "Too Cold", heating on (below minimum)
TC-02 15 FAIL - "Too Cold", heating on (one below minimum)
TC-03 16 PASS - displays temperature, maintains mode (at minimum)
TC-04 20 PASS - displays temperature, maintains mode (within valid range)
TC-05 29 PASS - displays temperature, maintains mode (within valid range)
TC-06 30 PASS - displays temperature, maintains mode (at maximum)
TC-07 31 FAIL - "Too Hot", cooling on (one above maximum)
TC-08 35 FAIL - "Too Hot", cooling on (above maximum)

Intermediate Steps Explained:

  1. Equivalence partitioning reduced the infinite temperature space to three classes. Testing one representative from each class is sufficient to validate the class behavior.
  2. Boundary value analysis targets the critical transition points. Defects frequently occur at the exact boundary, so testing 15 (just below 16) and 31 (just above 30) captures edge defects.
  3. The four valid-region test cases (16, 20, 29, 30) confirm the system maintains mode within the valid range, while the boundary test cases verify correct behavior at the transitions.

Expected Result: TC-03, TC-05, TC-06 should pass (within valid range or at boundaries). TC-01, TC-02, TC-07, TC-08 should fail with appropriate "Too Cold"/"Too Hot" messages and correct heating/cooling activation.

Syntax Reference:

  • Equivalence Partitioning: [invalid, valid, invalid] classes based on expected behavior
  • Boundary Value Analysis: Test at boundary-1, boundary, boundary+1 for each boundary point

Lab 2: Defect Lifecycle Simulation

Scenario: A tester discovers a defect in the login module during system testing.

Lifecycle Progression:

  1. New: Tester logs defect with summary "Login fails with valid credentials after password reset," severity: High, priority: P0, steps to reproduce provided, environment: Chrome 120, Windows 11.
  2. Assigned: Triage assigns to lead developer, who acknowledges and begins investigation.
  3. Open: Developer analyzes code, identifies the bug: password reset token expires before login flow completes. Creates fix.
  4. Fixed: Developer implements change, writes unit test to prevent regression, checks in code.
  5. Retested: Tester re-runs the login test with a fresh reset token. Test passes.
  6. Verified: Tester runs additional test cases: login with expired token (should fail gracefully), login with valid token (should succeed), password reset with multiple attempts. All pass.
  7. Closed: Tester marks defect closed with resolution "Fixed," resolution type: fixed. Defect tracking system updated.

Reopened Scenario: After closure, a tester discovers the fix only works with the first password reset attempt. Second and subsequent reset attempts still fail. The defect reopens from step 3, with new information added: "Subsequent reset attempts after the first fail due to token reuse prevention logic."


Lab 3: Pairwise Test Generation for Login Form

Problem: A login form has three parameters:

  • Username length: 4-20 characters
  • Password length: 6-30 characters
  • Remember me: Yes/No

Solution Using Pairwise Testing:

For 3 parameters with 2-5 values each, pairwise testing generates significantly fewer test cases than full combinatorial coverage.

Full combinatorial: 5 × 5 × 2 = 50 test cases Pairwise (all-pairs): Approximately 12-15 test cases (exact number depends on orthogonal array)

Generated Pairwise Test Cases:

TC ID Username Length Password Length Remember Me Expected Result
TC-01 6 8 No Login succeeds with valid credentials
TC-02 6 8 Yes Login succeeds; preference remembered
TC-03 6 20 No Login succeeds
TC-04 6 20 Yes Login succeeds; preference remembered
TC-05 15 8 No Login succeeds
TC-06 15 8 Yes Login succeeds; preference remembered
TC-07 15 20 No Login succeeds
TC-08 15 20 Yes Login succeeds; preference remembered
TC-09 20 6 No Login succeeds (boundary username length)
TC-10 20 6 Yes Login succeeds; preference remembered
TC-11 4 30 No Login succeeds (boundary values)
TC-12 4 30 Yes Login succeeds; preference remembered

Swipe to see all columns

Analysis: These 12 test cases cover all possible pairs of parameter values:

  • Username length & password length: all combinations covered
  • Username length & remember me: all combinations covered
  • Password length & remember me: all combinations covered

Pairwise testing caught defect-inducing interactions between parameters while reducing test cases from 50 to 12 (75% reduction).


Lab 4: Traceability Matrix Construction

Scenario: A small system with three requirements and associated test cases.

Requirements:

  • REQ-001: User must be able to reset password via email
  • REQ-002: System must lock account after 3 failed login attempts
  • REQ-003: Admin must be able to view user activity logs

Traceability Matrix:

Requirement ID Requirement Description Test Case ID Test Steps Expected Result Test Result Defect ID
REQ-001 User must be able to reset password via email TC-008 1. Click "Forgot Password" 2. Enter registered email 3. Check email 4. Follow reset link Reset email received, link works, password reset successfully Pass —
REQ-002 System must lock account after 3 failed login attempts TC-001 1. Attempt login with invalid password 3 times 2. Wait 30 seconds Account locked, lockout message displayed Pass —
REQ-003 Admin must be able to view user activity logs TC-013 1. Log in as admin 2. Navigate to activity logs 3. Filter by user 4. Verify log entries display Log entries for specified user displayed correctly Pass —

Swipe to see all columns

Analysis: All three requirements have at least one associated test case, ensuring complete requirements coverage. If a new requirement is added, the matrix can be extended. If a test case fails, the defect ID column traces the failure back to the specific requirement.


Lab 5: Risk-Based Test Prioritization

Project: Inventory management system for a retail chain. Five identified risks with associated test approaches:

Risk ID Description Likelihood Impact Risk Priority Test Approach
R-001 Inventory oversell (sell more than available) High Critical P0 Full boundary value analysis for quantity fields, concurrent user testing, order reservation validation
R-002 Price display rounding error (floating point) Medium Major P1 Boundary value analysis for price fields, currency conversion testing, edge case calculations ($0.01, $0.02, etc.)
R-003 Shipping cost miscalculation for remote areas Low Major P1 Boundary values for weight/distance, carrier API integration testing, manual verification for remote postal codes
R-004 Payment gateway timeout (network failure) Medium Major P1 Negative testing (timeout scenarios), retry logic validation, fallback to alternative payment method
R-005 Report export generates incomplete data Low Minor P2 Boundary values for export parameters, data volume testing (large datasets), comparison with source data

Swipe to see all columns

Prioritized Test Execution Order:

  1. R-001 tests first (high likelihood, critical impact — highest risk to business)
  2. R-002 and R-003 next (medium/low likelihood but major impact)
  3. R-004 (medium likelihood, major impact — but mitigated by fallback mechanisms)
  4. R-005 last (low likelihood, minor impact — if time permits)

Result: Within a 4-hour testing window, the team executed R-001 through R-004 tests completely, and began R-005 testing. All critical and high-priority risks were addressed, providing stakeholders with risk coverage assessment for go/no-go release decision.


Glossary of Key Terms

Term Definition
Static Testing Software analysis performed without executing the code; includes reviews, inspections, walkthroughs, and static analysis tools. Used to detect defects early in the lifecycle.
Dynamic Testing Software testing performed by executing the code with specific test cases to observe actual behavior and identify defects. Includes unit, integration, system, and acceptance testing.
Verification The process of evaluating whether a product satisfies the conditions imposed at the start of a development phase. Answers "Are we building the product right?" Focuses on documents, code, and intermediate work products.
Validation The process of evaluating a product during or at the end of the development process to determine whether it satisfies specified requirements. Answers "Are we building the right product?" Focuses on the final product and user needs.
Defect (Bug, Fault, Error) An abnormal condition in software that causes it to behave unexpectedly or incorrectly; the discrepancy between expected and actual results.
Severity The degree of impact a defect has on system operation, categorized typically as critical, major, minor, or cosmetic.
Priority The order in which a defect should be fixed, based on business impact and urgency; priority may differ from severity (e.g., a cosmetic issue on a critical path may have high priority).
Test Case A set of inputs, execution preconditions, event steps, and expected outcomes developed for a particular objective, such as to exercise a program path or verify compliance with a requirement.
Test Suite A collection of test cases grouped by functionality, module, or testing level, executed together for efficiency and reporting.
Regression Testing Re-running previously passed tests to ensure that recent code or configuration changes have not introduced new defects or broken existing functionality.
Test Coverage A metric expressing the degree to which the source code or requirements are exercised by a test suite; expressed as percentage of lines, branches, paths, or requirements.
Mean Time Between Failures (MTBF) The average time elapsed between successive failures of a repairable system during normal operation; used as a reliability metric.
Mean Time To Failure (MTTF) The average time to the first failure of a non-repairable system; reliability metric for components that are replaced rather than repaired.
Test Automation The use of special software to control the execution of tests and compare actual outcomes with predicted outcomes, increasing test efficiency, coverage, and repeatability.
Equivalence Partitioning A black-box test design technique that divides the input domain into equivalence classes where the system should behave similarly; testing one representative from each class reduces test cases while maintaining coverage.
Boundary Value Analysis A test design technique that focuses on testing at the edges of equivalence classes, as off-by-one and boundary-related defects are common.
Black-Box Testing Testing that focuses on functionality without knowledge of internal code structure. Focuses on inputs, outputs, and behavioral expectations from the user perspective.
White-Box Testing Testing that uses internal knowledge of code structure, logic, and implementation to guide test creation. Includes statement coverage, branch coverage, path coverage.
Traceability Matrix A document that links requirements to test cases and test results, ensuring all requirements are tested and test results can be traced back to specific requirements for audit and reporting purposes.
Defect Lifecycle The sequence of states a defect goes through from discovery to closure: New → Assigned → Open → Fixed → Retested → Verified → Closed (with possible reopening).
SDLC (Software Development Life Cycle) The complete process of software creation, from initial concept through retirement, encompassing all development phases and activities.
STLC (Software Testing Life Cycle) The specific activities required to test software effectively: requirement analysis, test planning, test design, test environment setup, test execution, and test closure.
CI (Continuous Integration) A development practice where code changes are automatically built, tested, and verified upon each commit, ensuring that every integration is verified and defects are caught early.
QA (Quality Assurance) A proactive, process-focused approach aimed at preventing defects before they enter the codebase. Establishes standards, processes, and metrics to ensure quality throughout the SDLC.
QC (Quality Control) A reactive, product-focused approach aimed at identifying defects in developed work products. Executes tests, documents defects, and validates that the final product meets requirements.
OWASP Top Ten A regularly updated list of the most critical web application security risks, including injection, broken authentication, sensitive data exposure, and other common vulnerabilities.
WCAG (Web Content Accessibility Guidelines) A globally recognized standard for making web content accessible to people with disabilities, with four principles: Perceivable, Operable, Understandable, and Robust.
USABILITY The ease with which users can learn and use a software system to achieve their goals, encompassing efficiency, effectiveness, and satisfaction in a specified context of use.

Review Questions and Answers

Short Answer Questions

  1. Define the pesticide paradox in software testing.

    • Model Answer: The pesticide paradox observes that repeatedly running the same test suite will eventually stop finding new defects, as the tests adapt to existing bugs but miss new ones. Remedy: regularly review and update test cases, apply new test design techniques, and use random or exploratory testing.
  2. What is the difference between severity and priority of a defect?

    • Model Answer: Severity measures the technical impact of a defect on system operation (critical: crashes system, major: major feature broken, minor: cosmetic, cosmetic: UI text typo). Priority measures the business urgency to fix (high: must fix immediately, medium: fix in next cycle, low: fix when convenient). They are independent: a critical-severity bug may have low priority if it affects a rarely used feature.
  3. What are equivalence partitioning and boundary value analysis?

    • Model Answer: Equivalence partitioning divides the input domain into equivalence classes where the system should behave similarly; testing one representative from each class reduces test cases while maintaining coverage. Boundary value analysis focuses on testing at the edges of equivalence classes, as off-by-one and boundary-related defects are common.
  4. Explain the V-model relationship between testing and development phases.

    • Model Answer: The V-model maps each development phase (requirements, design, implementation, coding) to a corresponding testing phase (acceptance testing, system testing, integration testing, unit testing). The left side of V represents verification activities (specifications, designs); the right side represents validation activities (integration, system, acceptance). Testing starts early and follows the development lifecycle in reverse order.
  5. What quality model includes functional suitability, performance efficiency, compatibility, usability, reliability, security, and maintainability?

    • Model Answer: ISO/IEC 25010:2011 systems and software quality model. It supersedes McCall's 1977 quality factor model and provides a more comprehensive, structured classification of software product quality across eight main characteristics, each with sub-characteristics.
  6. Describe the typical defect lifecycle sequence.

    • Model Answer: New → Assigned → Open → Fixed → Retested → Verified → Closed. (Reopened possible if verification fails.)
  7. What is the difference between test coverage and test effectiveness?

    • Model Answer: Test coverage measures the degree to which code or requirements are exercised by the test suite (e.g., percentage of statements run). Test effectiveness measures how well the test suite actually detects defects; high coverage but low effectiveness means tests run frequently but fail to find real defects, often due to poor test design.
  8. Name two quality sub-characteristics from ISO/IEC 25010 related to maintainability.

    • A: Analyzability and changeability (also testability, stability as additional sub-characteristics).
  9. When should you use boundary value analysis versus equivalence partitioning?

    • A: Use equivalence partitioning to reduce the test space by identifying valid/invalid classes; use boundary value analysis specifically at the edges of those classes, as defects cluster at boundaries. Best practice: apply both together.
  10. What is the primary purpose of a traceability matrix?

    • A: To link requirements to test cases and test results, ensuring that all requirements are tested and that test results can be traced back to specific requirements for audit and reporting purposes.

Longer Answer Questions

  1. Describe the defect lifecycle from discovery to closure. Include the roles of reporter, assignee, and triage team.

    • Model Answer: The defect lifecycle typically follows these states: New (defect logged by tester or customer) → Assigned (triage team routes to development lead) → Open (developer analyzes and begins investigation) → Fixed (developer resolves code change) → Retested (tester re-runs the test case with the fix) → Verified (tester confirms the defect is resolved and no new issues introduced) → Closed (tester marks closed with resolution type: fixed, not-a-defect, wont-fix, etc.). Reopened occurs if the fix fails verification. The triage team (typically test lead, project manager, and representative developers) prioritizes defects based on severity and priority, decides on scheduling fixes, and ensures the defect backlog is groomed regularly. Each transition documents reasons, rework effort, and verification results.
  2. Compare ISO/IEC 25010 and McCall's quality models, highlighting the evolution and key additions.

    • Model Answer: McCall's quality model (1977) identified six main quality factors: validity, reliability, usability, efficiency, integrity, and portability, primarily focused on product attributes from a developer/engineering perspective. ISO/IEC 25010 (2011) supersedes McCall's model with eight main characteristics: functional suitability, performance efficiency, compatibility, usability, reliability, security, maintainability, and portability. Key additions include explicit security as a separate characteristic (absent in McCall), maintainability expanded into sub-characteristics (analyzability, changeability, stability, testability), and the model's alignment with modern software ecosystems (cloud, mobile, security threats). ISO/IEC 25010 also distinguishes between product quality (characteristics inherent in the software) and internal quality (code-level attributes), a distinction not explicit in McCall's simpler framework.
  3. Design a test suite for a login module with the following requirements: (a) valid username/password grants access, (b) invalid credentials show error message, (c) locked account after 3 failed attempts, (d) password reset via email. Create at least 6 test cases using equivalence partitioning and boundary value analysis.

    • Model Answer: Test cases would cover: (1) valid credentials (boundary: correct password, within attempt limit), (2) wrong password (boundary: one incorrect attempt, two incorrect, third triggers lock), (3) empty fields (boundary: empty username, empty password), (4) special characters in fields, (5) locked account lockout message, (6) password reset request and email delivery. A traceability matrix would map each test case to its requirement ID and expected result.
  4. Explain test automation feasibility assessment and list criteria for selecting tests to automate.

    • Model Answer: Automation feasibility assessment evaluates whether the cost and effort of automation are justified by the expected benefits. Criteria for automation include: (a) test frequency—tests that run on every build or nightly are high-value targets; (b) stability—tests on stable UI/module areas avoid frequent updates; (c) data-driven tests involving large inputs; (d) regression tests covering critical business paths; (e) repetitive manual tests prone to human error. Tests NOT suitable for automation: exploratory testing, UI/UX validation, ad-hoc one-time checks, tests for frequently changing features, and tests requiring human judgment (usability, visual appearance).
  5. What are the OWASP Top Ten and why are they important for security testing?

    • Model Answer: The OWASP Top 10 summarizes major web application security risks. Its categories change between editions, so consult the current official list instead of relying on an older category list. It helps teams discuss risks, prioritize tests, and plan secure development work.
  6. Describe the relationship between SDLC and STLC with an integration example.

    • Model Answer: SDLC encompasses the entire process of software creation, from initial concept through retirement. STLC defines the specific activities required to test software effectively. In modern development approaches (Agile, iterative), STLC activities occur within each SDLC iteration/sprint rather than as a separate final phase. Early involvement of testing in SDLC (shift-left) improves defect detection efficiency and reduces rework costs. Continuous Integration/Continuous Deployment (CI/CD) pipelines embed STLC activities within every code change cycle, with unit tests running on every build, integration tests in dedicated environments, and system/acceptance tests before release. The V-model explicitly maps verification activities to the left side and validation activities to the right side, illustrating that testing is not a separate phase but integrated throughout the development process.
  7. What ethical responsibilities do software testers have?

    • Model Answer: Software testers have ethical responsibilities including honesty and integrity in reporting results, competence within their skill domain, confidentiality of sensitive data handled during testing, objectivity without bias, responsibility to speak up about quality concerns, accessibility ethics prioritizing inclusive design, respect for intellectual property, and user advocacy ensuring software meets user needs and does not cause harm. Testers should follow established ethical codes (ACM, IEEE) and organizational policies. Testers serve as user advocates, ensuring delivered software meets user needs and does not cause harm, considering not just stated requirements but also implicit user expectations, edge cases, and potential misuse scenarios.
  8. Design an accessibility test plan for a web application's login form.

    • Model Answer: An accessibility test plan for a login form would include: keyboard navigation verification (Tab order, focus indicators, all functionality operable without mouse), screen reader compatibility testing (semantic HTML structure, meaningful alt text, proper heading hierarchy, ARIA labels where needed), color contrast ratio verification against WCAG AA/AAA standards, font size resizing test up to 200% without loss of content or functionality, language attribute verification (lang tag on HTML element), and alternative text validation for any images or icons in the form. Test would use both automated tools (WAVE, axe, Lighthouse) and manual testing with screen readers (NVDA, VoiceOver) and keyboard-only navigation. Success criteria would meet WCAG 2.1 AA minimum for all success criteria applicable to the login form.

Self-Check Questions with Answers

  1. Q: What are the three main static testing techniques? A: Reviews, inspections, and walkthroughs. Static analysis tools can also be used to automatically detect code patterns that may indicate defects.

  2. Q: Which testing type would you use to verify that a new module integrates correctly with the existing system? A: Integration testing. This tests the interfaces and interaction between modules, ensuring data flows correctly and combined functionality works as expected.

  3. Q: What is the typical defect lifecycle sequence? A: New → Assigned → Open → Fixed → Retested → Verified → Closed. (Reopened possible if verification fails.)

  4. Q: True or false: A test case with 100% statement coverage guarantees no remaining defects. A: False. Statement coverage only ensures every executable statement was run at least once; it does not guarantee correctness, boundary conditions, or interaction between modules are adequately tested.

  5. Q: What is the difference between test coverage and test effectiveness?

    • Model Answer: Test coverage measures the degree to which code or requirements are exercised by the test suite (e.g., percentage of statements run). Test effectiveness measures how well the test suite actually detects defects; high coverage but low effectiveness means tests run frequently but fail to find real defects, often due to poor test design.
  6. Q: Name two quality sub-characteristics from ISO/IEC 25010 related to maintainability.

    • A: Analyzability and changeability (also testability, stability as additional sub-characteristics).
  7. Q: When should you use boundary value analysis versus equivalence partitioning?

    • A: Use equivalence partitioning to reduce the test space by identifying valid/invalid classes; use boundary value analysis specifically at the edges of those classes, as defects cluster at boundaries. Best practice: apply both together.
  8. Q: What is the primary purpose of a traceability matrix?

    • A: To link requirements to test cases and test results, ensuring that all requirements are tested and that test results can be traced back to specific requirements for audit and reporting purposes.
  9. Q: Explain the difference between mean time between failures (MTBF) and mean time to failure (MTTF).

    • A: MTBF applies to repairable systems and measures the average time between successive failures during normal operation (includes repair time). MTTF applies to non-repairable systems and measures the average time to the first failure (component is replaced upon failure).
  10. Q: True or false: Automated testing completely eliminates the need for manual testing.

    • A: False. Automated testing excels at regression, data-driven, and repetitive tests, but manual testing remains essential for exploratory testing, usability, UI/UX validation, ad-hoc checks, and scenarios difficult to automate (frequent UI changes, one-time validations).

Mermaid Flow: Defect Lifecycle

flowchart TD
    A[New] -->|Triage evaluation| B[Assigned]
    B -->|Developer accepts| C[Open]
    C -->|Code fix implemented| D[Fixed]
    D -->|Tester re-runs test| E[Retested]
    E -->|Defect confirmed resolved| F[Verified]
    F -->|Tester closes| G[Closed]
    G -->|Re-verification fails| H[Reopened]
    H -->|Back to development| C[Open]
    C -->|Won't fix / deferred| I[Won't Fix / Deferred]
    I -->|No further action| J[Archive/Close]
    
    %% Style notes

Mermaid Flow Description: The defect lifecycle follows a defined progression from defect discovery (New) through triage assessment (Assigned), active development (Open, Fixed), verification (Retested, Verified), and closure (Closed). If verification fails, the defect reopens (Reopened) and returns to the Open state for re-fixing. Defects that won't be fixed or are deferred are marked as Won't Fix/Deferred and archived. Each transition documents appropriate rationale, rework effort, and verification results. The lifecycle ensures defects are tracked systematically from identification through resolution, with clear ownership and accountability at each stage.


References

  • 2025 TU Curriculum: Curriculum of Bachelor of Computer Applications (BCA) 2025 - TU FOHSS, PDF p. 9
  • Pressman, R. S., & Maxim, B. R. (2019). Software Engineering: A Practitioner's Approach. McGraw-Hill.
  • Myers, G. J., Sandler, C., & Glazer, B. (2011). The Art of Software Testing. Wiley.
  • ISO/IEC 25010:2011 Systems and software quality requirements and model.
  • Beck, K. (2003). Test Driven Development: By Example. Addison-Wesley.
  • Beizer, B. (1990). Software Testing Techniques. Van Nostrand Reinhold.
  • ISO/IEC 25000:2014 (SQuaRE - Systems and software quality requirements and evaluation).
  • National Institute of Standards and Technology (NIST). (2010). Software Testing Methods.
  • W. Kent, J. (2018). Experiences in Software Testing: Volume 1. Springer.
  • Gilb, T., & Graham, D. (2005). Software Inspection. Addison-Wesley.
  • ISO/IEC 12207:2017 Software life cycle processes.
  • van Veenstra, T. (2019). Mapping Contexts to Software Testing.
  • Cunningham, W. (1992). The Wycash Cemetery. ACM SIGPLAN Notices.
  • Rothermel, G., & Harrold, M. (1997). Statistical test case prioritization. Proceedings of the 1997 ACM SIGPLAN conference on Programming language design and implementation.
  • National Electrical Manufacturers Association (NEMA). Accessibility standards.
  • W3C Web Accessibility Initiative (WAI). WCAG 2.1 and 2.2 recommendations.
  • OWASP Foundation. OWASP Top Ten 2021 list.
  • SANS Institute. Software security training and certifications.
  • Google Developers. Web Fundamentals: Performance guidelines.
  • Apple Human Interface Guidelines. iOS accessibility requirements.
  • Microsoft Accessibility best practices for Windows applications.