You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

VSTS测试运行无法添加视频附件问题求助

Fix: .mp4 Videos Not Uploading with Publish Test Results (VSTS/Azure DevOps)

It sounds like you’ve stumbled on a typical quirk with the Publish Test Results task in Azure DevOps (formerly VSTS). Your hunch that attachments are only being pulled from the moconnor_SEPASELENIUMV folder is probably on the right track — let’s walk through concrete fixes to get those .mp4 videos attached to your test runs:

1. Tweak the Attachment Match Pattern in Task Settings

First, head to the Advanced section of your Publish Test Results task configuration. By default, the task uses a narrow file pattern (like **/*.trx) that doesn’t include .mp4 files.

Update the Attachments pattern to explicitly include video files:

  • To grab all .mp4s in your results directory structure: **/*.mp4
  • If your videos are only in moconnor_SEPASELENIUMV or its subfolders: moconnor_SEPASELENIUMV/**/*.mp4

Make sure the pattern covers the actual path where your videos are stored — if they’re outside the default test results directory, the task won’t pick them up otherwise.

2. Verify File Permissions & Size Limits

Sometimes the issue isn’t the task configuration, but the file itself:

  • Permissions: Ensure the build/release agent service account has read access to the .mp4 file. If the agent can’t read it, it can’t upload it.
  • Size Limits: Azure DevOps has a default attachment size limit (usually ~100MB). If your video is larger than this, you’ll need to adjust the Test attachment size limit in your organization’s settings (under Organization Settings > Test Plans > General).

3. Align Video File Location with Task’s Scanned Directory

If your suspicion about moconnor_SEPASELENIUMV being the only scanned folder is correct, try one of these:

  • Move your .mp4 files directly into the moconnor_SEPASELENIUMV folder (or its subfolders) alongside your test result files (like .trx files).
  • Expand the Test results files path in the task to include the directory where your videos are stored. This tells the task to scan that location for attachments too.

4. Dig Into Task Logs for Exact Errors

The most reliable way to confirm the issue is to check the detailed logs of the Publish Test Results task after a run. Look for lines like:

Skipping file 'C:\agent\work\1\s\test-run\video.mp4' as it doesn't match the attachment pattern

Or errors about missing files/permissions. These logs will tell you exactly whether it’s a pattern mismatch, path issue, or file problem.

5. Use a Preprocessing Copy Files Task (If Needed)

If all else fails, add a Copy Files task before Publish Test Results to copy your .mp4 videos into the moconnor_SEPASELENIUMV folder. This guarantees the task will scan and upload them, since it’s already looking in that directory for test artifacts.


内容的提问来源于stack exchange,提问作者Konzy262

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.26 08:39:39