-
Notifications
You must be signed in to change notification settings - Fork 14
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
Provide ability to share same report portal launch ID #86
Comments
As the Playwright has excellent support of running tests in parallel or sequentially out of the box, we didn't consider this feature for agent-js-playwright. |
@AmsterGet Sure, let me experiment with new version of playwright and see if it fulfills all the needs. If not will revert back on this issue. |
I have another use case that goes in a similar direction: I use GitlabCI to run Playwright tests for five different browsers. To increase performance, each browser runs parallel in a separate job. However, this also gives me five different launches in the ReportPortal. I would like to combine the results into one launch. |
Hello @sterschl !
Please let me know if there are any questions. |
Hi @AmsterGet, The only disadvantage is that the merge can only be done after the tests are finished. But this is not a problem. It would be great if in the future the Id could also be set via the playwright client. Then I would probably try the first option. |
Hi @sterschl ! |
@sumit-gupta91 Hello! |
@AmsterGet We are in process to upgrade to latest version of playwright and use the projects approach. If we have any more such requirements then I would prefer 1st approach as we are doing something similar with our unit tests as well. We use report portal for creating reports of unit tests runs as well and it has a similar issue. reportportal/agent-js-jest#121 We use agent-js-jest ability to accept report portal launch ID. |
Hello guys! |
@sumit-gupta91 @sterschl |
Playwright provides support for grouping tests using annotations. Using these annotations I can group tests and run them in the order we want.
For example :
yarn run e2e -- --grep '@flow=auth' --project 'chromium'
yarn run e2e -- --grep-invert '@flow=auth'
Above, all the auth test cases are run first followed by all the other test cases which can leverage already established auth sessions.
The problem is, report portal integration generates different launch ID for each of these runs even though they are for the same commitID, which causes problems in reporting on report portal.
The text was updated successfully, but these errors were encountered: