Ian Cooper 的个人资料Staccato Signals日志列表 工具 帮助
8月12日

FIT/Fitnesse disillusionment

Jeremy Miller is down on FIT/Fitnesse for writing automated acceptance tests. He talks a little about it here, and there is some previous worries here.  I made some comments on Jeremy's previous blog that may bear some repeating.
 
We have used FIT a few times, because we liked the idea of subcutaneous layer testing, but I can't help but feel that the tool set produces tests that are sometimes fragile and sometimes over constrained by the tabular format.

Unless you have a strong customer-authored test requirement it seems easier to drive layer testing with an xUnit tool and write tests in the same language that you code in.

Provided you have something like a hexagonal architecture, one alternative is always to use a custom test harness, built in WinForms, as a front end to provide those inputs that performs the layer test. In other words we riff of the FIT testing idea, but use our own engine instead of using FIT. The cost here doesn't tend to be material in a larger project, but I guess smaller projects could find it hard to justify the cost of a write your own layer testing tools approach. In that case just write the acceptance test cases in xUnit. They can still give you layer testing, you just lose the flexibility of variable inputs. Of course parameterized or data-driven tests can help here and xUnit implementations like MbUnit and MsTest support calling the same test with a range of parameters.

In another approach we could abandon layer testing and use something like NUnitForms, Selenium, or Watir to drive the UI to get scripted acceptance tests. The difficulty here is that UI tests tend to be fragile; every time the UI changes, your tests need to change too. This makes them expensive and every time I use one of these, I tend to end up backing off because of the cost of maintaining the test suite.

Acceptance tests are vital to knowing 'when we are done' but the sweet-spot for how to make them maintainable still seems to be eluding us.

 

 

评论 (1)

请稍候...
很抱歉,您输入的评论太长。请缩短您的评论。
您没有输入任何内容,请重试。
很抱歉,我们当前无法添加您的评论。请稍后重试。
若要添加评论,需要您的家长授予您相应权限。请求权限
您的家长禁用了评论功能。
很抱歉,我们当前无法删除您的评论。请稍后重试。
您已超过了一天之内允许提供的评论数上限。请在 24 小时后重试。
因为我们的系统表明您可能在向其他用户提供垃圾评论,您的帐户已禁用了评论功能。如果您认为我们错误地禁用了您的帐户,请联系 Windows Live 支持部门
完成下面的安全检查,您提供评论的过程才能完成。
您在安全检查中键入的字符必须与图片或音频中的字符一致。

若要添加评论,请使用您的 Windows Live ID 登录(如果您使用过 Hotmail、Messenger 或 Xbox LIVE,您就拥有 Windows Live ID)。登录


还没有 Windows Live ID 吗?请注册

名氏发表:
<a href="http://www.hongju168.com/">仓储货架|仓库货架|托盘|仓储笼</a> <a href="http://www.hongju168.com/1.html">仓储货架|仓库货架|托盘|仓储笼</a> <a href="http://www.hongju168.com/3.html">仓储货架|仓库货架|托盘|仓储笼</a> <a href="http://www.hongju168.com/4.html">仓储货架|仓库货架|托盘|仓储笼</a> <a href="http://www.hongju168.com/2.html">轻型仓储货架|轻量型仓库货架|库房货架</a> <a href="http://www.hongju168.com/2.html">货架厂|货架公司|南京货架</a> <a href="http://www.hongju168.com/2-2.html">中量型仓储货架|中量A型仓库货架|库房货架</a> <a href="http://www.hongju168.com/2-2.html ">货架厂|货架公司|南京货架</a> <a href="http://www.hongju168.com/2-3.html">中量型仓储货架|中量B型仓库货架|库房货架</a> <a href="http://www.hongju168.com/2-3.html">货架厂|货架公司|南京货架</a> <a href="http://www.hongju168.com/2-4.html">横梁式仓库货架|重型仓储货架|货位式库房货架</a> <a href="http://www.hongju168.com/2-4.html">货架厂|货架公司|南京货架</a> <a href="http://www.hongju168.com/2-5.html">模具货架|抽屉式仓库货架|仓储货架|库房货架</a> <a href="http://www.hongju168.com/2-5.html ">货架厂|货架公司|南京货架</a> <a href="http://www.hongju168.com/2-6.html">贯通式仓储货架|通廊式仓库货架|驶入式库房货架</a> <a href="http://www.hongju168.com/2-6.html">货架厂|货架公司|南京货架</a> <a href="http://www.hongju168.com/2-7.html">悬臂式仓储货架|仓库货架|库房货架</a> <a href="http://www.hongju168.com/2-7.html">货架厂|货架公司|南京货架</a> <a href="http://www.hongju168.com/2-8.html">阁楼式仓储货架|仓库货架|库房货架|钢平台</a> <a href="http://www.hongju168.com/2-8.html">货架厂|货架公司|南京货架</a> <a href="http://www.hongju168.com/2-9.html">流利式仓储货架|仓库货架|库房货架|辊轮式货架|自滑式货架</a> <a href="http://www.hongju168.com/2-9.html">货架厂|货架公司|南京货架</a> <a href="http://www.hongju168.com/2-10.html">工作台|工作桌</a> <a href="http://www.hongju168.com/2-11.html">工具柜|工具车</a> <a href="http://www.hongju168.com/2-12.html">托盘|塑料托盘|钢托盘|铁托盘|钢制托盘</a> <a href="http://www.hongju168.com/2-13.html">仓储笼|仓库笼|折叠式仓储笼|蝴蝶笼</a> <a href="http://www.hongju168.com/2-14.html">周转箱|塑料周转箱</a> <a href="http://www.hongju168.com/2-15.html">静音手推车|铁板手推车|购物手推车|登高车</a> <a href="http://www.hongju168.com/2-16.html">手动液压托盘搬运车|不锈钢搬运车|电子秤搬运车</a> <a href="http://www.hongju168.com/2-16.html">高起升搬运车|电动搬运车|平台车</a> <a href="http://www.hongju168.com/2-16.html">手动液压堆高车|手动液压堆垛车|半电动堆垛车</a> <a href="http://www.hongju168.com/2-16.html">全电动堆垛车|油桶搬运车|圆桶搬运车|油桶装卸车|</a> <a href="http://www.hongju168.com/2-16.html">柴油内燃平衡重式叉车|电动平衡重式叉车</a> <a href="http://www.hongju168.com/2-16.html">液压升降机|剪叉式高空作业平台|固定式蹬车桥</a> <a href="http://www.hongju168.com/2-17.html">文件柜</a> <a href="http://www.hongju168.com/2-18.html">不锈钢制品</a> <a href="http://www.hongju168.com/2-19.html">零件盒|零件柜</a> <a href="http://www.njhongju.cn">折叠式仓储笼|仓库笼</a> <a href="http://www.njhongju.cn">钢托盘</a> <a href="http://www.njhongju.cn">钢制料箱</a> <a href="http://www.njhongju.cn">堆垛架</a> <a href="http://www.njhongju.cn">物流台车</a> <a href="http://www.njhongju.cn">手推车</a> <a href="http://www.njhongju.cn/index.htm">钢托盘</a> <a href="http://www.njhongju.cn/index.htm">折叠式仓储笼|仓库笼</a> <a href="http://www.njhongju.cn/hj1.htm">折叠式仓储笼|仓库笼</a> <a href="http://www.njhongju.cn/hj2.htm">钢托盘|钢制托盘|铁托盘|金属托盘|镀锌托盘</a> <a href="http://www.njhongju.cn/hj3.htm">堆垛架|巧固架</a> <a href="http://www.njhongju.cn/hj4.htm">钢制料箱</a> <a href="http://www.njhongju.cn/hj5.htm">物流台车|载物台车</a> <a href="http://www.njhongju.cn/stc.htm">手推车|静音手推车</a> <a href="http://www.njhongju.cn/stc1.htm">手推车|静音手推车</a> <a href="http://www.njhongju.cn/index1.htm">仓储笼|钢托盘|钢制料箱|堆垛架|物流台车|手推车</a> <a href="http://www.njhongju.cn/index2.htm">仓储笼|钢托盘</a> <a href="http://www.njhongju.cn/index4.htm">仓储笼</a>
3 月 13 日

引用通告

此日志的引用通告 URL 是:
http://iancooper.spaces.live.com/blog/cns!844BD2811F9ABE9C!459.trak
引用此项的网络日志