I want to generate Extent Reports for SoapUI tests. I do not want to use plain old frames based JUnit HTML Report that SoapUI offers. Does Extent Reports support this? An example would be nice. Thanks!
Asked
Active
Viewed 1,841 times
1 Answers
3
import com.relevantcodes.extentreports.ExtentReports;
import com.relevantcodes.extentreports.ExtentTest;
import com.relevantcodes.extentreports.LogStatus;
def failedTestCase = 0;
def extent = new ExtentReports("C:\\SampleReport.html",true)
runner.results.each {
testCaseResult -> def name = testCaseResult.testCase.name
def extentTest = extent.startTest(name, name)
if(testCaseResult.status.toString() == 'FAILED'){
failedTestCase++
extentTest.log(LogStatus.FAIL, testCaseResult.testCase.name)
} else {
extentTest.log(LogStatus.PASS, testCaseResult.testCase.name)
}
}

Rao
- 20,781
- 11
- 57
- 77

rajbhandaris
- 41
- 4
-
How did you implement extent reports in soapUI ? steps would be helpful.. Thanks – Abhinay Reddy Keesara Mar 19 '18 at 00:05
-
it is throwing me error "groovy.lang.MissingPropertyException: No such property: runner for class: Script14 error at line: 14" Please help! – koushick Nov 22 '19 at 18:52
-
How to add steps for each test case? if we need to capture assertions of the test cases? – ChanGan May 26 '20 at 06:42