- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Unit testing and integration testing There are two approaches to this incremental testing: bottom-up and top-down. An Example of Module Testing The C language function that performs this operation is atoi(), which stands for ASCII to Integer. If youre going to perform dynamic white-box testing on this module, what would you do? First, you would probably decide that this module looks like a bottom module in the program, and write a test driver to exercise the module independently from the rest of the program. This test driver can take on several forms. It could be a simple dialog box, as shown in Figure 7.7 Or it could be a standalone program that reads test strings and expected results from a file. Next, you would analyze the specification to decide what black-box test cases you should try and then apply some equivalence partitioning techniques to reduce the total set Lastly, you would look at the code to see how the function was implemented and use your white-box knowledge of the module to add or remove test cases. Unit and Integration Testing ?Unit and Integration Testing Unit and Integration Testing Testing that occurs at the lowest level is called unit testing or module testing. As the units are tested and the low-level bugs are found and fixed, they are integrated and integration testing is performed against groups of modules. This process of incremental testing continues, putting together more and more pieces of the software until the entire productor at least a major portion of it is tested at once in a process called system testing. With this testing strategy, its much easier to isolate bugs. A test driver can replace the real software and more efficiently test a low-level module In bottom-up testing , you write your own modules, called test drivers, that exercise the modules youre testing. A test stub sends test data up to the module being tested. In top-down testing, you could write a small piece of code called a stub that acts just like the
您可能关注的文档
- 陈明辉-电路理论第2章.ppt
- 成本管理会计教学资料:第8章本量利分析(s).ppt
- 班会讲卫生,除陋习.ppt
- 大学生心理健康教育(单色)情境六培养学习能力,激发内心动机.ppt
- 霸权之后——世界政治经济中的合作与纷争.ppt
- 翠绿信封简约商务模板.pptx
- 第五课城市规划的典范:巴西利亚.ppt
- 单片机原理及接口技术d第8章扩展存储器.ppt
- 陈明辉-电路理论第5章.ppt
- 程序设计基础(徐明星)w01-4-语言程序.ppt
- 主题课程整理大班上.doc
- 2026人教版小学语文三年级上册期末综合试卷3套(打印版含答案解析).docx
- 2026人教版小学语文四年级下册期末综合试卷3套(打印版含答案解析).docx
- 2026人教版小学二年级上册数学期末综合试卷精选3套(含答案解析).docx
- 2026人教版小学语文四年级上册期末综合试卷3套(含答案解析).docx
- 2026人教版小学二年级下册数学期末综合试卷3套(打印版含答案解析).docx
- 2026年地理信息行业年终总结汇报PPT.pptx
- 板块四第二十一单元封建时代的欧洲和亚洲 中考历史一轮复习.pptx
- 中考历史一轮复习:板块四第二十单元古代亚、非、欧文明+课件.pptx
- 第二次工业革命和近代科学文化中考历史一轮复习.pptx
原创力文档


文档评论(0)