Hi,
I was just curious if there is a way of getting the time associated with a step as it appears in the log file, I want to store this as a variable within Ranorex.
Danke!
Getting the time to execute a step as a variable
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Getting the time to execute a step as a variable
Hello,
Unfortunately, this time is calculated after your test and stored in your report.
Therefore, you couldn't get this value in a common way.
I recommend you to measure the elapsed time of your action between start and end.
Please take a look at the code snippet below:
Markus (T)
Unfortunately, this time is calculated after your test and stored in your report.
Therefore, you couldn't get this value in a common way.
I recommend you to measure the elapsed time of your action between start and end.
Please take a look at the code snippet below:
System.DateTime timeBefore = System.DateTime.Now; // do your action System.DateTime timeAfter = System.DateTime.Now; Report.Info("Time: " + (timeAfter - timeBefore));Regards,
Markus (T)