Docsity

verification and validation, Lecture notes of Computer Science

Partial preview of the text

Download verification and validation and more Lecture notes Computer Science in PDF only on Docsity!

Software Testing Strategies

Introduction

  • (^) Testing is the process of evaluating a system or its component(s) with the intent to find whether it satisfies the specified requirements or not.
  • (^) In simple words, testing is executing a system in order to identify any gaps, errors, or missing requirements in contrary to the actual requirements.

Verification and Validation

  • (^) Software testing is part of a broader group of activities called verification and validation that are involved in software quality assurance
  • (^) Verification (Are the algorithms coded correctly?)
    • (^) The set of activities that ensure that software correctly implements a specific function or algorithm
  • (^) Validation (Does it meet user requirements?)
    • (^) The set of activities that ensure that the software that has been built is traceable to customer requirements

Testing Methods

  • (^) Black-Box Testing
  • (^) The technique of testing without having any knowledge of the interior workings of the application is called black-box testing.
  • (^) The tester is oblivious to the system architecture and does not have access to the source code.
  • (^) Typically, while performing a black-box test, a tester will interact with the system's user interface by providing inputs and examining outputs without knowing how and where the inputs are worked upon.

Levels of Testing for Conventional

Software

  • (^) Unit testing
    • (^) Concentrates on each component/function of the software as implemented in the source code
  • (^) Integration testing
    • (^) Focuses on the design and construction of the software architecture
  • (^) Validation testing
    • (^) Requirements are validated against the constructed software
  • (^) System testing
    • (^) The software and other system elements are tested as a whole

A Strategy for Testing

Conventional Software

Code Design Requirements System Engineering Unit Testing Integration Testing Validation Testing System Testing Abstract to concrete Narrow to Broader scope

Testing Strategy applied to

Conventional Software

  • (^) Unit testing
    • (^) Exercises specific paths in a component's control structure to ensure complete coverage and maximum error detection
    • Components are then assembled and integrated
  • (^) Integration testing
    • Focuses on inputs and outputs, and how well the components fit together and work together
  • (^) Validation testing
    • (^) Provides final assurance that the software meets all functional, behavioral, and performance requirements
  • (^) System testing
    • (^) Verifies that all system elements (software, hardware, people, databases) mesh properly and that overall system function and performance is achieved