
Effective Software Testing Strategies for Program Reliability
Explore the world of software testing before using JUnit for unit testing. Learn about black box and white box testing techniques, the goal of testing, and key terms in testing. Understand the importance of testing to ensure program reliability and quality before deployment.
Download Presentation

Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.
E N D
Presentation Transcript
Testing strategies HOW TO MAKE SURE THAT OUR PROGRAMS WORK BEFORE WE SEND THEM TO WEBCAT 02/25/2015
Black box testing Requirements are known. What the code looks like is not. Goal: Based on requirements, select representative data to thoroughly test the application. Think about: Norms, extremes, and boundaries.
White box testing (clear box) Requirements are known. Code is visible. Goal: Exercise every path through the system. Think about: Both sides of each branch. Possible data failures. When loops, iterate zero, one, many times.
Goal of testing To prove the existence of flaws that can be repaired. Except for the most trivial programs, you cannot prove that the program works perfectly.
Other terms Unit test testing individual components, like a single method. Integration test testing components that have been put together, like a class or a module. System test testing the full system. Test / test case A test is a collection of individual test cases.
Todays activity You are going to explore testing and then tomorrow, we will use a tool called JUnit to unit test our code. With JUnit, you will build assertions into the test. When an assertion fails, the test case fails. JUnit is what WebCAT uses to run tests.
Todays activity You will explore testing. As you do the board activities we ll gather together to discuss the different tests. Part 1 As you choose the arguments to pass to the method reverse, think about how each is unique. What makes one test case different from the next?