JayKrish
5 years agoOccasional Contributor
File path to Reports throw java.io.FileNotFoundException error
Hi,
I would really appreciate some help on this.
i am trying to run ReadyAPI from Microsoft ADO pipeline as "Command Line" task.
When running directly from the server, everything is working fine. but when iam running as ADO Command Line job, it is throwing java.io.FileNotFoundException error (Access is denied)
i have verified the existence of the directory and the access.
Error log:
2020-08-18T20:16:18.6215099Z 16:16:18,590 INFO [WsdlProject] Loaded project from [file:/C:/Repos/DEX%20Automation/SoapUI/Projects/MB/MB-Regression-readyapi-project.xml] 2020-08-18T20:16:19.0387457Z 16:16:19,021 WARN [SoapUIProGroovyScriptEngineFactory] Missing scripts folder [C:\Program Files\SmartBear\ReadyAPI-2.6.0\bin\scripts] 2020-08-18T20:16:19.8153187Z 16:16:19,796 INFO [SoapUIProTestCaseRunner] Running tests in the project [MB Regression] 2020-08-18T20:16:19.9043796Z 16:16:19,899 INFO [SoapUIProTestCaseRunner] Running TestCase [eForm - Lease] 2020-08-18T20:16:19.9134132Z 16:16:19,912 INFO [SoapUIProTestCaseRunner] Running TestCase [eForm - Lease] 2020-08-18T20:16:20.3083347Z 16:16:20,291 INFO [DBDataSource] Retrieved 34 columns from the result set 2020-08-18T20:16:20.3110962Z 16:16:20,292 INFO [SoapUIProTestCaseRunner] running step [DataSource] 2020-08-18T20:16:20.4066108Z 16:16:20,364 INFO [DBDataSource] Retrieved 34 columns from the result set 2020-08-18T20:16:20.7955905Z 16:16:20,781 ERROR [SoapUIProTestCaseRunner] Error saving failed result: java.io.FileNotFoundException: C:\Program Files\SmartBear\ReadyAPI-3.2.5\bin\CDK-eForm__Lease-DataSource-0-PASS.txt (Access is denied) 2020-08-18T20:16:20.7958215Z java.io.FileNotFoundException: C:\Program Files\SmartBear\ReadyAPI-3.2.5\bin\CDK-eForm__Lease-DataSource-0-PASS.txt (Access is denied) 2020-08-18T20:16:20.7959605Z at java.io.FileOutputStream.open0(Native Method) ~[?:?] 2020-08-18T20:16:20.7960559Z at java.io.FileOutputStream.open(FileOutputStream.java:292) ~[?:?] 2020-08-18T20:16:20.7962203Z at java.io.FileOutputStream.<init>(FileOutputStream.java:235) ~[?:?]
thanks in advance for the help
Jay
You are right. i was changing the arguments that i was passing one by one and when updated the reports path, it actually stopped throwing this Access denied error. i wasn't sure why that happened, now that you have clarified.
Thanks a lot.
Jay