Forum Discussion
4 Replies
- tristaanogreEsteemed Contributor
Each operation is documented at https://support.smartbear.com/testcomplete/docs/keyword-testing/reference/performance/index.html
Once you start a counter, if you call "Get Value" for that counter, it will return whatever the current value is for that counter.
- mgroen2Super Contributor
tristaanogreThanks. But there is no example for how to use the " Get Value" operation. Documentation just states this operation returns the time elapsed.
For example, I would expect that when using this operation in keyword tests, I would see the value (time elapsed) in the log file, but it isn't..
My suspision is that it's a bug, but not sure.
- tristaanogreEsteemed Contributor
Check out the following: https://support.smartbear.com/testcomplete/docs/testing-with/advanced/measuring-test-run-time.html#using-counters-in-keyword-tests
Basically, Get Value does just that... gets the value. You would need to then assign that value to a variable or use it in some other call. The examples given in the above link show using Get Value followed by a Log.Message where the value is passed in as "Last Operation Result". You could do the same when assigning as a variable.
So.... not a bug, just a matter of finding the correct documentation. :)