computingandinformationscience【lecture21】
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Open box testing Testing is carried out by people who know the internals of what they are testing.
(a) What is the advantage of each approach? (b) In each case, how do you set about selecting test cases?
3
CS 501 Spring 2004
The Testing Process
Unit, System and Acceptance Testing are major parts of a software project
• It requires time on the schedule
• It may require substantial investment in test data, equipment, and test software.
8
CS 501 Spring 2004
Categories of Testing
Leabharlann Baidu
Unit testing unit test
System testing integration test function test performance test installation test
Acceptance testing
2
CS 501 Spring 2004
Validation and Verification
Validation: Are we building the right product? Verification: Are we building the product right? In practice, it is sometimes difficult to distinguish between the two. That's not a bug. That's a feature!
5
CS 501 Spring 2004
Testing Strategies
• Bottom-up testing. Each unit is tested with its own test environment.
• Top-down testing. Large components are tested with dummy stubs. user interfaces work-flow client and management demonstrations
9
CS 501 Spring 2004
Acceptance Testing
Alpha Testing: Clients operate the system in a realistic but non-production environment Beta Testing: Clients operate the system in a carefully monitored production environment Parallel Testing: Clients operate new system alongside old production system with same data and compare results
• Stress testing. Tests the system at and beyond its limits. real-time systems transaction processing
6
CS 501 Spring 2004
Methods of Testing
Closed box testing Testing is carried out by people who do not know the internals of what they are testing.
• System and sub-system testing (closed/open box) uses trial data emphasis is on integration and interfaces
• Acceptance testing (closed box) uses real data in realistic situations emphasis is on meeting requirements
CS 501: Software Engineering
Lecture 21
Reliability 3
1
CS 501 Spring 2004
Administration
Delay in sending out comments on the recent presentations and reports.
• Good testing requires good people!
• Documentation, including management and client reports, are important parts of testing.
What is the definition of "done"?
4
CS 501 Spring 2004
Test Design
Testing can never prove that a system is correct. It can only show that (a) a system is correct in a special case, or (b) that it has a fault. • The objective of testing is to find faults. • Testing is never comprehensive. • Testing is expensive.
7
CS 501 Spring 2004
Testing and Debugging
Testing is most effective if divided into stages:
• Unit testing at various levels of granularity (open box) tests by the developer emphasis is on accuracy of actual code
(a) What is the advantage of each approach? (b) In each case, how do you set about selecting test cases?
3
CS 501 Spring 2004
The Testing Process
Unit, System and Acceptance Testing are major parts of a software project
• It requires time on the schedule
• It may require substantial investment in test data, equipment, and test software.
8
CS 501 Spring 2004
Categories of Testing
Leabharlann Baidu
Unit testing unit test
System testing integration test function test performance test installation test
Acceptance testing
2
CS 501 Spring 2004
Validation and Verification
Validation: Are we building the right product? Verification: Are we building the product right? In practice, it is sometimes difficult to distinguish between the two. That's not a bug. That's a feature!
5
CS 501 Spring 2004
Testing Strategies
• Bottom-up testing. Each unit is tested with its own test environment.
• Top-down testing. Large components are tested with dummy stubs. user interfaces work-flow client and management demonstrations
9
CS 501 Spring 2004
Acceptance Testing
Alpha Testing: Clients operate the system in a realistic but non-production environment Beta Testing: Clients operate the system in a carefully monitored production environment Parallel Testing: Clients operate new system alongside old production system with same data and compare results
• Stress testing. Tests the system at and beyond its limits. real-time systems transaction processing
6
CS 501 Spring 2004
Methods of Testing
Closed box testing Testing is carried out by people who do not know the internals of what they are testing.
• System and sub-system testing (closed/open box) uses trial data emphasis is on integration and interfaces
• Acceptance testing (closed box) uses real data in realistic situations emphasis is on meeting requirements
CS 501: Software Engineering
Lecture 21
Reliability 3
1
CS 501 Spring 2004
Administration
Delay in sending out comments on the recent presentations and reports.
• Good testing requires good people!
• Documentation, including management and client reports, are important parts of testing.
What is the definition of "done"?
4
CS 501 Spring 2004
Test Design
Testing can never prove that a system is correct. It can only show that (a) a system is correct in a special case, or (b) that it has a fault. • The objective of testing is to find faults. • Testing is never comprehensive. • Testing is expensive.
7
CS 501 Spring 2004
Testing and Debugging
Testing is most effective if divided into stages:
• Unit testing at various levels of granularity (open box) tests by the developer emphasis is on accuracy of actual code