Ask a Question

Is it possible to run the Testrunner in a docker container?

SOLVED
jbella
Occasional Contributor

Is it possible to run the Testrunner in a docker container?

Hi,

 

Is it possible to run the Testrunner in a Docker container? I have not be successful running it without X11.

 

/ Johan

18 REPLIES 18
nmrao
Champion Level 2

You mean, not able to run testrunner.sh script command line utility failed to execute the soapui project? error details please?


Regards,
Rao.
jbella
Occasional Contributor

First I get:

 

 

java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at sun.awt.HeadlessToolkit.getScreenSize(HeadlessToolkit.java:284)
at com.eviware.soapui.analytics.providers.BaseAnalyticsProvider.getStrScreenSize(BaseAnalyticsProvider.java:48)
at com.eviware.soapui.analytics.providers.GoogleAnalyticsProvider.getEventLabel(GoogleAnalyticsProvider.java:165)
at com.eviware.soapui.analytics.providers.GoogleAnalyticsProvider.buildParametersString(GoogleAnalyticsProvider.java:73)
at com.eviware.soapui.analytics.providers.GoogleAnalyticsProvider.trackAction(GoogleAnalyticsProvider.java:48)
at com.eviware.soapui.analytics.AnalyticsManager$3.run(AnalyticsManager.java:167)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Got rid of that with: export DISPLAY=:0.0

 

 

Then I get:

Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libawt_xawt.so: libXrender.so.1: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1821)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1842)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at java.awt.Toolkit$3.run(Toolkit.java:1636)
at java.awt.Toolkit$3.run(Toolkit.java:1634)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1633)
at java.awt.Toolkit.<clinit>(Toolkit.java:1668)
at java.awt.Color.<clinit>(Color.java:275)
at com.eviware.soapui.support.UISupport.<clinit>(UISupport.java:131)
at com.eviware.soapui.SoapUI.usingGraphicalEnvironment(SoapUI.java:310)
at com.eviware.soapui.analytics.AnalyticsHelper.analyticsDisabled(AnalyticsHelper.java:19)
at com.eviware.soapui.analytics.AnalyticsHelper.InitializeAnalytics(AnalyticsHelper.java:42)
at com.eviware.soapui.tools.SoapUITestCaseRunner.main(SoapUITestCaseRunner.java:117)

To me it sounds wrong that Testrunner requires X11, after all it's supposed to be a commandline tool. I know that I can direct it to some other machine running X11, but I dont want to do that. The idea was to have something simple that would run on many different machines ranging from Windows dev machines to Azure.

 

/ Johan

 

TanyaYatskovska
SmartBear Alumni (Retired)

Hi Jbella,

 

Please make sure that you are not using the /i parameter in the TestRunner command-line:

http://readyapi.smartbear.com/features/automation/testrunner/cli

 

What command-line arguments are you using?

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



jbella
Occasional Contributor

I have just run:

 

./testrunner.sh 

I've not even tried it with a project yet..

 

/ Johan

nmrao
Champion Level 2

  1. Are you using Open Source Edition? or SoapUI NG?
  2. What is the version?
  3. Did you use tar ball or installer of soapUI distributables?
  4. What is the bit size? Unsatified link error is shown on the mismatch of bit length (32 bit / 64 bit. Please check if you have used the right installers for your machine, including java.

 



Regards,
Rao.
jbella
Occasional Contributor

It's running in a docker container, which from my understanding is 64-bit.

I'm getting SoapUI from here:

 

http://downloads.sourceforge.net/project/soapui/soapui/5.2.0/SoapUI-5.2.0-linux-bin.tar.gz

 ..and this is my Java version:

 

java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
jbella
Occasional Contributor

Just because I realize next suggestion would be to try 5.2.1, so I tested that as well, with the same result.

 

// Johan

nmrao
Champion Level 2

I ran on ubuntun 15.04, 64bit machine. I did not observe what you mention when testrunner.sh is run. However, it showing some Swing/AWT dialoag asking if you want to send statistics.


Regards,
Rao.
jbella
Occasional Contributor

Hi,

 

But then I'm guessing you are running X11 om that machine, my issue is that I don't have X11 available.

 

// Johan

cancel
Showing results for 
Search instead for 
Did you mean: