...
首页> 外文期刊>MSDN Magazine >Using Combinations to Improve Your Software Test Case Generation
【24h】

Using Combinations to Improve Your Software Test Case Generation

机译:使用组合来改进软件测试用例的生成

获取原文
获取原文并翻译 | 示例
           

摘要

Combinations are an indispensable tool in planning and executing configuration testing, especially in a sub-area called interaction analysis. Suppose.for example, you need to test your product on a machine with multiple browsers and multiple media players installed. You want to test your system in conjunction with three browsers installed from a pool of eight browsers, and with two media players installed from a pool of six players. How many configuration combinations are there? How can you programmati-cally list these configurations? The techniques presented in this column make it easy for you to calculate that there are Choose(8,3) * Choose(6, 2) = 840 possible test configurations. It also allows you to easily list all of them programmatically. Combinations are useful when examining and testing paths of execution. I'll illustrate with a classic problem that is a surrogate for analyzing paths of execution (problems like this example are often used in interviewing test engineer candidates at Microsoft). Suppose you are developing a game. Players enter the southwest corner of a room with a tiled floor. Players must move to the northeast corner of the room by moving one tile to the east or one tile to the north (in other words players are always moving in the direction of the exit and do not backtrack). If the room is small―only 10 tiles by 6 tiles―how many different paths can the player take?
机译:组合是规划和执行配置测试中必不可少的工具,尤其是在称为交互分析的子区域中。例如,假设您需要在一台装有多个浏览器和多个媒体播放器的计算机上测试产品。您要结合从八个浏览器池中安装的三个浏览器以及从六个播放器池中安装的两个媒体播放器一起测试系统。有多少种配置组合?您如何以编程方式列出这些配置?本列中介绍的技术使您可以轻松地计算出Choose(8,3)* Choose(6,2)= 840种可能的测试配置。它还使您可以轻松地以编程方式列出所有它们。在检查和测试执行路径时,组合很有用。我将用一个经典的问题来说明,该问题是分析执行路径的替代方法(类似此示例的问题通常用于采访Microsoft的测试工程师候选人)。假设您正在开发游戏。玩家进入设有瓷砖地板的房间的西南角。玩家必须通过向东移动一格或向北移动一格来移动到房间的东北角(换句话说,玩家始终向出口方向移动,并且不回退)。如果房间很小(只有10块乘6块),玩家可以选择多少条不同的路径?

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号