Forum Discussion

dweakley's avatar
dweakley
Occasional Contributor
12 years ago

JUnit Reporting Location

Hi, I'm running the SoapUI Pro Test CAse Runner from JUnit and I'm looking for a way to direct the JUnit style reports to specific directory.
I can generate the reports, using the code below, but I would like to define a directory for them as opposed to having them dumped in the root of the project file.

 SoapUIProTestCaseRunner runner = new SoapUIProTestCaseRunner(); 
runner.setProjectFile(SoapUIConfiguration.PROJECT_FILE);
runner.setEndpoint(SoapUIConfiguration.ENDPOINT_NAME);
runner.setIgnoreErrors(true);
runner.setPrintReport(true);
runner.setJUnitReport(true);
runner.run();