- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
软件测试 Software Tes
Software Testing Chapter 3 Structural Testing Contents 3.1 Basic Concepts 3.2 Logic Coverage 3.3 Control Flow Graph 3.4 Case 3.5 Exercise 3.1 Basic Concepts Structural testing Also called glass box testing or white-box testing, or logic-driven testing. It is a testing method that according to the internal logical procedures and coding structure design test data. Test all logical paths. Through different points inspect procedures states, to determine whether the actual states consistent with the expected states. Grasp the detailed knowledge of the system, applied to the field of development. 3.1 Basic Concepts White-box Testing Difficulties For multiple choices and nesting cycle of the procedure, the number of different possible paths is astronomical. cycle≤20times Different paths is 520,if the implementation time of each path is 1 ms , 3024years are needed. 3.1 Basic Concepts Why we can’t use exhaustive testing? Path exhaustive testing methods could not detect whether the procedure itself violated design specifications, whether it is a wrong procedure. Path exhaustive testing procedure can’t detect the wrong because of path omission. Path exhaustive testing can not discovery some errors associated with the data. 3.1 Basic Concepts White-box testing must follow several principles: All independent path in a module must be implemented at least once. All logic values require test two cases: true and false. Inspection procedures of internal data structure, and ensuring the effectiveness of its structure. Run all cycles within operational range. 3.2 Logic Coverage Logic coverage Statement coverage Decision coverage Condition coverage Condition/decision coverage Condition combination coverage Path coverage 3.2 Logic Coverage—Statement Coverage Statement coverage(语句覆盖) Statement coverage is to design a number of test cases, running the tested procedures, making each executable statement implement at least once. In diagram, all the executable statements are in th
文档评论(0)