client-java icon indicating copy to clipboard operation
client-java copied to clipboard

[Improve] Add the ability to call methods in the @Step annotation

Open tronstone opened this issue 1 year ago • 0 comments

In Add more sources to Step annotaion issue a lot of work has been done, thanks to all the developers who participated in this request. But as far as I understand from the documentation and what I tried in practice, the possibility to call parameter methods has never been implemented.

Is it possible to add the following feature:

@Step("Asserting '{dataCheckEntry.getKey()}' year")
private void assertYear(Map.Entry<Integer, String> dataCheckEntry) { // method entry just for example
    // Some step code
}

tronstone avatar Apr 26 '23 14:04 tronstone