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

Only attach log files for current test #17949

Merged
merged 1 commit into from Oct 12, 2023

Conversation

BretJohnson
Copy link
Member

@BretJohnson BretJohnson commented Oct 11, 2023

Previously we were attaching all log files in the appium log directory, so failed tests in AzDO had a large number of attachments, most unrelated to the test at hand. Fix to only attach files for the current test.

@BretJohnson BretJohnson requested a review from a team as a code owner October 11, 2023 06:09
@BretJohnson BretJohnson force-pushed the dev/bretjohn/fix-appium-test-attachments branch 5 times, most recently from c0c8528 to df189ff Compare October 11, 2023 06:52
jsuarezruiz
jsuarezruiz previously approved these changes Oct 11, 2023
Previously we were attaching all log files in the appium log directory, so failed tests in AzDO had a large number of attachments, most unrelated to the test at hand. Fix to only attach files for the current test.
@BretJohnson
Copy link
Member Author

@sbanni - I believe this gets everything, just adding the screenshot and pagesource.txt explicitly put in the log directory, not needing to iterate thru all the log files. But can you please confirm there's nothing that could be missed here.
As for visual test screenshots, those call TestContext.AddTestAttachment separately, so they're covered.

@rmarinho rmarinho merged commit 40caa02 into main Oct 12, 2023
47 checks passed
@rmarinho rmarinho deleted the dev/bretjohn/fix-appium-test-attachments branch October 12, 2023 13:05
@github-actions github-actions bot locked and limited conversation to collaborators Dec 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants