Forum Discussion
Sariali
14 years agoContributor
hi robert, thank you.
i know the methods for waiting for an object with tc. i am not longer in the first class ;) ... but in the second! :) and still a novice as a tc-tester.
the subject is not to wait for an vcl-object. the problem is that the drawing of our timeline needs time and there are so many interactions in our software like update the thumbs, prepare gui-properties so that i can not really guess how much time etc. .... yes one of the other factor is the power of the computer.
the test-application is definitifly in a clear state if there is no traffic inside! in other words: the process is on idle state.
here i found a source to redirect the main process function to count up and down an idle-counter.
(TApplicationEvents doesn't really work)
http://forum.delphi-treff.de/showthread.php?18515-Alternative-zu-OnIdle/page2
http://forums.about.com/n/pfx/forum.aspx?tsn=2&nav=messages&webtag=ab-delphi&tid=16716
i am working now on implementing this solution in our tc-Helper
procedure WaitOnIdle;
begin
while gIdleCounter <> 0 do Sleep(100);
end;
this procedure exits if the process is on idle-state.
Related Content
- 5 years ago
- 8 years ago
Recent Discussions
- 2 days ago
- 8 days ago
- 11 days ago