我在无头 ubuntu 服务器上运行一个 jenkins 实例。对于某些 GUI 测试,我收到以下错误
org.assertj.swing.exception.ActionFailedException: The component to click is out of the boundaries of the screen
如何设置我的屏幕分辨率?
如果您使用的是xvfb,这可能是您想要的:
xvfb-run --auto-servernum --server-args "-screen 0 1024x768x24" ant test
这将调整虚拟屏幕大小。用您自己的命令替换“ant test”。