BorisOsipov / wdio-reportportal-reporter

A WebdriverIO plugin. Report results to Report Portal.
MIT License
23 stars 29 forks source link

Support for suite retry using Jasmine #157

Open itayTipalti opened 3 years ago

itayTipalti commented 3 years ago

hi,

The problem

When I run tests in wdio using jasmine, the current retry mechanism does not support a retry in the suite(describe) level. maybe there could be a retry mechanism to avoid the next issue ,where there are duplications in the suite names:

image

Environment

WebdriverIO version: 6 wdio-reportportal-version version: 6.4 Node.js version:14.16.0 WDIO Testrunner and version(mocha\cucumber\jasmine):Jasmine: 7.5.2 Additional wdio packages used (if applicable):wdio-reportportal-reporter,wdio-reportportal-service

Thanks!

BorisOsipov commented 3 years ago

@itayTipalti I am not sure that RP supports suite retry and I don't have plans to implement this.

itayTipalti commented 3 years ago

@BorisOsipov

I know that the current retry mechanism allows a retry to the same test item, where it identifies the name and reports into the same test item(exists right now).

Maybe there is a way that in case of 2 suites with the same name, the second suite will be reported into the first suite in case retry flag is activated?

BorisOsipov commented 3 years ago

Maybe there is a way that in case of 2 suites with the same name, the second suite will be reported into the first suite in case retry flag is activated?

maybe. I didn't try. As I see on rp api there is no difference between suite and test testitems. But I don't know how will rp process suite retry in reality.

itayTipalti commented 3 years ago

@BorisOsipov

From my experience you cannot start a root item which is a retry of another item (it returns an error that it is not possible). It seems that only retrying a test item inside one suite is optimal for that.

BorisOsipov commented 3 years ago

@itayTipalti ok. and what do you want from reporter if Rp doesn't support suites retry?

itayTipalti commented 3 years ago

@BorisOsipov If possible, To create a workaround that does the following: If there is a suite, that failed, and the same suite is being executed again(part of retry), so (if the flag for that is true), the reporter will report to the first suite, instead of creating a new suite.

If the existing property, "setRetryTrue" is true, so what will happen is that the same tests will be reported to the first suite, and will be shown as retried. it will be a great way to show a suite that all its tests were retried, instead of creating a new suite

BorisOsipov commented 3 years ago

@BorisOsipov theoretically it looks possible. RP allows report testitem in closed suite. But I can't make any promise to implement it in near future. It is not easy and it will be long

itayTipalti commented 3 years ago

@BorisOsipov ok, thanks!