Closed steven-terrana closed 2 years ago
fixes #223
Adds a hookContext.methodName to filter Lifecycle Hooks for multi-method steps.
hookContext.methodName
for example, a step:
void call(){ println "call method" } void notCall(){ println "not call method" }
if a user wants to only trigger a hook after the notCall method, you could do:
notCall
@AfterStep({ hookContext.step == "whatever" && hookContext.methodName == "notCall" })
unit tests for dayz
PR Details
fixes #223
Description
Adds a
hookContext.methodName
to filter Lifecycle Hooks for multi-method steps.for example, a step:
if a user wants to only trigger a hook after the
notCall
method, you could do:How Has This Been Tested
unit tests for dayz
Types of Changes
Checklist