Via the UI this can be done by right-click (e.g. on project) Lauch TestRunner, you can then select the JUnit report style under the Reports tab:
This effectively runs the testrunner script (found in the bin/ folder of SoapUI), the -j option is added on the testrunner.sh/bat if you want to generate JUnit reports via the command line instead e.g.
./testrunner.sh -f"./reports" -j project.xml
You can also produce JUnit reports using Maven and other script types.
Is this what you're looking for?
Rupert, Thanks for the prompt reply. Actually I had tried both options , I mean through test runners as well as command prompt. I have checked both options "Export Junit Results" and "Export Junit Result with test properties".
It doses created all the resquest and response files for individual test cases , but did not created any report. Is any thing I am missing or do I have to install any thing alomg with the SoapUI?
Yeah, it does create an XML JUnit style report, which CI tools like Jenkins etc can read.
I just ran:
./testrunner.sh -sGetInvoiceTestSuite -r -a -j -J -f/Users/test/reports "/Users/test/soapui projects/SOAPDBMock-Reporting-soapui-project.xml"
And I got the following output in the console:
6:22:10,849 INFO [log] <TestSuite name="GetInvoiceTestSuite"> <TestCases> <TestCase name="GetInvoiceTestCaseFail" status="FINISHED"> <TestSteps> <TestStep name="getInvoice2" status="OK"> <Messages/> </TestStep> </TestSteps> </TestCase> <TestCase name="GetInvoiceTestCasePass" status="FINISHED"> <TestSteps> <TestStep name="getInvoice1" status="OK"> <Messages/> </TestStep> <TestStep name="getInvoice3" status="OK"> <Messages/> </TestStep> </TestSteps> </TestCase> </TestCases> </TestSuite> 16:22:10,856 INFO [SoapUITestCaseRunner] TestSuite [GetInvoiceTestSuite] finished with status [FINISHED] in 657ms SoapUI 5.2.1 TestCaseRunner Summary ----------------------------- Time Taken: 1352ms Total TestSuites: 1 Total TestCases: 2 (0 failed) Total TestSteps: 3 Total Request Assertions: 6 Total Failed Assertions: 0 Total Exported Results: 3
And the folowing files created in the /Users/test/reports folder:
TEST-GetInvoiceTestSuite.xml (The JUnit one)
Ok, for an HTML report I tend to use another tools e.g. Jenkins.
SoapUI Pro/Ready API can do HTML reports, but the open source SoapUI can out-of-the-box.