【问题标题】:Testcafe not running the test in chromium browser when they are in the background当它们在后台时,Testcafe 没有在铬浏览器中运行测试
【发布时间】:2020-07-21 09:59:22
【问题描述】:

我正在 Chromium 上运行一些 Testcafe e2e 测试,并发性 = 4。问题是 testcafe 打开的所有 4 个浏览器都重叠,而后台的浏览器不运行任何测试并永远冻结。

所有 4 个浏览器之上的并发之一将执行所有测试,而其他 3 个并发将尝试运行 3 个不同的测试装置而不执行或启动任何测试。

我正在运行我的测试

"testcafe \"chromium --disable-background-timer-throttling '--window-size=1200,700'\" src/tests -c 4 -reporter spec"

如果--disable-background-timer-throttling 未被禁用,我一直在检查chrome 是否可以禁用后台浏览器。仍然有同样的问题。这是旧 Testcafe 论坛中有关与 chrome 相关的此问题的讨论 https://github.com/DevExpress/testcafe/issues/2939

知道为什么 Chromium 没有在后台执行我的测试吗?

【问题讨论】:

    标签: testing automated-tests chromium e2e-testing testcafe


    【解决方案1】:

    我发现一种解决方法是以无头模式运行 chromium 浏览器。这将防止后台窗口不工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-08-25
      • 1970-01-01
      • 2019-02-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多