wdio-reportportal-reporter
wdio-reportportal-reporter copied to clipboard
Can't set Test Case Id via the library
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
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.
I've raised a Pull Request to workaround this issue: https://github.com/BorisOsipov/wdio-reportportal-reporter/pull/218