Forum Discussion
pembertonrw
12 years agoContributor
Ended up solving this by throwing a new exception so the groovy I used was:
resultsToCheckMap.each()
{
try
{
assert it.get('ExpectedResult') == it.get('ActualResult')
}
catch(AssertionError e)
{
throw new Exception("Actual result did not match expected result for Property: " + it.get('PropertyName') + "Actual: " + it.get('ActualResult') + "ExpectedResult: " + it.get('ExpectedResult'))
}
}