Forum Discussion

skelkar's avatar
skelkar
Contributor
11 years ago

CustomEventHandler - Target not working when target is all failed test cases?

Hi,

 

I wanted to log test name of all failed steps in my project after execution so I added below custom event handler -

 

Name - TestRunListener.afterStep

Event - TestRunListener.afterStep

Target - ${=testCaseResult.getStatus().toString() == 'FAILED'}

 

and script to execute - log.info "failed step name=" +testStep.name

 

But this is not working.

 

Is there any problem with the Target I put or event ?