I think you did not read far enough in that link you posted, reading a bit further:
The target also support property-expansion, and if this returns a boolean string "true" or "false", this value will be used (true will apply the filter, false will not). When using this with the script-property-expansion feature, you can for example enter as follows in an TestRunListener.afterTestStep target:
${=testStepResult.timeTaken > 50}
This would evaluate the script and return "true" for those teststeps having taken more than 50 ms, thus applying the script only to them. |
note: emphasis is mine