API Call to Obtain Execution Time Related Information

Class library usage, coding and language questions.
Balash
Posts: 3
Joined: Fri May 31, 2019 5:32 pm

API Call to Obtain Execution Time Related Information

Post by Balash » Thu Aug 01, 2019 4:53 am

1) In the Reaorex reports the execution time of each step is reported. Is there an API to access these time?
2) In general what are the APIs to access time related information? That could be execution time of a step, test case or iteration of a test case?

Regards,

User avatar
N612
Posts: 108
Joined: Mon Jul 11, 2016 4:01 pm

Re: API Call to Obtain Execution Time Related Information

Post by N612 » Fri Aug 02, 2019 7:46 pm

The below code will get you the current test containers total elapse time from when it started. With this you can calculate the time between actions. Otherwise, you will need to implement your own time calculating method using something like System.Timers.

Code: Select all

Ranorex.Core.Reporting.ActivityStack.Current.ElapsedTime