GUI的验收测试在测试时是否真的显示出来了?

发布于 2024-09-10 19:02:26 字数 104 浏览 5 评论 0原文

在对 GUI 进行验收测试时,对 GUI 的测试是否实际上显示了 GUI(我想是不到一秒的时间),还是只是模拟实现?我说的是 WindowLicker、White、NUnitForms 等框架。

When doing Acceptance Testings to the GUI, do tests to the GUI actually show the GUI (in a fraction of a second, I suppose) or are they just mock implementations? I'm talking about frameworks as WindowLicker, White, NUnitForms, etc.

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

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

发布评论

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

评论(3

黑色毁心梦 2024-09-17 19:02:27

我假设您指的是自动化测试。我对 GUI 验收测试的解释涉及人们实际使用 GUI 来查看它是否完成了它应该做的事情,在这种情况下,您显然需要显示 GUI。

在我为 GUI 组件编写的测试用例中,您通常会创建一个没有模型的真实 UI,但不要使其可见。通常这已经足够了,但更高级别的 GUI 组件的模型可能很困难。然而,许多 GUI 组件需要成为组件树的一部分才能发挥作用,这意味着您通常需要在具有显示器的计算机上运行,​​即使您不使用它。在某些函数中,GUI 组件在可见时的行为会有所不同,但我已经能够解决这个问题,只有一个涉及 JOGL 的例外。

I'm going to assume you mean automated testing. My interpretation of acceptance testing for a GUI involves people actually using the GUI to see if it does what it's supposed to do, in which case you obviously need to show the GUI.

In the test cases I've written for GUI components you usually create a genuine UI without mockups, but don't make it visible. Usually that is sufficient, and mockups of the higher level GUI components can be hard. However a lot of GUI components need to be part of a component tree to function This means that you generally need to run on a machine which has a display, even if you don't use it. There are some functions where GUI components behave differently when they are visible, but I've been able to work round that, with a single exception involving JOGL.

蔚蓝源自深海 2024-09-17 19:02:27

上次我使用它时,NunitForms 会在屏幕上显示正在测试的实际表单。如果您愿意,可以让它在屏幕外呈现实际的表单。你说的其他的我不太清楚,我没用过。

Last time i used it, NunitForms would show the actual Form being tested on screen. You could make it render the actual form off screen if you prefer. I'm not sure about the others you mentioned, i have never used them.

再浓的妆也掩不了殇 2024-09-17 19:02:27

我不知道你提到的其他人,但 WindowLicker 确实显示了 GUI。我不知道不这样做是否可以运行它,我从未尝试过。它还需要比“不到一秒”更长的时间。您可以观看它移动鼠标指针、单击项目、“键入”文本等。

I don't know about the others you mentioned but WindowLicker definitely shows the gui. I don't know if it's possible to run it without doing this, I never tried. It also takes longer than 'a fraction of a second'. You can watch it move the mouse pointer around, click on items, 'typing' text, etc.

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