Forum Discussion
Telmore_A_S_Sup
12 years agoNew Contributor
Ahh yea, missed that part in the code example - It was changed after I copied the example
This is my code right now - And it's not generating any RTF files.
String projectFile = "C:\\hjp\\soapUIprojects\\CommonAPI Test env-soapui-project.xml";
String outPutFolder = "C:\\hjp\\soapUiTests.testRunner\\src\\test\\soapUiTestLog\\";
String sysdate = new SimpleDateFormat("dd-MM-yyyy HH-mm-ss").format(new Date());
SoapUIProTestCaseRunner runner = new SoapUIProTestCaseRunner();
runner.setProjectFile(projectFile);
runner.setOutputFolder(outPutFolder + sysdate);
runner.setReportName("Project Report");
runner.setReportFormats(new String[]{"RTF"});
runner.run();
All I'm getting right now is .txt files in my outputfolder:
Example: CVR_TestSuite-lookupCVR-lookupCvr-0-FAILED.txt
What am I missing?
/Henrik
This is my code right now - And it's not generating any RTF files.
String projectFile = "C:\\hjp\\soapUIprojects\\CommonAPI Test env-soapui-project.xml";
String outPutFolder = "C:\\hjp\\soapUiTests.testRunner\\src\\test\\soapUiTestLog\\";
String sysdate = new SimpleDateFormat("dd-MM-yyyy HH-mm-ss").format(new Date());
SoapUIProTestCaseRunner runner = new SoapUIProTestCaseRunner();
runner.setProjectFile(projectFile);
runner.setOutputFolder(outPutFolder + sysdate);
runner.setReportName("Project Report");
runner.setReportFormats(new String[]{"RTF"});
runner.run();
All I'm getting right now is .txt files in my outputfolder:
Example: CVR_TestSuite-lookupCVR-lookupCvr-0-FAILED.txt
What am I missing?
/Henrik