UI测试框架+持续集成? [英] UI Testing Framework + Continuous Integration?

查看:129
本文介绍了UI测试框架+持续集成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我有我继承了一个应用程序,我想建立一个自动化测试套件的周围。该应用程序不是设计时考虑了可测试性,代码是一个大泥球。我的计划是在UI级别使用UI自动化测试框架,并创建一套测试,直到我有足够的覆盖面,让我开始有信心重构,并引入一些接缝到代码,以提高可测试性和设计。

So I have an application that I inherited and I want to build up an automated test suite around it. The application wasn't designed with testability in mind, and the code is a "big ball of mud". My plan was to use a UI Automation testing framework and create a suite of tests at the UI level until I had enough coverage to allow me to start refactoring with confidence and introducing some seams into the code to improve testability and design.

这是一个.net WinForms应用程序,这两个框架我所知道的是:

It's a .Net WinForms application, and the two frameworks I'm aware of are:

NUnitForms

项目白

这是我读过试图运行时,两个框架构成问题作为自动构建(持续集成),因为大多数CI产品运行作为Windows服务,如果UI使用模式对话框的应用程序将死得很难看事实的一部分。我使用CruiseControl.Net作为我的CI工具。

From what I've read both frameworks pose issues when trying to run as part of an automated build (Continuous Integration) due to the fact that most CI products run as a Windows Service and if the UI uses modal dialogs the application will die a horrible death. I'm using CruiseControl.Net as my CI tool.

没有任何人有任何建议来解决这个问题?另一种框架使用,可能使情况较好?

Does anybody have any suggestions to work around this issue? An alternative framework to use that may make the situation better?

谢谢,

迪伦

推荐答案

NUnitForms有一个隐藏桌面功能,可以让您从cc.net单元测试。

NUnitForms has a "hidden desktop" feature that will let you run unit tests from cc.net.

http://automaticchainsaw.blogspot.com/2007/09/winforms -testing-使用-nunitforms.html
的http:// automaticchainsaw.blogspot.com/2007/09/hidden-desktops-and-nunitforms.html

这篇关于UI测试框架+持续集成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆