Chapter 8 testing the programs.ppt

  1. 1、本文档共58页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Chapter 8 testing the programs

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Chapter 8 Testing the Programs other method: a,b,c “F” nonnumeric data W: criteria for classify the test data 该分类原则只适用于black box法 P422—1,2,3 1 . 每一个可能的输入数据(测试用例)必属于某一 分类。 2 . 各个分类之间没有交集。 3 . 每个类的特定测试用例可以代表这个类。 (有时我们可以适当放松这个约束,即:如果一个 数据元素成员属于一个类并经运行显示了一个错 误,则该类的任意元素成员运行显示同样错误的 概率较高 接近100% 。) * Chapter 8 Testing the Programs U: drawbacks of black box and white box black box: uncertainty in finding a particular error (黑盒法以SRS为依据,有一定的盲目 性和不确定性,不可能揭示所有的错误) white box: pay too much effort but still difficult in giving test case when internal logic is too complex (该法以模块内部逻辑为依据,当内部逻辑过于复 杂时,则不能给出好的或合适的测试用例) C: combining black-and white-box testing to generate test data(黑盒与白盒法相结合产生测试用例) X: method : black box + white box + other method Y: example: ----“input positive value” black box + other method P422—7 dots * Chapter 8 Testing the Programs ? test thoroughness(测试的彻底性) about white box A: three methods: X: statement coverage testing(语句 覆盖 测试) ----给出的测试用例能使模块中每一语句至少执行一遍 Y: branch testing(分支测试) Z: path testing(路径测试) B: example—Fig8.7 statement: x k result 0 1-2-3-4-5-6-7 1 test case branch: 1-2-3-4-5-6-7 and 1-2-4-5-6-1 2 test cases path: 1-2-3-4-5-6-7 + 1-2-3-4-5-6-1 + 1-2-4-5-6-7 + 1-2-4-5-6-1 4 paths--- 4 test cases * Fig 8.7 Logic flow. POINTER FALSE X X + 1 POINTER TRUE CALL SUB X, POINTER,RESULT PRINT RESULT X K? RESULT 0? NO YES NO YES 3 1 2 4 5 6 7 * Chapter 8 Testing the Programs ? supplemental material * A: black box X: equivalence partitioning Y: boundary value analysis Z: error guessing U: cause-effect diagram example: B: white box X: 4 logical coverage methods : statement, branch, condition, condition combination * Chapter 8 Testing the Programs Y: 3 path coverage methods node: edge: path: Z: the difference between logical coverage and path coverage C: example * Sidebar 8.4 Fault Discovery Efficiency at Contel IPC 17.3%

文档评论(0)

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

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

1亿VIP精品文档

相关文档