Forum Discussion
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?
You can check here for more details
http://stackoverflow.com/questions/12952019/html-report-for-junit-by-ant
- go2khurram9 years agoContributor
Thanks Rao,
Yes it does create the an xml file but what I was expecting an html report.
Regards,
- nmrao9 years agoChampion Level 3Can this be considered answer accepted then?
- rupert_anderson9 years agoValued Contributor
Hi,
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: 3And the folowing files created in the /Users/test/reports folder:
GetInvoiceTestSuite-GetInvoiceTestCaseFail-getInvoice2-0-OK.txt
GetInvoiceTestSuite-GetInvoiceTestCasePass-getInvoice1-0-OK.txt
GetInvoiceTestSuite-GetInvoiceTestCasePass-getInvoice3-0-OK.txt
TEST-GetInvoiceTestSuite.xml (The JUnit one)
Cheers,
Rupert
- rupert_anderson9 years agoValued Contributor
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.
Cheers,
Rup
Related Content
- 9 years ago
- 4 years ago
Recent Discussions
- 23 hours ago