Posted On: Apr 03, 2020
The @Shared annotation is used to share objects between the steps and tasks in the test. It acts as a shortcut for @Steps(shared=true) and comes as handy in Screenplay tests. Here, the @Shared annotation reflects the intention more accurately than the @Steps annotation.
Never Miss an Articles from us.