Forum Discussion
raj123456
10 years agoOccasional Contributor
hi
we are not using any maven or ant
we will execute the scripts on request basis.
nmrao
10 years agoCommunity Hero
Below script is taken from SoapUITestCaseRunner class. Refer here. This can generate junit style test result in xml file. Then you can use different approaches to transform xml to html using any of the following:
- stylesheet
- MarkupBuilder
import com.eviware.soapui.tools.SoapUITestCaseRunner def runner = new SoapUITestCaseRunner() runner.with { //change the paths as needed to suit your environment setProjectFile('/path/to/Sample-soapui-project.xml') //Ignore below if you do not have any special settings. setSettingsFile('/path/to/soapui-settings.xml') setOutputFolder('/tmp/results') setPrintReport(true) setExportAll(true) setJUnitReport(true) run() }
If you use ant, it would be simple and do not have to write stylesheet or MarkupBuilder. Use below link for more details.