Long time goes by between Runner.Stop(true) and the start of next testitem
Hi all,
For my project I use the scripting- approach (JScript). My testcases are capsulated in testitems. The complete Project has around 400 testitems. Some of the testitems have not be be executed (for example based on countries).
I use the "OnStartTest" and "OnStopTest" events. Before a testitem starts it loads it's configuration (for example country settings, users and so on). Based on these informations the script starts a simple check if the testcase is allowed to be executed. If the testcase has not to be executed I use "Runner.Stop(true)". In the "OnStopTest" event some loggings are executed. So far so good.
Now I see that the time between the stop of a testcase (stop- event was processed) and the start of the testcase (start- event) increaeases after each execution. That means that there are for example 10 testitems that must not be executed. After the first testitem it takes only around one second between the stop and the next start. After the second stop it takes more than 2 minutes. Than five .... after the 5th stop it takes around 30 minutes. I can also see, that the memory usage decreases after the stop- event. It seems that testcomplete starts to destroy some objects.
So my question is if somebody else has the same problem or has a solution.
P.S: If testitems are allowed to be executed it takes only one second between stop and start
I use TC and TE 12.10 and 12.60, always the same behaviour