Forum Discussion
AAN
14 years agoContributor
Hi Alexie,
Thanks for that answer.
You gave me the code (below)
Do I need to input this into Test Complete some how as I couldn't find any simple way to use Stop Watch in TC.
I also found another answer that pointed me to profiling and AQTime but I wansn't sure what the intended purpose in those were? Are you abel to explain in lamen's / simple terms what the end outcome of this integration with TC should do for me?
The code is like this:
StopWatchObj := HISUtils.StopWatch;
StopWatchObj.Start;
// Open form here and wait until it is opened
StopWatchObj.Stop;
Log.Message(AQString.Format('Time to open form %s is %s', strFormName,
StopWatchObj.ToString), StopWatchObj.ToString);
Thanks for that answer.
You gave me the code (below)
Do I need to input this into Test Complete some how as I couldn't find any simple way to use Stop Watch in TC.
I also found another answer that pointed me to profiling and AQTime but I wansn't sure what the intended purpose in those were? Are you abel to explain in lamen's / simple terms what the end outcome of this integration with TC should do for me?
The code is like this:
StopWatchObj := HISUtils.StopWatch;
StopWatchObj.Start;
// Open form here and wait until it is opened
StopWatchObj.Stop;
Log.Message(AQString.Format('Time to open form %s is %s', strFormName,
StopWatchObj.ToString), StopWatchObj.ToString);