I am getting Testng FileNotFoundException
when running from command line, following is the command line parameters i am using
java -cp MyTestAutomation-06252019.jar org.testng.TestNG ZaleniumMiniRegression.xml
Following is the stack-trace:
[SuiteHTMLReporter] [ERROR] test-output\testng.css (The system cannot find the path specified)
java.io.FileNotFoundException: test-output\testng.css (The system cannot find the path specified)
at java.base/java.io.FileOutputStream.open0(Native Method)
at java.base/java.io.FileOutputStream.open(FileOutputStream.java:292)
at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:235)
at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:185)
at org.testng.internal.Utils.writeResourceToFile(Utils.java:263)
at org.testng.reporters.HtmlHelper.generateStylesheet(HtmlHelper.java:32)
at org.testng.reporters.SuiteHTMLReporter.generateReport(SuiteHTMLReporter.java:55)
at org.testng.TestNG.generateReports(TestNG.java:1062)
at org.testng.TestNG.run(TestNG.java:1005)
at org.testng.TestNG.privateMain(TestNG.java:1326)
at org.testng.TestNG.main(TestNG.java:1294)