QTP loads every datasheet for every action
We use global actions a lot. Since we started using global actions, I have noticed that any script that calls global actions loads not only its own datasheets but also loads the datasheets of all the global actions. None of the global actions has anything other than the default datasheet created by QTP when the action was created. Some global actions call other actions, which just increases the number of datasheets loaded. I have a script that loads hundreds of these unused datasheets.
Is there anything I can do about this? there's no point in going through and deleting them after I load the test, since loading the datasheets is where a lot of the script load time goes.
If I had realized global actions carried such huge baggage, in terms of unused local datasheets, I would have chosen a different way to implement our common code but it's too late to change it all now. We've got zillions of scripts.
Re: QTP loads every datasheet for every action
Yeah actions just have too much overhead. Better off using dynamically loaded function libraries as "reusable actions".
Depending on how you wrote them, could port them from the action's .mts file to a .vbs/.qfl.