How to do Command line installation of SoapUI Open Source on Linux server?

ぃ、小莉子 提交于 2020-05-29 10:48:25

问题


I am installing SoapUI Open Source on my Linux server.

For installtion I am executing following commands:

wget https://s3.amazonaws.com/downloads.eviware/soapuios/5.4.0/SoapUI-5.4.0-linux-bin.tar.gz
tar -xzf SoapUI-5.4.0-linux-bin.tar.gz -C /opt/
cd /opt/SoapUI-5.4.0/bin/
./soapui.sh

While installtion last step (./soapui.sh) is giving me following error:

05:11:16,498 INFO  [DefaultSoapUICore] All plugins loaded
java.awt.HeadlessException: 
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
    at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)
    at java.awt.Window.<init>(Window.java:536)

When I use 'export DISPLAY=:0.0' , step ./soapui.sh goes in long run and need to abort manually with following message -

Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
    at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
    at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
    at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:115)

Kindly suggest solution for Command line installation of SoapUI Open Source on Linux.


回答1:


There is no need to run soapui.sh script for installtion as SoapUI-5.4.0-linux-bin.tar.gz aready has the testrunner.sh. Thanks to @Rao .

You can execute it as below:

wget https://s3.amazonaws.com/downloads.eviware/soapuios/5.4.0/SoapUI-5.4.0-linux-bin.tar.gz
tar -xzf SoapUI-5.4.0-linux-bin.tar.gz -C /opt/
/opt/SoapUI-5.4.0/bin/testrunner.sh -r soapui-project.xml


来源:https://stackoverflow.com/questions/49530478/how-to-do-command-line-installation-of-soapui-open-source-on-linux-server

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!