Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.

Using Duration via the API for a result


I think I know the answer to this, but when logging a duration in the API; what is the smallest time slice we can use

I think it’s seconds, but a colleague here believes you can use fractional seconds. However, when i have tried using seconds such as 12.225s Testrail converts that into some other number.



Hi Jim,

Thanks for your posting! The smallest unit is currently seconds and the format supports integers only (so, 1s, 2s, … 12s, 13s, etc.). We recommend rounding numbers to the nearest integer before submitting values to TestRail’s API.

I hope this helps!