Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't set Test Case Id via the library #216

Open
CraigAndrew opened this issue Oct 20, 2023 · 1 comment
Open

Can't set Test Case Id via the library #216

CraigAndrew opened this issue Oct 20, 2023 · 1 comment

Comments

@CraigAndrew
Copy link

CraigAndrew commented Oct 20, 2023

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
Copy link
Author

CraigAndrew commented Oct 30, 2023

I've raised a Pull Request to workaround this issue: #218

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant