-
Detection
Here's my situation. I need to log/capture the time it takes between two distinct points in time. Logging the elapsed time might go something like this...
Step 1
Wait until the user has pressed or clicked "OK" on a login screen then start our elapsed time counter.
Step 2
When a window named "myWindow" exists and the status bar has been created and drawn then Stop the elapsed time counter.
Calculate our elapsed time and store this to a log file
Step 3
IF the status bar doesn't get created within our timeout period then log this as a failure.
The problem I am having is that the the application being tested is unrelated to the logging application and is a completely separate application.
Ideally the logging app would detect the Start event of the sequence ( in this case the user clicking on the Button ) and then the Tested app would cause an event to fire in the logger that stops the elapsed time counter when the status bar has been created on the next window.
any suggestions ?
-
Re: Detection
You can memorize the strat time on the click event and then wait for a window of your second app. Then memorize the Finish time
Dim dS As Date
Dim dF As Date
Dim vE As Variant
dS = Now()'start time
dF = Now()'finished time
vE = Format$(dF - dS, "hh:mm:ss")'elapsed time
MsgBox vE
Iouri Boutchkine
[email protected]
-
Re: Detection
Thats a good idea for detecting a window (provided the name of the window is always the same).
How about detecting when all activex components within a window have finished populating or drawing. the window i am trying to work with has a number of controls in it and sometimes it takes 1 to 3 seconds to fully populate. I need to detect the time that it takes to fully populate and draw all the controls. Can this be done ?
-
Re: Detection
You can detect thte window by the part of it caption (by using wild cards)
Iouri Boutchkine
[email protected]