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

Automatically capture test cases execution time


#1

Hi, I have a question about elapsed time. is it manual entry field or a calculated field. if it is manual entry field do you have a possibility automatically capture test cases execution time?


#2

If you’re viewing the test in TestRail you can click Start Progress, run your manual test, click Stop in TestRail, and the Add Result window will popup with Elapsed already filled in. You can also manually enter it if you don’t use the Start Progress option.

If you have automation that adds results to TestRail you can include the Elapsed in the API call.


#3

Hi Alex,

Thanks for your post! As Don mentioned (thanks @donalaya!), you can use the built in progress timer when executing tests manually via the ‘Start Progress’ button within the UI in TestRail and this would automatically add the elapsed time for you once you’ve submit your result. You can also just enter this into the field manually as well if you didn’t start the timer. You would also be able to add this via the API using the elapsed request field of the add_result methods, and you can learn more about this and see a request example on our website here:

http://docs.gurock.com/testrail-api2/reference-results#add_result

Data entered into the elapsed time field feeds into TestRail’s forecasting engine for help with tracking progress, and you can also learn more about this here:

http://docs.gurock.com/testrail-userguide/userguide-tips#scheduling_and_forecasting

Hope this helps!

Regards,
Marco