Search code examples
javadebuggingautomationreporters

Settings File Not Available (Atu reporter)


I am trying to do some tests, at my project, but this exception stops my work. I just refactor the name of 2 classes, and after that appears this exception.

This is my exception:

java.lang.IllegalStateException: [ATU Custom Reporter Exception] Settings File Not Available at atu.testng.reports.listeners.ATUReportsListener.onStart(Unknown Source) at org.testng.SuiteRunner.invokeListeners(SuiteRunner.java:301) at org.testng.SuiteRunner.run(SuiteRunner.java:362) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208) at org.testng.TestNG.runSuitesLocally(TestNG.java:1137) at org.testng.TestNG.runSuites(TestNG.java:1049) at org.testng.TestNG.run(TestNG.java:1017) at org.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:73) at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:123) Caused by: [ATU Custom Reporter Exception] Settings File Not Available at atu.testng.reports.utils.SettingsFile.open(Unknown Source) at atu.testng.reports.utils.SettingsFile.get(Unknown Source) at atu.testng.reports.utils.SettingsFile.correctErrors(Unknown Source) ... 11 more


Solution

  • Here atu.testng.reports.utils.SettingsFile.open() the code is trying to open a file with some "settings". I guess your refactoring caused renaming of that file or some string holding the path to that file as well (refactoring can not just rename your classes but change the inner text of strings if you are not careful enough).

    So my advice would be to check what path is propagated to that method and from where and check if the path is really correct.