Forum Discussion

mgy333's avatar
mgy333
Contributor
14 years ago

OnLogCloseNode Event

I use OnLogCloseNode event in my script.



Everything was working fine in TC7, but when I converted the project to TC8 without any changes to my code, OnLogCloseNode event is no longer called consistently.  It should get triggered many times throughout the script, but I found out that it's only being triggered once toward the end of the script.



It seems OnLogCreateNode event and any other log related events are triggered consistently.



Has anyone else experienced something like this?  Is there walk-around?



Thanks,

Motoo
  • Hello.



    So far, any attempt to create the situation using a new TC8 project has failed.  Things seems to work in that situation.  Unfortunately, I can't send the actual project because I am not able to send our software with it to run it. 



    But the situation occurred for every single project that I had converted from TC7 (about 8 projects), so it's not one time deal.



    Motoo
  • Hi Motto,


    I failed to reproduce the problem you had described.


    Do you get any errors during the test run?


    The problem may occur if the OnLogCloseNode event handler is not specified in the Events to Handle list. To check this:


    1. Double-click the needed Event control in the Project Explorer panel. TestComplete will show the Event Control editor.

    2. In the Events to Handle list, select the needed event and make sure that the needed event handler is specified in the Event Handler cell.

    3. To make sure that the specified event handler links to the needed test, click View next to the handler's name. TestComplete will bring up the Keyword Test Editor or Code Editor and point the cursor to the corresponding routine.