【问题标题】:BoundsLocatorException running testfx in headless modeBoundsLocatorException 在无头模式下运行 testfx
【发布时间】:2020-07-15 15:08:08
【问题描述】:

我正在运行一些 TestFx 测试用例,这些测试用例在我的本地无头模式和有头模式下运行良好,但由于某种原因,当相同的测试在 jenkins 中以无头模式运行时,我在单击某些按钮的行上收到以下消息.

java.lang.RuntimeException: org.testfx.service.locator.BoundsLocatorException: 边界在场景中不可见

有人知道为什么会这样吗?

这些是我的无头属性....

testfx.robot", "glass"
"testfx.headless", "true"
prism.order", "sw"
prism.text", "t2k"
headless.geometry", "1600x1200-32

【问题讨论】:

    标签: javafx headless bounds testfx


    【解决方案1】:

    所以我的问题是由 Jenkins 的屏幕尺寸不同引起的,我能够通过在 Jenkins 中运行时对应用程序尺寸进行硬编码来避免异常

    【讨论】:

      猜你喜欢
      • 2018-10-04
      • 2018-08-12
      • 1970-01-01
      • 2019-08-12
      • 1970-01-01
      • 1970-01-01
      • 2023-01-22
      • 2021-01-01
      相关资源
      最近更新 更多