Contributions
Re: spend so much time to load objects when run an empty keywords
Dear , it popup error : PKIClientAgent.exe process crash when loaded the objects(Elements) before running test one time, is the testcomplete running related to the PKIClientAgent.exe. it just spent less than one second to load objects to run test before, now it spent 8 mins to load all the objects to run test, so i doubt if that company computer system updated to lead to this problem the objects(Elements) are defined as below in vb scripts set dlg=Aliases.Mwt.dlg set dlgbtnOK=dlg.btnOK set dlgbtnYes=dlg.btnYes set dlgbtnNo=dlg.btnNo set dlgbtnSave=dlg.btnSave set dlgMessage=dlg.Message set dlgMessage1=dlg.Message1 set dlgbtnOpen=Aliases.Mwt.dlg.btnOpen set dlgbtnOK=Aliases.Mwt.dlg.btnOK Set btnOverwrite=Aliases.Mwt.dlg.btnOverwrite Set dlgbtnClose=Aliases.Mwt.dlg.btnClose Set dlgbtncheck=Aliases.Mwt.dlg.check Set dlgbtnCancel=Aliases.Mwt.dlg.btnCancel Set dlgbtnUnzip=Aliases.Mwt.dlg.btnUnzip Set radioST=Aliases.Mwt.dlg.radioST Set radioTRUE=Aliases.Mwt.dlg.radioTRUE Set ComboBox=Aliases.Mwt.dlg.ComboBox 'MP pop up dlg Set ComboBox2=Aliases.Mwt.dlg.ComboBox2 Set ListTemp=Aliases.Mwt.dlg.ListTemp 'set dlgEdit=Aliases.Mwt.dlg.ComboBoxEx32.ComboBox.Edit set dlgEdit1=Aliases.Mwt.dlg.Edit 'MP pop up dlg set Failed=dlg.Message.Failed set The_password_has_been_changed_successfully_=dlg.Message.The_password_has_been_changed_successfully_ set Save_succeed_=dlg.Message.Save_succeed_ Set Download_Changes_not_possible_=dlg.Message.Download_Changes_not_possible_ Set Are_you_sure_you_want_to_download_=dlg.Message.Are_you_sure_you_want_to_download_ set dlgMessage1=dlg.Message1 Thanks, Nikki658Views0likes2CommentsRe: spend so much time to load objects when run an empty keywords
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. Thanks, Nikki2KViews0likes5CommentsRe: spend so much time to load objects when run an empty keywords
Hello Wamboo, add some information , I defined the elements like below with VB scripts set dlg=Aliases.Mwt.dlg set dlgbtnOK=dlg.btnOK set dlgbtnYes=dlg.btnYes set dlgbtnNo=dlg.btnNo set dlgbtnSave=dlg.btnSave set dlgMessage=dlg.Message set dlgMessage1=dlg.Message1 set dlgbtnOpen=Aliases.Mwt.dlg.btnOpen set dlgbtnOK=Aliases.Mwt.dlg.btnOK Set btnOverwrite=Aliases.Mwt.dlg.btnOverwrite Set dlgbtnClose=Aliases.Mwt.dlg.btnClose Set dlgbtncheck=Aliases.Mwt.dlg.check Set dlgbtnCancel=Aliases.Mwt.dlg.btnCancel Set dlgbtnUnzip=Aliases.Mwt.dlg.btnUnzip Set radioST=Aliases.Mwt.dlg.radioST Set radioTRUE=Aliases.Mwt.dlg.radioTRUE Set ComboBox=Aliases.Mwt.dlg.ComboBox 'MP pop up dlg Set ComboBox2=Aliases.Mwt.dlg.ComboBox2 Set ListTemp=Aliases.Mwt.dlg.ListTemp 'set dlgEdit=Aliases.Mwt.dlg.ComboBoxEx32.ComboBox.Edit set dlgEdit1=Aliases.Mwt.dlg.Edit 'MP pop up dlg set Failed=dlg.Message.Failed set The_password_has_been_changed_successfully_=dlg.Message.The_password_has_been_changed_successfully_ set Save_succeed_=dlg.Message.Save_succeed_ Set Download_Changes_not_possible_=dlg.Message.Download_Changes_not_possible_ Set Are_you_sure_you_want_to_download_=dlg.Message.Are_you_sure_you_want_to_download_ set dlgMessage1=dlg.Message12.1KViews0likes8CommentsRe: spend so much time to load objects when run an empty keywords
Hi Wamboo, 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 Best Regards, Nikki2.1KViews0likes0Commentsspend so much time to load objects when run an empty keywords
Dear, 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, Nikki2.4KViews0likes12Comments- 1KViews1like0Comments
- 1.1KViews0likes2Comments
Re: Call function of DLL at testcomplete
Hi TanyaGorbunova, Thanks for your reply I add the __stdcall at dll ,but the error message is the same : Object doesn't support this property or method: 'Lib.AddA' My scripts in VBscript as below : sub test dim a Set Def_Environment = DLL.DefineEnvironment(True) Set Def_DLL = Def_Environment.DefineDLL("test_dll") set Lib=Def_Environment.Load("C:\Users\H208139\Desktop\test_dll\Debug\test_dll.dll","test_dll") Call Def_DLL.DefineProc("AddA",vt_int,vt_int,vt_int) a=Lib.AddA(2,2) log.Message(a) end sub And I attached the modifieddll2.5KViews0likes3Comments