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

[Xcode 15] Allure Report does not contain XCTest video recordings / screenshots #67

Open
testableapple opened this issue Feb 13, 2024 · 4 comments

Comments

@testableapple
Copy link

Hi there! In Xcode 15, Apple introduced Xcode test reports. It offers video recordings out of the box. Video recordings are enabled by default, and they replace screenshots:

Screenshot 2024-02-13 at 2 21 14 PM

The problem is that xcresults does not extract these video recordings. I assume this is because these recordings have some new format.

Environment

  • allurectl: 2.15.1
  • xcresults: 1.16.3
  • Xcode 15.2
  • iOS: 17.2

Steps

  1. Run the XCTests on iOS Simulator (17.2)
  2. xcresults export test_output/TestApp.xcresult allure_results/
  3. allurectl upload -e ${allure_url} --project-id ${allure_project_id} --launch-id ${allure_launch_id} allure_results/
  4. Open launch in Allure TestOps

Actual result

  • In the Allure Report, failed tests do not have screenshots or video recordings

Expected result

  • In the Allure Report, failed tests contain screenshots or video recordings (depending on xctestplan configuration)
@mohamedwasiq
Copy link

@testableapple @eroshenkoam Is there any fix for this ?

@testableapple
Copy link
Author

Hi @mohamedwasiq, not that I am aware of. I just updated xctestplan to capture screenshots instead of the video recordings. Hope this helps.

@mohamedwasiq
Copy link

My test plan uses screenshots only, but still Allure is not able to capture the screenshots.
Screenshot 2024-08-28 at 14 14 55
I'm using Xcode 15.4

@testableapple
Copy link
Author

Hi @mohamedwasiq, it's hard to say what's going wrong there. Works fine for me on xcresults 1.16.3.
Maybe you could share the xcresults version that you use and a screenshot showing the preferred capture format in your testplan?

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