wdio-reportportal-reporter icon indicating copy to clipboard operation
wdio-reportportal-reporter copied to clipboard

Can't set Test Case Id via the library

Open CraigAndrew opened this issue 1 year ago • 1 comments

The problem

I've looked at the library methods available and can't seem to find the method setTestCaseId which is a common method used across the different report portal agent js type libraries. There is however an addAttribute method but can't figure out which attribute corresponds to the test case id in report portal

Environment

  • WebdriverIO version: v^7.2.3
  • wdio-reportportal-version version: v^7.4.2
  • Node.js version: v15.12.0
  • WDIO Testrunner and version(cucumber):
  • Additional wdio packages used (if applicable): "wdio-cucumberjs-json-reporter", "wdio-docker-service", "wdio-reportportal-service": "^7.3.1", "@wdio/sync"

Details

image Trying to set the test case id explicitly instead of it being set to the code reference which breaks on codebuild because each launch has a different build-id so launches don't link up and ReportPortal loses most of its benefits especially the history line.

Describe in more detail the problem you have been experiencing, if necessary.

Code To Reproduce Issue [ Good To Have ]

Please remember that, with sample code; it's easier to reproduce bug and much faster to fix it.

CraigAndrew avatar Oct 20 '23 20:10 CraigAndrew

I've raised a Pull Request to workaround this issue: https://github.com/BorisOsipov/wdio-reportportal-reporter/pull/218

CraigAndrew avatar Oct 30 '23 05:10 CraigAndrew