2

在我本地的 Unix Ubuntu 环境中,我不断收到错误消息

java.awt.AWTError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.

我尝试了以下所有选项

1)-Djava.awt.headless

2)安装xvbf。

3) 导出显示=:0.0

我也给了命令行

./katalon -runMode=console -projectPath="/home/jenktran/Automation/Katalon First Proj/Katalon First Proj.prj" -retry=0 -testSuitePath="Test Suites/TimesheetTestCaseForChrome" -browserType="Chrome (headless)"

./katalon -runMode=console -projectPath="/home/jenktran/Automation/Katalon First Proj/Katalon First Proj.prj" -retry=0 -testSuitePath="Test Suites/TimesheetTestCaseForChrome" -browserType="Chrome (headless)" ---Djava.awt.headless

我还能做什么?

4

1 回答 1

0

尝试命令 $xhost + 这将禁用访问控制并允许任何客户端连接

于 2018-02-26T06:55:28.553 回答