I am blocked by a issue day and night, I run an empty keywords , why does it spend so much time to load objects. this just happened at one computer ,other computers are ok
Attached the picture and project
Look forward to your answer
Thanks for your reply, I didn't create any general events,it seems to load the elements before running a test , this takes much time , after load the elements, it can run correctly, it only happened at one computer , other computers are ok with the same test
add some information , I defined the elements like below with VB scripts
Set ComboBox=Aliases.Mwt.dlg.ComboBox 'MP pop up dlg
set dlgEdit1=Aliases.Mwt.dlg.Edit 'MP pop up dlg
Right there is your problem, setting all those variables. If they aren't in a procedure or function but "global" in a script unit, then as soon as your project starts, those variables are attempted to be set. And then, as @AlexKaras points out, TestComplete attempts to find those objects and assign the values. Since the application objects that those variables reference aren't present in memory at that point, then TestComplete will take up to the maximum timeout to find the objects before going to the next one.
I would wrap those "set" commands into a Sub or Function and put them in a routine that you can call as needed rather than make them global.
thanks tristannogre, it is strange that the scripts doesn't have the problem at other computers, at other computers ,it just spend less than one second,but at the current computer, the same scripts ,it needs take 8 mins to load all the objects,then to run the scripts.
Something is different... and it's not TestComplete. I'm guessing:
1) They have different projects and are doing things differently.
2) They have the application in question open already when they start their automation run
Get properties of a web page element
Compare images using the Region Checkpoint
Compare HTML table with Excel file and correct data in Excel file
How to execute remote test and obtain results via Test Runner REST API