基于 .Net / WPF 的应用程序的测试套件

发布于 2024-09-10 03:19:29 字数 207 浏览 3 评论 0原文

a我有兴趣对现有产品系列进行一些应用程序/系统级测试的自动化。我们的产品系列由几个不同的应用程序组成,这些应用程序用 .Net 3.5 编写并使用 WPF 作为表示层。

最终,我有兴趣找到一个能够执行场景并报告结果的应用程序测试套件。我想要某种方法来定义/记录场景,并查看哪些场景通过/失败了测试。

我在自动化应用程序测试领域没有任何经验。有人可以推荐一个测试套件吗?

aI am interested in automating some application / system level tests on an existing product range. Our product range consists of several distinct applications, written in .Net 3.5 and using WPF for the presentation layer.

Ultimately, I am interested in finding an application testing suite that is capable of executing scenarios and reporting results. I would like some way to define/record the scenarios, and see which scenarios passed/failed testing.

I do not have any experience in the area of automated application testing. Is anyone able to recommend a testing suite?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

萌辣 2024-09-17 03:19:29
不弃不离 2024-09-17 03:19:29

我使用QTP。它很好,但是很贵。选择工具取决于您可以花费的金额。

I use QTP. It's nice, but expensive. Selecting a tool depends on amount of money that you can spend.

数理化全能战士 2024-09-17 03:19:29

我会避免使用记录和回放系统,因为它们会产生脆弱的测试。
这些系统看起来没问题,直到您更改应用程序,并且您被迫重新编写测试代码。

更新、更敏捷、友好的方法是 IcuTest (http://www.IcuTest.com/ )。

I would avoid the record and playback systems because they produce fragile tests.
These systems seem ok until you change the app, and you're forced to recode your tests.

A newer and more agile friendly approach is in tools like IcuTest (http://www.IcuTest.com/).

め七分饶幸 2024-09-17 03:19:29

Visual Studio 2010 包含一个用于进行 GUI 测试的新产品。 Test Manager 2010 包含在 Visual Studio 2010 Test ProfessionalVisual Studio 2010 Ultimate,支持在 GUI 应用程序中记录和回放操作以及丰富的报告。

这些工具与 Team Foundation Server 2010 集成,以存储测试用例、测试运行并记录测试期间发现的错误。

这篇博文(最终!)包含 Visual Studio 中的测试过程和工具的概述。重点关注测试工作流程并观看随附的视频以获取更多信息。

Visual Studio 2010 includes a new product for doing GUI testing. Test Manager 2010 is included in Visual Studio 2010 Test Professional and Visual Studio 2010 Ultimate and enables recording and playback of actions in GUI applications as well as rich reporting.

The tools integrate with Team Foundation Server 2010 to store test cases, test runs and log bugs that are found during testing.

This blog post (eventually!) includes an overview of the testing process and tools in Visual Studio. Focus on the Testing Workflow and have a look at the included videos for more information.

赴月观长安 2024-09-17 03:19:29

如果您愿意投入工作,我找到了 White Framework,构建于 Microsoft UI Automation API(支持 WinForms、WPF 和 Win32),是最灵活和可定制的方法。我曾经开发过一个 GUI 自动化测试套件,包含超过 2500 个测试(>12 小时的运行时间)。

White Framework 还可以集成到 NUnit 或 MSTest 中。

If you're willing to put in the work, I have found the White Framework, which is built on the Microsoft UI Automation API (supports WinForms, WPF & Win32), to be the most flexible and customizable approach. I have used to develop a GUI automation test suite of over 2500 tests (>12 hours run time).

The White Framework can also be integrated into either NUnit or MSTest.

浅语花开 2024-09-17 03:19:29

NUnit 是公认的最佳 .NET 单元测试器。在集成测试等方面,不确定。

如果您想测试 WPF 应用程序,几乎唯一的方法就是使用 MVVM。将视图数据与其他数据分开可以让您对虚拟视图进行单元测试。如果您还没有这样做,那么可能不值得,因为这是一个很大的架构变化。

NUnit is the generally accepted best .NET unit tester. In terms of integration testing etc, not sure about that.

If you want to test your WPF applications, pretty much the only way is to use MVVM. Separating out the view data from everything else allows you to unit test dummy view's. If you haven't done this already it's probably not worth it, since it's such a large architectural change.

焚却相思 2024-09-17 03:19:29

我为您的 .Net 3.5 和基于 WPF 的应用程序推荐几个自动化测试套件。

Microsoft Visual Studio Test Professional:这是 Microsoft 提供的综合测试套件,与 Visual Studio 集成,可用于自动化应用程序测试。它包括测试用例管理、测试执行和报告等功能。

Telerik Test Studio:这是一个测试套件,提供用于定义和执行测试以及报告结果的可视化界面。它还包括负载测试和性能测试等功能。

NUnit:这是一个流行的 .Net 开源测试框架,可用于自动化单元和集成测试。它包括测试用例管理和测试执行等功能,并且可以与持续集成系统等其他工具集成。

使用 White 进行自动化 UI 测试:这是一个 .Net 库,用于自动测试基于 WPF 的应用程序。它允许您编写与应用程序的用户界面交互的代码,并且可用于功能测试和回归测试。

这些只是可用于 .Net 和 WPF 应用程序的一些自动化测试套件。正确的选择取决于您的产品系列的具体需求和测试要求。

欢迎我的频道:
https://www.youtube.com/channel/UC8cggrSfpRTfjxpvvlDH6Gg

I recommend several automated testing suites for your .Net 3.5 and WPF-based applications.

Microsoft Visual Studio Test Professional: This is a comprehensive testing suite from Microsoft that is integrated with Visual Studio and can be used for automating application tests. It includes features such as test case management, test execution, and reporting.

Telerik Test Studio: This is a testing suite that provides a visual interface for defining and executing tests, as well as reporting results. It also includes features such as load testing and performance testing.

NUnit: This is a popular open-source testing framework for .Net that can be used for automating unit and integration tests. It includes features such as test case management and test execution, and can be integrated with other tools such as Continuous Integration systems.

Automated UI Testing with White: This is a .Net library for automating tests of WPF-based applications. It allows you to write code that interacts with the user interface of your applications, and can be used for both functional and regression testing.

These are just a few of the automated testing suites available for .Net and WPF applications. The right choice will depend on the specific needs of your product range and testing requirements.

Welcome my channel:
https://www.youtube.com/channel/UC8cggrSfpRTfjxpvvlDH6Gg

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文