8 Software Quality Assurance And Testing

Software Project Management · Unit 8 · 5 hrs

Software quality assurance and testing

Exam-focused notes for Software quality assurance and testing (Software Project Management, CSC425): what the TU syllabus asks and how it has actually been tested, with 5 solved past questions from this unit.

Software quality assurance and testing in short

This chapter covers software quality assurance and testing: the principles that guide a good test effort, the levels and strategies testing is organized into, the distinction between verification and validation, and the process maturity models an organization uses to judge and improve how it builds software.

Software quality assurance and testing: notes

Testing Principles and Objectives

Software quality means the system is robust, precise and maintainable, and testing is the iterative process, carried out alongside implementation, of checking that the software meets its specification and does what the customer actually wants. Good testing follows a few guiding principles: every test should be traceable back to a customer requirement; tests should be planned long before testing itself begins; testing should begin "in the small", on individual units, and progress toward testing "in the large", on the integrated system; roughly 80 percent of all errors uncovered during testing tend to trace back to only 20 percent of a program's components, which is why thorough testing of the riskiest components pays off disproportionately; and testing should start as early as possible in development, since defects found early are far cheaper to fix than defects found after release.

Testing serves several objectives: finding defects the programmer introduced while building the software; gaining confidence in, and providing information about, the software's actual level of quality; confirming that the end result meets both business and user requirements; ensuring the software satisfies its business requirement specification (BRS) and system requirement specification (SRS); and, ultimately, gaining the customer's confidence by delivering a quality product.

Test Plan

A test plan is a document detailing a systematic approach to testing a system, prepared largely with input from test engineers, and it typically contains: an introduction to the test plan document, the assumptions under which the application will be tested, the list of test cases to be included, the list of features to be tested, the list of deliverables to be tested, and the resources allocated to testing the application.

Types and Levels of Testing

Testing can be carried out manually or with automation, and each has a different cost-accuracy trade-off.

Manual testingAutomation testing
Performed byA QA analyst, by handScripts, code and automation tools
AccuracyLess accurate and reliableMore reliable and accurate
SpeedTime-consumingFast
Skill neededCan be done without programming knowledgeRequires programming knowledge
Random testingAllowedNot typically allowed

Testing is also organized into levels, moving from the smallest testable unit up to the whole system. Unit testing tests the smallest testable portion, a single component or unit of software, in isolation. Integration testing tests units once they are combined into larger units, checking that they work correctly together. System testing tests the whole system at once, as an integrated product. Acceptance testing tests the system against the user's own requirements, usually as the last check before delivery. Security testing specifically probes the system for vulnerabilities an attacker could exploit.

What this unit covers

  • Testing principles and objectives
  • Test plan
  • Types and levels of testing
  • Test strategies
  • Program verification and validation
  • Software quality
  • SEI-CMM
  • SQA activities
  • QA organization structure
  • SQA plan

Testing principles and objectives

2081 · 10 marks

What are testing principles? List different test strategies. Explain SQA plan.[10]

--- Testing principles are fundamental guidelines that direct the software testing process to make it more effective and efficient. The widely accepted testing principles are: Testing can show that defects are present, but cannot prove that there are no defects. Testing reduces the probability of...

Open this answer on its own page →

SEI-CMM

2081 · 5 marks

What is SEI-CMM? Explain its importance. [5]

Show solved answer

SEI-CMM (Software Engineering Institute - Capability Maturity Model)

Definition

SEI-CMM stands for Software Engineering Institute - Capability Maturity Model. It is a framework developed by the Software Engineering Institute (SEI) at Carnegie Mellon University that describes the key elements of an effective software process. It provides a roadmap for organizations to improve their software development processes in a structured and systematic way.


The Five Maturity Levels of CMM

CMM defines five levels of process maturity, each representing a stage in process improvement:

LevelNameDescription
1InitialSoftware process is unpredictable, poorly controlled, and reactive. Success depends on individual effort.
2RepeatableBasic project management processes are established. Cost, schedule, and functionality are tracked.
3DefinedSoftware processes are documented, standardized, and integrated into a standard process for the organization.
4ManagedDetailed measures of software process and product quality are collected and controlled.
5OptimizingContinuous process improvement is enabled by quantitative feedback and piloting innovative ideas.

Importance of SEI-CMM

The SEI-CMM is important for the following reasons:

  1. Process Improvement: It provides a clear path for organizations to improve their software development processes step by step, moving from chaotic (Level 1) to optimized (Level 5).

  2. Quality Assurance: By following CMM practices, organizations can consistently deliver high-quality software products that meet customer requirements.

  3. Risk Reduction: Higher maturity levels help identify and manage risks early in the software project lifecycle, reducing the chances of project failure.

  4. Cost and Time Efficiency: Well-defined and managed processes reduce rework, defects, and delays, leading to better cost and schedule control.

  5. Benchmarking: Organizations can use CMM to assess their current process maturity and compare themselves against industry standards.

  6. Customer Confidence: CMM certification (especially Level 3 and above) increases client trust and is often a requirement for winning large software contracts.

  7. Team Discipline: It encourages disciplined engineering practices, proper documentation, and accountability among team members.


Summary

SEI-CMM is a process improvement model that guides software organizations in developing and refining their software engineering practices. Its five maturity levels provide a structured framework to move from ad-hoc, unpredictable processes to disciplined, optimized, and continuously improving processes, ultimately resulting in better software products delivered on time and within budget.

Open this answer on its own page →

2080 · 5 marks

Explain capability process model. [5]

The Capability Maturity Model (CMM) is a framework that describes the maturity of an organization's software development process. It was developed by the Software Engineering Institute (SEI) and published in 1987. The CMM provides a set of best practices that organizations can follow to improve t...

Open this answer on its own page →

Program verification and validation

2079 · 5 marks

Differentiate between verification and validation. List testing principles. [5]

--- Aspect Verification Validation --------- Definition The process of checking whether the software is being built correctly (i.e., as per specifications) The process of checking whether the correct software is being built (i.e., meets user needs) Question Asked "Are we building the product righ...

Open this answer on its own page →

Software quality

2078 · 5 marks

Briefly explain different quality factors. [5]

Software quality factors are the attributes or characteristics used to evaluate how well a software product meets its requirements and satisfies user needs. Based on the software product attributes, quality factors are grouped into three major categories: --- These factors describe how well the s...

Open this answer on its own page →