Forum Discussion

dgubert86's avatar
dgubert86
Occasional Contributor
11 years ago

Test Delay

I run tests from TestItems and see that testcomplete has delay about 10-30sec for each root test items between it starts (this value I see in LogItems on Summary page in General information) and GeneralEvents_OnStartTest. Why is this happening ?

6 Replies

  • dgubert86's avatar
    dgubert86
    Occasional Contributor
    After some experiments I think that the reaon is on method Runner.Stop(true);

    This method may be performed 10-40sec.. On my machine in TestComplete  about 10sec and on virtual machine in TestExecute is about 40sec..
  • AlexKaras's avatar
    AlexKaras
    Icon for Champion Level 1 rankChampion Level 1
    Hi Denis,



    According to my understanding, after the test is started, TestComplete may spend some time to 'compile' the test code, process the structure of the tested application, etc.

    So the Summary shows the time when the test was actually started while the time in the test log indicates exact time when the message was posted to the log.
  • dgubert86's avatar
    dgubert86
    Occasional Contributor
    I have about 30 TestItems first order..and in summary it's about 15minutes
  • AlexKaras's avatar
    AlexKaras
    Icon for Champion Level 1 rankChampion Level 1
    The delay may occurs only when the execution of the first test item starts. Then no delay should occurs.

    The only idea that I have at the moment is that each test item contains extensive logging (e.g. Visualizer is on) and it takes some time to TestComplete to store the log to the disk when test item's execution is completed.
  • AlexKaras's avatar
    AlexKaras
    Icon for Champion Level 1 rankChampion Level 1
    Hm-m-m...

    Thanks for the update.

    (I use Runner.Stop(True) sometimes in my code but it is executed not too often and I never noticed significant delays when it was executed. Though, to be fair, I was never interested in precise timing at these moments. Need to have a look when it happens again.)

    Maybe there will be any comments from the Support on this...