简体   繁体   English

从Web UI测试切换到Windows Forms应用程序测试

[英]Switching from Web UI testing to Windows Forms application testing

I have been using Selenium (WebDriver) for some time now, utilising Microsoft Team Foundation Server (VS2010, Microsoft Test Manager, Lab Management) to trigger my automated tests on specified builds. 我已经使用Selenium(WebDriver)一段时间了,利用Microsoft Team Foundation Server(VS2010,Microsoft测试管理器,实验室管理)在指定的版本上触发我的自动化测试。 This has been working great and I have even written a wrapper framework to allow for a lot of re-usability and switching to WatiN should it be needed. 这一直很好,我什至编写了包装器框架以允许大量重用,并在需要时切换到WatiN。

My issue is, now the applications I am to test are Windows Forms (with infragistics and Teecharts), not Web Applications, and I am under the impression from my research that both Selenium and WatiN will now be inappropriate. 我的问题是,现在要测试的应用程序是Windows Forms(具有Infragistics和Teecharts),而不是Web应用程序,我的研究给我的印象是Selenium和WatiN现在都不合适了。 I have been reading about NUnitForms and White as they appear to be common free choices amongst SO posts asking a similar question. 我一直在阅读有关NUnitForms和White的信息,因为它们在问类似问题的SO帖子中似乎是常见的免费选择。 However, I am wondering if anyone has had experience with setting up TFS with automated UI tests for a Windows Forms Application? 但是,我想知道是否有人对Windows窗体应用程序的自动UI测试设置TFS有经验?

Or, failing that, has anyone used Visual Studio 2010 with a free Windows Forms UI testing package and had some success? 还是失败了,是否有人将Visual Studio 2010与免费的Windows Forms UI测试包一起使用并取得了一些成功? My plan is to try White/NUnitForms next week, but though I would look for some personal recounts just in case this is not worth pursuing. 我的计划是下周尝试White / NUnitForms,但尽管我会寻找一些个人重新记录,以防万一这不值得追求。

After some more reading and checking around SO, I have found a few more helpful links. 在对SO进行更多阅读和检查之后,我发现了更多有用的链接。 I am still at a loss as to a solid way to do things but am confident it can be done. 对于做事的可靠方式,我仍然不知所措,但我相信可以做到。

The following links I found helpful; 我发现以下链接很有帮助; winforms Post on SO , Continuous Integration in White Documentation (I missed this initially somehow...), and as a further look I found utilising NUnit with White TFS is fully supported for my needs. 关于SO的winforms帖子 ,White文档中的持续集成 (我最初以某种方式错过了它……),进一步发现,我的需求完全支持将NUnit与White TFS结合使用。 NUnit with TFS can be found here . 带有TFS的NUnit可以在这里找到。

Hope this helps anyone in the same position, and I welcome any further answers as I still have not commenced any actual testing. 希望这可以帮助处于同一职位的任何人,并且我仍未开始任何实际测试,因此欢迎进一步的回答。

EDIT: Have decided to use White with NUnit as NUnit has a lot of documentation with results integrated with TFS and White is somewhat of a wrapper to Visual Studio's Automation Tools. 编辑:决定将White与NUnit一起使用,因为NUnit有很多文档,其结果与TFS集成在一起,而White在某种程度上是Visual Studio自动化工具的包装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM