Docsity

Test cases and Test logs, Lecture notes of Database Programming

Partial preview of the text

Download Test cases and Test logs and more Lecture notes Database Programming in PDF only on Docsity!

QA Fundamentals

  • Why Bugs Still Occur?
  • Bug Fixing Importance
  • Test cases and Test logs Table of Contents
  • Human being can make an error (mistake)
  • Errors produce defects
    • Defects are faults / bugs in the program code, or in a document
  • If a defect in code is executed, that might cause a failure : - Fail to do what it should do - Do something it shouldn’t Software Defects
  • The human factor
    • Humans make mistakes
    • Poor training
    • Time pressure
    • Code complexity
    • Complexity of infrastructure
    • Changing technologies Software Defects

Anomaly Error Bug

Defect

Fault

Problem

Failure Defect/fault masking Software Defects

Bug Fixing Importance

▪ Unfixed bugs camouflage other bugs ▪ Suggest quality isn’t important ▪ Duplicate effort ▪ Unreliable metrics and money loss ▪ Fixing a bug today costs less than tomorrow

Bug Fixing Importance (3)

Bug Fixing Importance

What Is Testing?

  • The process of operating a

system or component under

specified conditions

  • Observing or recording the results
  • Making an evaluation of some aspect of the system or component What Is Testing?
  • Testing is not just running tests, but also:
    • Planning and control
    • Choosing test conditions
    • Designing and executing test cases
    • Checking results
    • Evaluating exit criteria
    • Reporting on the testing process and system under test
    • Finalizing or completing closure activities Main Test Activities

QA testers

  • Are perceived as destructive – only happy when they are finding faults!
  • Usually require good communication skills, tact & diplomacy.
  • Normally need to be multi-talented (technical, testing, team skills). QA vs Devs

Developers

  • Are perceived as very creative
    • they write code without which there would be no system
  • Are rarely good communicators
  • Can often specialize in just one or two skills (e.g. VB ,C++,JAVA,SQL) QA vs Devs
  • Exhaustive testing is impossible
    • All combinations of inputs and preconditions are usually almost infinite number
    • Testing everything is not feasible
    • Risk analysis and priorities should be used to focus testing efforts Seven Testing Principles (2)
  • Early testing
    • Testing activities shall be started as early as possible - And shall be focused on defined objectives
    • The later a bug is found – the more it costs! Seven Testing Principles (3)