• 测试技术
  • 博客
  • 视频
  • 开源
  • 论坛
  • 沙龙
  • 下载
  • 杂志
  • 招聘

字号: | 推荐给好友 上一篇 | 下一篇

嵌入式软件的覆盖测试(一)

发布: 2008-9-03 14:07 | 作者: 网络转载 | 来源: http://www.csai.cn  | 查看: 85次 | 进入软件测试时代论坛讨论

软件测试时代

UserId Text Field and Password Text Field cleared.

  1

  The help message will be displayed.1

  

  图4 表2中的一个测试用例

  Again, all the other Causes and Effects in the table are dealt with as appropriate. Eventually, not more than n+1 columns, there’s at least one “1” and at least one “0” for each Cause. But there may still be untriggered Effects, for which additional columns may have to be created. So, the tester will then have a minimum set of test requirements, such that each column specifically targets one, and only one, potential bug location in the system. Now tester can consider whether to expand the set with additional tests to explore some otherwise untouched combinations.

  像这样处理表中所有其他的原因和结果。最后,不会多于n+1个列,最少每个原因要对应一个“1”或者一个“0”。但是这样依然会有未触发的结果,需要为它们创建新的列。所以,测试者需要为测试需求构建一个最小集,好让每列都与系统中潜在BUG的位置一一对应。然后,测试者再考虑是否要用新的测试来扩展该集合以开发某些不同的未涉及到的因果组合。

  This technique is also known as Test Requirements Definition technique (as are Control Flow graphing, State Transition Analysis, etc.), rather than test design. At the end of the process, each column expresses the requirements for a potential test case with a specific objective identified by the Cause(s) and Effect(s). The tester still has to design the actual test data values so that each supports the objective. The tester must also take special care with masked Causes, which must still be “1” or “0”, and design a test or tests to best execute the test cases. Due to restriction of paper length there isn’t scope to tell more, or to discuss topics such as subsidiary tables (for handling complicated input validation or output generation), iterations, and feedback loops.

  因果法又被称为测试需求定义方法(控制流图,状态转换分析等等),而并非测试设计。在操作步骤结尾,每列都通过由原因和结果确定的目标为潜在的测试用例描述了需求。测试者依然需要设计实际的测试数据来支持这些目标。同时,他们还必须十分注意那些依然可以是“1”或“0”的被掩盖的原因,并设计一些测试来执行测试用例。由于文章篇幅所限,这里就不再讨论辅助表(用来处理复杂的输入或者输出)、迭代和反馈环等技术了。

  4. Results

  4. 结果

  The benefits that have been achieved using this test case design technique on a pilot feature #1171 of OMC-R Agent are:

  在OMC-R Agent的首要特性1171中用到的测试用例设计方法取得了如下效果:

  Helps to achieve a better test coverage of the testing. A chived “six sigma” quality for the Feature #1171 on which this CE technique has been piloted. There is no post-release defects have been found for this feature. Please refer to the Q-data (Figure 6), and there are few reported defects. But none of them are from Feature# 1171.

  得到了更好的测试覆盖率。通过在1171特性中的因果法的应用,到达了“6σ”的质量品质,使得该特性不存在后发缺陷。请参考图6中的Q数据,其中只有很少缺陷被报告,但没有一个存在于1171特性中。

  Optimization in developing test cases (i.e., it is easy to avoid any duplication of test cases in a CE table by identifying the “masking” precedece as explained in Section 3.).

  测试用例的优化。(例如,根据经过掩盖优先处理过的因果图设计的测试用例很容易避免测试用例的重复)

  Easily understandable matrix format of test cases by reviewers/inspectors and quality assurance professionals.

  复查/审核人员及质量保证专家更容易理解矩阵形式的测试用例。

  Helps gain a deeper understanding of the requirements.

  对需求有更深刻的理解。

  Helps to identify ambiguous requirements and to improve on requirement specifications.

  更好的确定不明确的需求并且改进需求说明书

  Ease of traceability to requirements.

  容易对需求进行跟踪

  

  图5 表3中的测试用例

  5. Conclusion

  

文章来源于软件测试时代 http://www.testage.net/

43/4<1234>

软件测试时代开课信息
Google
关于我们 | 合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2007 TestAge(测试时代) 北京慧灵科技有限公司 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备05002925号
技术支持和业务联系:info@testage.com.cn 电话:010-51297073