BorisOsipov / wdio-reportportal-reporter

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

Add description to suite #191

Closed dwentland24 closed 1 year ago

dwentland24 commented 1 year ago

Add description to all suites and current suite

Needed some information in the suites description, like link to browserstack session or links to logfiles.

There are two new API endpoints to add description to suites.

  1. addDescriptionToCurrentSuite adds the description to the current running suite
  2. addDescriptionToAllSuites Adds the description to all suites that are running or not finished.

I needed to add information in before all hook without loosing this information if there were more suites in one spec. So there is now a class property which gets assigned in the onRunnerStart hook and are added to the description for each suite.

For adding text to the description for the current suite there is another class property which gets dumped in the onSuiteEnd hook.

The description gets added to the existing description.

Fixed: #167

BorisOsipov commented 1 year ago

Thanks @dwentland24!

Published as 7.6.0