Software Testing Lecture 3 PDF
Document Details
Uploaded by GenialThunderstorm
Faculty of Information Technology
Dr. Salwa Elakeili, Mrs. Huda Moftah Bohalfhay
Tags
Summary
This document is a lecture on software testing, specifically focusing on white box testing techniques. It covers the importance and methods of software testing, as well as different techniques like statement coverage, branch coverage, and path coverage.
Full Transcript
Course: Software Testing Lecture 3 Prepared by: Dr. Salwa Elakeili Instructor: Mrs. Huda Moftah Bohalfhay Faculty of Information Technology Outline White Box Testing Techniques Activities of a Test Engineer Testing Levels Based on Software Activity...
Course: Software Testing Lecture 3 Prepared by: Dr. Salwa Elakeili Instructor: Mrs. Huda Moftah Bohalfhay Faculty of Information Technology Outline White Box Testing Techniques Activities of a Test Engineer Testing Levels Based on Software Activity Recall: Importance of Testing No matter how well software has been designed and coded, it will inevitably still contain defects Testing is the process of executing a program with the aim of finding faults. A “successful” test is one that finds errors, not one that doesn’t find errors Testing can “prove” the presence of faults, but can not “prove” their absence Methods of Testing White-Box Testing Black-Box Testing requirements output... our goal is to ensure that all statements and conditions have been executed at least once... input events White Box - Testing – Also named: open-box, clear box , glass box , logic-driven, Structural Testing – It is a testing technique which evaluates the code and the internal structure of a program. – Test all possible paths of control flow. White Box Testing / Structural Testing Based on knowledge of internal logic of an application's code Based on coverage of code, statements, branches, paths, conditions coverage We perform White Box Testing to ensure: – That all independent paths within a module have been exercised at least once. – All logical decisions verified on their true and false values. – All loops executed at their boundaries and within their operational bounds internal data structures validity. White Box Testing Techniques Three Main White Box Testing Techniques Statement Coverage Branch Coverage Path Coverage White Box Testing Techniques Statement Coverage : it is the method of validating whether each and every line of the code is executed at least once Branch Coverage: Branch” in a programming language is like the “IF statements”. An IF statement has two branches: True and False. So in Branch coverage (also called Decision coverage), we validate whether each branch is executed at least once. Path coverage: Path testing is where all possible paths through the code are defined and covered. It's a time-consuming task.