Skip to content

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

Open

Description

@KristineK

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)

Activity

  1. AmsterGet commented on Feb 16, 2024

    @AmsterGet
    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions