编码的 UI 测试生成器:验证文本框中的文本属性

发布于 2024-12-28 12:49:26 字数 223 浏览 3 评论 0原文

我使用 Coded UI Test Builder 在 WPF 应用程序上创建自动手动用户输入测试。

在我的一项测试中,设置对话框的许多文本框必须填充不同的值。最后必须保存设置。

稍后,新保存的设置将再次打开,并且必须验证文本框中的当前设置。

创建自动手动输入设置并保存输入是没有问题的。

但我现在看到了保存新设置后测试文本框值的方法。

有什么建议吗?

I use Coded UI Test Builder to create automated manual user input test on a WPF applcation.

In one of my tests many textboxes of Setting dialog box must filled with different values. At the end the settings must be saved.

Later the newly saved settings have be opened again and the current settings in the textboxes must be verified.

It's no problem to create a automated manual input of the settings and save the input.

But I see now way to test the values of the textboxes after saving the new settings.

Any suggestions?

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

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

发布评论

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

评论(1

本宫微胖 2025-01-04 12:49:26

编码 UI 测试生成器提供了在 UI 控件上添加断言的功能。

检查这个:http://msdn.microsoft.com/en-us/library/ dd286671.aspx

The Coded UI Test Builder provides the ability to add assertions on the UI controls.

Check this: http://msdn.microsoft.com/en-us/library/dd286671.aspx

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