Measure performance (Windows application)
I would like to keep track of how much time a specific action on our application takes.
This action is triggered by a button on our UI. The application that needs to be tested is a windows application (non web-based).
What I want to achieve is following:
1. TestComplete activates the button in the UI, that triggers the action to be measured; A the same time TestComplete starts a timer;
2. After x amount of time (this could be seconds, minutes or hours), the result (of the action in point 1), is displayed on screen;
3. TestComplete recognizes that result in displayed on screen. And stops the timer;
By repeatedly running above scenario with multiple different datasets (the action to be triggered in point 1 results in SQL queries in the DB), we should be able to say useful things about the performance of our system running with different datasets / different hardware configurations.
Is this approach a wise one? Do other have experiences with above mentioned scenario and approach?