创业管理(李雪灵)part2-whitebox.ppt

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 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

文档评论(0)

seunk + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档