Testing is part of quality assurance. Software Testing Chapter 1: Fundamentals of Testing 同源大学 TONGJI UNIVERSITY
Software Testing Testing is part of quality assurance. Chapter 1: Fundamentals of Testing
Fundamentals of Testing CONTENT Why is testing necessary? What is software testing? Principles of testing Procedures of testing Psychology of testing 同海大学 TONGJI UNIVERSITY Software testing/Qinpei Zhao 2023/12/16 2
2023/12/16 Fundamentals of Testing Software testing/ Qinpei Zhao 2 •Why is testing necessary? •What is software testing? •Principles of testing •Procedures of testing •Psychology of testing
Why is Testing Necessary? Key points How bugs can cause harm ·Bugs and their effects The necessity of testing The role of testing in quality assurance Error,defect,fault,failure,mistake,bug 同濟大学 TONGJI UNIVERSITY Software testing/Qinpei Zhao 2023/12/16 3
Software testing/ Qinpei Zhao 2023/12/16 Why is Testing Necessary? • How bugs can cause harm •Bugs and their effects • The necessity of testing • The role of testing in quality assurance •Error, defect, fault, failure, mistake, bug Key points 3
Debugging & Testing Debugging Induce bugs Locate the bugs Bugs reappear Analyze the bugs Locate bugs Fix the bugs Log bugs Check the functions of software 同濟大学 TONGJI UNIVERSITY Software testing/Qinpei Zhao 2023/12/16 4
Software testing/ Qinpei Zhao 2023/12/16 Debugging & Testing Debugging Locate the bugs Analyze the bugs Fix the bugs Check the functions of software Induce bugs Bugs reappear Locate bugs Log bugs 4
Threat of Bugs Erroneous action Fault Failure 同濟大学 TONGJI UNIVERSITY Software testing/Qinpei Zhao 2023/12/16 5
Software testing/ Qinpei Zhao 2023/12/16 Threat of Bugs Erroneous action Fault Failure 5
Threat of Bugs Company Environment Damaged reputation for ·Pollution quality Waste High or unpredictable maintenance costs People,Societies,and states ·Unexpected delays in release cycles ·Lost jobs ·Lack of confidence in ·Lost lives system ·Lost rights ·Lawsuits ·Lost missions ·Lost wars 同濟大学 TONGJI UNIVERSITY Softwaretesting/QinpeiZhao 2023/12/166
Software testing/ Qinpei Zhao 2023/12/16 Threat of Bugs People, Societies, and states Company Environment • Damaged reputation for quality • High or unpredictable maintenance costs • Unexpected delays in release cycles • Lack of confidence in system • Lawsuits • Pollution • Waste • Lost jobs • Lost lives • Lost rights • Lost missions • Lost wars 6
Case of Software Failure Targets of this course NASA Mars Climate Orbiter the $125-million spacecraft has not been heard from since Incident Date:9/23/1999 Air-Traffic Control System in LA Airport Lost contact with 400 airplanes Incident Date:9/14/2004 http://www.cse.lehigh.edu/~gtan/bug/ softwarebug.html 同濟大学 TONGJI UNIVERSITY Software testing/Qinpei Zhao 2023/12/16
Software testing/ Qinpei Zhao 2023/12/16 Case of Software Failure Targets of this course Air-Traffic Control System in LA Airport Lost contact with 400 airplanes Incident Date: 9/14/2004 http://www.cse.lehigh.edu/~gtan/bug/ softwarebug.html NASA Mars Climate Orbiter the $125-million spacecraft has not been heard from since Incident Date: 9/23/1999 7
Cost of Software Failure vs.Cost of Testing Cost of users: Cost of testing:testing the drawbacks of environment,whether products(data lost, change the hardware broken) requirement frequently,employees, ·Cost of software testing strategies, developing:reputation quality targets of company,cost of correction make-up for errors 同濟大学 TONGJI UNIVERSITY Software testing/QinpeiZhao 2023/12/16 8
Cost of Software Failure vs. Cost of Testing Software testing/ Qinpei Zhao 2023/12/16 • Cost of users: the drawbacks of products(data lost, hardware broken) • Cost of software developing: reputation of company, cost of correction & make-up for errors • Cost of testing: testing environment, whether change the requirement frequently, employees, testing strategies, quality targets 8
Where Bugs Come From? Invalidity of communication Imperfect definition of requirement analysis Deviation of requirement Logistical mistake of design Not obey the rule with document and code ●Procedure error ●Code mistake ●Document mistake 同濟大学 TONGJI UNIVERSITY Software testing/Qinpei Zhao 2023/12/16 9
Software testing/ Qinpei Zhao 2023/12/16 • Invalidity of communication • Imperfect definition of requirement analysis • Deviation of requirement • Logistical mistake of design • Not obey the rule with document and code • Procedure error •Code mistake • Document mistake Where Bugs Come From? 9
What Bugs Do? ·Failures Dissatisfactions of customers,users,companies ·Reputation effect 同濟大学 TONGJI UNIVERSITY Software testing/Qinpei Zhao 2023/12/16 10
What Bugs Do? • Failures • Dissatisfactions of customers, users, companies • Reputation effect Software testing/ Qinpei Zhao 2023/12/16 10