Adding attachments to automated test results with the TRCLI

Опубликовано: 17 Май 2026
на канале: TestRail
866
2

In many cases, it becomes necessary to include attachments as part of automated test results. A common scenario is when a test fails, and you have captured a screenshot of the screen at the point of failure.

Attachments can also be uploaded with the help of TestRail CLI. If you are using JUnit framework then you can extend your test classes with the annotation on the code and add the TestRailTestReporter argument to your test methods.

📢 Make Your Testing More Efficient with the TestRail Academy
https://academy.testrail.com/

Get in touch!
https://support.testrail.com/hc/en-us...

Connect with us on LinkedIn
  / testrail   👈

Follow us on Facebook
  / testrailofficial   👈

Follow us on Twitter
  / testrail   👈