How to find time difference from action to another?
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to find time difference from action to another?
Hi,
I need to measure the time difference from one action to another. For example, whenever I click the Login button, it loads the login page. I need to find the time difference, how long it took to load the login page after clicking Login button?
Thank you.
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When doing a Keyword test, there is a Performance group of actions that allows you to start a timer and then get the value of that timer at a particular point. This is one way to do what you want.
For script code, there's the HISUtils.StopWatch object that you can utilize to start a timer and then log/check elapsed time.
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Test Complete 12.5 also has a time difference column in the logs by default now.
Thanks,
Carson
Click the Accept as Solution button if my answer has helped
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@cunderw wrote:
Test Complete 12.5 also has a time difference column in the logs by default now.
Yeah, that's a pretty awesome new feature. I like it much. 🙂 There is a minor caveat... you need to actually log something to see that. So, if you're just logging in and then doing a page.Wait without anything being written to the log once the page is loaded, the elapsed time column isn't going to help. This doesn't negate the awesomeness of the new feature, just means that, if you need to make those measurements, you need to write out measurement "bookmarks" to the log to see the elapsed time.
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ahhhh, I didn't even catch that. I probably log too much so didn't even notice lol.
Thanks,
Carson
Click the Accept as Solution button if my answer has helped
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you everyone for your help.
