Forum Discussion

JayKrish's avatar
JayKrish
Occasional Contributor
5 years ago

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

  • richie's avatar
    richie
    Community Hero

    Hey JayKrish 

     

    I dont know whether this will help cos I had the same issue when running testrunner GUI - it might be the same - it might be different.  I dont know enough about what youre doing to determine if youre actually using the testrunner config or not......

     

    Anyway - I had the same access denied FileNotFoundException (and even raised a query about it) and I found out it cos my 'Reports' tab wasn't configured correctly.

     

    What does it say in your 'Root Folder' editable field? - when this was blank - I got the same behaviour you are reporting.

     

    See link

     

     

     

    I've running 3.3.0 and I just noticed that %WORKSPACE%, which is what it says to use on the link I supplied - wasn't resolving the correct path - so you might want to look at hardcoding this instead if its the same behaviour in whatever version of ReadyAPI! you're using.

    Actually Im finding a number of issues with my testrunner - it worked on previous versions.

     

    Anyway - hopefully this will help a bit.

     

    ta

     

    rich

    • JayKrish's avatar
      JayKrish
      Occasional Contributor

      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