wdio-allure-reporter
wdio-allure-reporter copied to clipboard
Support Nested steps
Hi,
Is there any way I can have nested steps? Im creating steps after each wdio commands and I want to have attachments, screenshots, or more steps attached to each of those steps.
Thanks.
Is there any way I can have nested steps?
What do you mean by that?
Have something like this as test steps: https://www.screencast.com/t/McQImZ4q
Like how each steps are layered and I can even add attachments at any layer
Is there any way I can have nested steps?
No there is now way no.
From what I understand, allure-js-commons supports this via its Allure.prototype.startStep and Allure.prototype.endStep. My proposal to build some method decorator, similarly to what is done in Java with annotations
@ybilevych feel free to propose PR, but before describe here how wdio-allure-reporter api will look like.
btw somebody ask this question on allure for wdio https://github.com/allure-framework/allure-js-commons/issues/21. If I will have more time I will try to look into it too
@kimek I would suggest you to think how implement it for v5 reporter version if you want this. This repo is obsolete and anyway we will ask to port any changes here to v5 before merging.
Is there a way to benefit from recent fixes over here? https://github.com/allure-framework/allure-js/commit/ab47cddb012c00cfd1c81018fb6a2b13a3732e66