wdio-reportportal-reporter
wdio-reportportal-reporter copied to clipboard
(feature): Allow create Nested steps from test code
Allow create steps from code.
Example:
step("Given I open the site /", () => {
// some code
})
step("When I click on the element #textinput", () => {
// some code
})
step("Then I expect that element #textinput is focused", () => {
// some code
})
Should produce nested steps in RP:
Also it will be nice to have some typescript decorators for PageObject methods.
export class LoginPage {
@Step("Login to app by login {{0}} and password {{1}}")
public login(login: string, password: string) {
// some code
}
}
and call LoginPage().login("foo", "bar")
should produce step in Report Portal as on screen above.
I am looking forward to this feature.
one more example do it like allure reporter
const rpReporter = require('wdio-reportportal-reporter');
class popup {
...
save() {
rpReporter.startStep('click Save');
this.save().click();
this.agree().click();
rpReporter.endStep();
}
}