Ask a Question

Test Complete is not capturing events (On screen Actions) in Test Results (Test Log)

aamonto
Occasional Contributor

Test Complete is not capturing events (On screen Actions) in Test Results (Test Log)

Last week I realized that Test Complete is not capturing the events (On screen Actions) when running my scripts, previously this was working fine but after upgrading TestComplete to version 15.20.341.7 and applying a major update to my project this is not working anymore, I can only see in the Test Log the Checkpoints and messages that I added for each script (screenshot attached)

 

Probably I updated something in the configuration after the update of my project but haven't found a solution for the same, I even compared the configurations for my old and new projects but cannot find something different, could you please let me know if you have a solution for this?

6 REPLIES 6
npaisley
Staff

Hi @aamonto!

 

May you provide a screenshot of the entire log section for us to take a look?

 

There is a column that can be enabled called 'Has Picture' that will indicate if any screenshots have been taken. I would be interested to know if that column is blank or not. For instance, below is what my default setup looks like for log files. 

npaisley_0-1653596105486.png

 

There is also a setting to enable/disable images taken during test runs found in 'Tools -> Current Project Properties -> Visualizer'. You may check the status of these settings as well.

npaisley_1-1653596220548.png

 

Lastly, in case it's just an issue with the docking, you can restore default docking layout by going to 'View -> Desktop -> Restore Default Docking'. 

npaisley_2-1653596323932.png

 

I hope this helps!


Regards,
Nick

Solutions Engineer @ SmartBear
aamonto
Occasional Contributor

Hi @npaisley,

 

I just restored the docking layout using the "Restore Default Docking" option, but nothing changed, please find below the screenshot of the entire Test Log screen, the issue is not the picture or screenshot, the problem is that all the steps that are usually displayed as "Events" are not displayed in the Log, in the screenshot you can see that the log is not filtered so these steps should be displayed but they aren't:

 

image.png

 

I already reviewed the configuration in the "Tools -> Current Project Properties -> Visualizer" menu and it has the same configuration than yours:

 

aamonto_0-1653599095582.png

 

Another example of this situation with a different script:

 

Scripts results before the issue (all the event steps are displayed):

aamonto_2-1653599543096.png

Scripts results after to the issue (all the event steps are NOT displayed and only the checkpoint are shown in the log):

aamonto_1-1653599397621.png

Hi @aamonto,

 

I'm sorry for the confusion, I understand now what you are having issues with.

 

Unfortunately there are not really any options to enable/disable posting of Events to the log within TC's UI.

 

Although, we do have a method to do this in scripts, the 'Log.LockEvents' method. Using this will allow checkpoints and basic log messages to pass, but will block all of the Events that occur to avoid consuming too much memory.

 

Here is the doc for this method just in case this may be the root cause;

https://support.smartbear.com/testcomplete/docs/reference/project-objects/test-log/log/lockevents.ht...

 

Is it possible that maybe the 'Log.LockEvents' method is present in your script somewhere?

 

If not, are you using any event handlers in your tests? You can also disable events with flags for event handlers, such as 'Log.Enabled=false'. 


Regards,
Nick

Solutions Engineer @ SmartBear
aamonto
Occasional Contributor

Hi @npaisley,

 

No I haven't used the 'Log.LockEvents' method, also I have only one event handler "OnLogError" to failed the scripts (in case they failed) in a different automation tool using API's, but nothing related with the Logs or events, any other idea on this? I am also thinking on reinstalling TestComplete to see if this fix the issue.

 

Hi @aamonto,

 

I appreciate the info here. Unfortunately my next idea would be along the same lines. We can repair TC instead of performing a full reinstall. I might give that a shot and see if it remedies the issue.

 

Repairing TestComplete;

https://support.smartbear.com/testcomplete/docs/general-info/installing/maintaining/repairing.html


Regards,
Nick

Solutions Engineer @ SmartBear
aamonto
Occasional Contributor

Hi @npaisley,

 

I already run the "Repair TestComplete" process but unfortunately the issue still persists, I will try to reinstall TestComplete to see if this fix the issue

cancel
Showing results for 
Search instead for 
Did you mean: