Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 428 Bytes

2.1.5.md

File metadata and controls

14 lines (11 loc) · 428 Bytes

Serenity BDD 2.1.5

Serenity 2.1.5 release features a contribution from @a-en, the capability to process complex expressions in @Step annotations. When the parameter to a @Step method is an object, you can now refer to properties or methods of the object, for example:

@Step("Open as user {0.email}")
public void open(User user){...}

or

@Step("Open as user {0.getEmail()}")
public void open(User user)