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

EPMRPP-84613 Playwright tags are parsed to the RP's attributes and attached to the tests #133

Conversation

abdelrhman-arnos
Copy link

@abdelrhman-arnos abdelrhman-arnos commented Jan 22, 2024

The tags from Playwright should be converted into ReportPortal attributes and associated with the respective tests. If the test name carries tags as per the Playwright annotation conventions, these tags need to be included as test attributes in ReportPortal. Conversely, the test name itself should appear in ReportPortal without these tags.

For example, a test titled Test login page @tag should appear in ReportPortal as 'Test login page' with an attribute that reads { value: 'tag' }. Any tests that do not carry tags should be reported in their original format.

Additionally, if the configuration passed to the agent accommodates the grep or grep-invert options, corresponding attributes should be appended to the entire launch entity in ReportPortal.

Copy link
Member

@AmsterGet AmsterGet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also don't forget to cover your changes with tests and update readme file with new section Attributes under Reporting chapter with the guide how to use the feature.

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
src/__tests__/reporter/attributesReporting.spec.ts Outdated Show resolved Hide resolved
src/reporter.ts Show resolved Hide resolved
src/reporter.ts Outdated Show resolved Hide resolved
src/models/configs.ts Outdated Show resolved Hide resolved
src/reporter.ts Show resolved Hide resolved
tests/example.spec.js Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
tests/example.spec.js Outdated Show resolved Hide resolved
src/reporter.ts Outdated Show resolved Hide resolved
src/__tests__/reporter/startSuiteTestReporting.spec.ts Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
src/__tests__/reporter/retriesReporting.spec.ts Outdated Show resolved Hide resolved
src/__tests__/reporter/startSuiteTestReporting.spec.ts Outdated Show resolved Hide resolved
src/__tests__/reporter/startSuiteTestReporting.spec.ts Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
abdelrhman-arnos and others added 3 commits March 6, 2024 15:00
Co-authored-by: Ilya <ilya_hancharyk@epam.com>
Co-authored-by: Ilya <ilya_hancharyk@epam.com>
Co-authored-by: Ilya <ilya_hancharyk@epam.com>
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@AmsterGet AmsterGet changed the base branch from develop to feature/EPMRPP-84613-playwright-tags-to-rp-attributes March 8, 2024 14:14
@AmsterGet AmsterGet merged commit e970e5c into reportportal:feature/EPMRPP-84613-playwright-tags-to-rp-attributes Mar 8, 2024
2 checks passed
@pashidlos
Copy link

@abdelrhman-arnos thanks for the feature!
@AmsterGet when this gonna be released?

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

Successfully merging this pull request may close these issues.

3 participants