来自 WatiN 和 MSTest 的虚假错误

发布于 2024-09-24 04:15:12 字数 178 浏览 0 评论 0原文

我正在运行 MSTest 以使用浏览器自动化框架 WatiN。当我单独运行测试时,它们总是通过,但是当我运行整套自动化测试 7-8 时,每次都会失败并出现不同的错误。所有测试都是隔离的,每次都从一开始就登录站点,所以我不认为这与测试的编写方式有关。

还有其他人遇到过这种情况吗?

可能与 MSTest 有关吗?

I'm running MSTest to use the browser-automation framework, WatiN. When I run tests individually they always pass but however when I run the entire set of automation tests 7-8 tend to fail with different errors each time. All the tests are isolated and login to the site from the beginning every time, so I don't think it's related to the way the tests are written.

Has anyone else encountered this?

Is it likely to be MSTest related?

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

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

发布评论

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

评论(1

各自安好 2024-10-01 04:15:12

我猜你在每次测试结束时都没有关闭浏览器。这可能会导致当您运行下一步时,先前状态的会话仍然存在。例如,当您的测试需要登录页面时,您可能仍然处于登录状态。

I would guess that you are not closing the browser at the end of each and every test. This can cause the session from the previous state to still be around when you run the next step. For example, you might still be logged in when your test is expecting a login page.

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