1 / 14

Objectives

Objectives. Understand the basic concepts and definitions relating to testing, like error, fault, failure, test case, test suite, test harness. Explore the testing process—how testing is planned and how testing of a unit is done.

trinh
Télécharger la présentation

Objectives

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Objectives • Understand the basic concepts and definitions relating to testing, like error, fault, failure, test case, test suite, test harness. • Explore the testing process—how testing is planned and how testing of a unit is done. • Understand the two main testing approaches black-box and whit-box testing.

  2. Software Testing • The main objective of testing is to eliminate defects that resulted from the implementation stage as a part of ensuring the quality of the final product. • The process of executing a program with the intent of finding errors. • Two approaches for identifying defects in code: • Static: through code inspection or analyzing tools. • Dynamic: by executing the code and examine potential outputs.

  3. Testing Concepts • Errors: a measure of the difference between the actual and the ideal outputs. • Fault: is a condition that causes a system to fail in performing its required function. • Commonly known as bug • Failure: is the inability of a system or component to perform a required function according to its specifications. • Resulted behavior != expected behavior.

  4. Testing Concepts • Test case: can be considered as comprising a set of test inputs and execution conditions, which are designed to exercise the system under testing in a particular manner. • Test suite: A group of related test cases that are generally executed together to test some specific behavior or aspect of a system.

  5. Testing Concepts • The intent of Testing • Test to identify defects • Input wrong values! • Test to prove working • Input correct values! • Levels of Testing • Unit testing • verification of the code produced by individual programmers • Integration testing • System testing • Acceptance testing • Regression testing – after modification!

  6. Testing Concepts

  7. Testing Process • Composed of : • Test Plan • Test case Design • Test case Execution • Test Plan: is a general document for the entire project that defines the scope, approach to be taken, and the schedule of testing, as well as identifies the test items for testing and the personnel responsible for the different activities of testing. • Test Plan includes description of how the testing for the project will proceed, which units will be tested, and what approaches (and tools) are to be used during the various stages of testing. • Input to test plan : • Project plan, Req document, Design document.

  8. Testing Process • Test Case Design • Test case design is a major activity in the testing process. Careful selection of test cases that satisfy the criterion and approach specified is essential for proper testing.

  9. Testing Process • Test Case Execution: During this test defects are found and logged. • Defects detector maybe different that their fixer. • Any launched system must have their defects closed.

  10. Testing Approaches • Black-box testing: • The internal structure is not considered. • White-box testing • The internal structure are examined carefully.

  11. Testing Approaches • Black-box testing techniques: • Partition inputs into classes and test one from each class. • Boundary values • E.g. From 0.0 to 1.0. • Special cases • E.g. divide by zero. • State-based testing • Consider inputs + previous state of system

  12. Testing Approaches • White-box testing techniques: • Control Flow-Based Criteria • When a block starts execution and when it passes control to other blocks • A node corresponding to a block whose first statement is the start statement of P is called the start node of G, and a node corresponding to a block whose last statement is an exit statement is called an exit node

  13. Example Compute the absolute value of a number Check values between 0 - 100

  14. Key points • Testing is a way to identify defects in a system. • The intention of testing depends on the view of the tester. • Black-box and white-box are two main approaches to testing.

More Related