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

After running tests incorrect report portal URL if running in DEBUG mode #191

Open
KristineK opened this issue Feb 16, 2024 · 1 comment
Labels

Comments

@KristineK
Copy link

After running tests in the 'DEBUG' mode I see that we are getting link to the "launches" instead of debugs (from
https://github.com/reportportal/client-javascript/blob/develop/lib/report-portal-client.js#L249 )

When I run tests in the playwright I see at the end text like:
"ReportPortal Launch Link: https://<reportportal_url>//launches/all/", but in my project I do I configuration:

const baseReportPortalConfig = {
  apiKey: '<key>',
  endpoint: '<endpoint>',
  project: '<project>',
  launch: '<launch>',
  description: '<description>',
  mode: 'DEBUG',
  skippedIssue: true,
  debug: false,
  includeTestSteps: true,
  log: true
};

So I expect the URL to be "https://<reportportal_url>//userdebug/all/".

I do see the correct URL if I go to the report portal UI, but not in the test, which is confusing, since if I open the launch URL it has no logs.

My setup is Playwright + ReportPortal (https://github.com/reportportal/agent-js-playwright + https://github.com/reportportal/client-javascript/ + https://www.npmjs.com/package/@playwright/test)

@AmsterGet
Copy link
Member

Hi @KristineK !
Thanks for pointing our attention to this!

I suppose that the URL that returned from the response is hardcoded on the ReportPortal API side.
I guess we can fix this on the JS client side just by replacing launches with userdebug in case of 'DEBUG' mode, or even better to completely construct the right URL on our side. cc @AliakseiLiasnitski
I'll post ticket in our backlog and will notify you here once it will be done.

Happy Friday!

@AmsterGet AmsterGet added the bug label Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants