Yurie
3 years agoNew Contributor
SoapUI running in Docker Container throwing java.io.FileNotFoundException
I am trying to run soapUI on Docker on Lima.
The docker image is using soapuios-testrunner.
I am trying to run it with the following command:
docker run -v="ProjectDIR":/project \
-v="ReportsDIR":/reports \
-e COMMAND_LINE="/%project%/soapui-project.xml -f/%reports% -r -M" \
-it smartbear/soapuios-testrunner:latest
When I run it, I get a FileNotFoundException and cannot output a report.
ERROR [TestCaseRunLogReport] Could not write test_case_run_log_report.xml to disk
01:46:09,875 ERROR [TestCaseRunLogReport] Could not write test_case_run_log_report.xml to disk
01:46:09,877 ERROR [SoapUI] An error occurred [/./reports/test_case_run_log_report.xml (Read-only file system)], see error log for details
01:46:09,877 ERROR [SoapUI] An error occurred [/./reports/test_case_run_log_report.xml (Read-only file system)], see error log for details
01:46:09,877 ERROR [errorlog] java.io.FileNotFoundException: /./reports/test_case_run_log_report.xml (Read-only file system)
java.io.FileNotFoundException: /./reports/test_case_run_log_report.xml (Read-only file system)
at java.io.FileOutputStream.open0(Native Method) ~[?:?]
at java.io.FileOutputStream.open(FileOutputStream.java:291) ~[?:?]
at java.io.FileOutputStream.<init>(FileOutputStream.java:234) ~[?:?]
at java.io.FileOutputStream.<init>(FileOutputStream.java:184) ~[?:?]
at org.apache.xmlbeans.impl.store.Cursor._save(Cursor.java:566) ~[xmlbeans-3.1.1-sb-fixed.jar:?]
at org.apache.xmlbeans.impl.store.Cursor.save(Cursor.java:2526) ~[xmlbeans-3.1.1-sb-fixed.jar:?]
at org.apache.xmlbeans.impl.values.XmlObjectBase.save(XmlObjectBase.java:220) ~[xmlbeans-3.1.1-sb-fixed.jar:?]
at org.apache.xmlbeans.impl.values.XmlObjectBase.save(XmlObjectBase.java:232) ~[xmlbeans-3.1.1-sb-fixed.jar:?]
at com.eviware.soapui.report.TestCaseRunLogReport.saveReportToFile(TestCaseRunLogReport.java:152) [soapui-5.7.0.jar:5.7.0]
at com.eviware.soapui.report.TestCaseRunLogReport.afterRun(TestCaseRunLogReport.java:121) [soapui-5.7.0.jar:5.7.0]
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.notifyAfterRun(AbstractTestCaseRunner.java:283) [soapui-5.7.0.jar:5.7.0]
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalFinally(AbstractTestCaseRunner.java:176) [soapui-5.7.0.jar:5.7.0]
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalFinally(AbstractTestCaseRunner.java:46) [soapui-5.7.0.jar:5.7.0]
at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:150) [soapui-5.7.0.jar:5.7.0]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) [?:?]
at java.lang.Thread.run(Thread.java:831) [?:?]
How can I fix this?