Reusing Steps

msuarz edited this page Sep 5, 2012 · 2 revisions

Same class

Calling a step in the same class
Is as simple as executing a method

Global class

Every class available for matching steps
Is also available as a global object

Steps with same name

Step could use the same name
The steps matching is always started from the last matched class
Keeping that in mind allows to get lucky and match the desired Step first

Dynamic Steps