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

Exposing launch link or launch UUID for use in upstream clients #195

Closed
barking-timber opened this issue Mar 4, 2024 · 3 comments · Fixed by #197 or #199
Closed

Exposing launch link or launch UUID for use in upstream clients #195

barking-timber opened this issue Mar 4, 2024 · 3 comments · Fixed by #197 or #199
Assignees
Milestone

Comments

@barking-timber
Copy link

Hi folks, a very initial feature request.

From the reportportal/agent-js-playwright perspective, we're currently relying on logLaunchLink option to provide a quick and direct link to the actual test run. We obtain it in a post-action, which is a script following the main test execution by grepping the STDOUT essentially. It's not tidy, as it eventually requires us to maintain another reporting realm, separate from the test framework reporting.

Do you think it would be a possible nice feature to expose the launch link outside the reportportal/client-javascript somehow? The only way of doing it I can think of would be the client-javascript setting an environment variable to be picked up. I don't think it's the cleanest option but would work, right?

This way we would benefit from Report Portal and report links in any reporting we could imagine (slack, github etc).

PS. One thing that needs checking, is how the test frameworks order the test reporters.

@AmsterGet
Copy link
Member

Hi @barking-timber !
Thanks for highlighting this.
It looks like reportportal/agent-js-webdriverio#50.
We just implemented such an option within #197, so it will be published in the next version of the client and will apply to all agents, including agent-js-playwright.

@AmsterGet AmsterGet added this to the 5.1.3 milestone Apr 9, 2024
@AmsterGet AmsterGet self-assigned this Apr 9, 2024
@AmsterGet AmsterGet linked a pull request Apr 9, 2024 that will close this issue
@AmsterGet
Copy link
Member

Hi @barking-timber !
Released in version 5.1.3.
So you can use this feature by simply reinstalling the agent-js-playwright version.
The documentation has been updated accordingly.

@AmsterGet AmsterGet linked a pull request Apr 11, 2024 that will close this issue
@barking-timber
Copy link
Author

You guys are awesome thank you 👏 I will take a look cause it'd be so simple now. For the record (maybe someone will use it) I've found a workaround which I call the RP GET /api/v1/:projectName/launch with a unique attribute to find the correct launch and get the launch uuid to build launch the launch link (which then I can use in further reporters like Slack).

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