We want to write a custom build notification template that prints information about each test case in a report (passed or failed). However, it appears that the rows in each build.reports.junit.values()
only contains data for fail or error test cases. Is there a way to access the row data for passed test cases?
For example, this groovy script in a "Misc > Execute Script" step only shows error/fail cases:
groovy:
java.lang.String[] keys = ["packageName", "className", "testName"];
for(reportset in build.reports.junit.values()) {
for(row in reportset.rows.sort { it.getRowKeyString(keys) }) {
logger.info(row.getRowKeyString(keys));
}
}
- solved #4
- replies 3
- views 2582
- stars 1