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

Can we ignore set up and teardown in the report.xml #7

Open
LinhDo-LGG opened this issue May 10, 2024 · 3 comments
Open

Can we ignore set up and teardown in the report.xml #7

LinhDo-LGG opened this issue May 10, 2024 · 3 comments
Assignees

Comments

@LinhDo-LGG
Copy link

Because setup and teardown in Playwright are tests, when uploading the report to Xray, it will create 2 test cases for setup and teardown. Is there any way to run these setups but exclude them when generating the report.xml file?

@LinhDo-LGG
Copy link
Author

Resolve the issue with below steps:

  1. Read the xml file
  2. Convert to js object
  3. Loop through test suites
  4. Remove setup and teardown test suites
  5. Convert the object back to xml string
  6. Call the API

@bitcoder
Copy link
Contributor

bitcoder commented Jun 11, 2024

@LinhDo-LGG ,

  1. to be able to exactly replicate the issue, can you please share a Playwright code snippet and the JUnit XML report that this reporter generated?
  2. which Playwright version are you using?

@bitcoder bitcoder self-assigned this Jun 11, 2024
@bitcoder
Copy link
Contributor

bitcoder commented Jun 11, 2024

If you were referring to global setup/teardown, there's currently no specific handling of it

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

No branches or pull requests

2 participants