OnLogError Sender Returning Null Value, Updated to X64 for TestComplete and Office 2016
Hello Community,
I recently upgraded to the new TestComplete 12.42 which has x64 bit support. Because TC automatically installs x64 support, I installed Office 2016 with AccessDatabase 2016 both which are x64.
Now every time I have an error when the GeneralEvents_OnLogError(Sender, LogParams) is called, it returns a null value. I tried testing it with the 32bit versions in other machines and they return the value with no problems.
I tried Installing AccessDatabase for 2016, 2010, 2013 and it's still giving me the same issue. I also changed the calls from
Microsoft.ACE.OLEDB.12.0 to Microsoft.ACE.OLEDB.16, Microsoft.ACE.OLEDB.15, Microsoft.ACE.OLEDB.14, etc.
The tests run fine, it's only when I get an error with the OnLogError where I'm having issues. Does anyone know if I have to change something somewhere in the settings, I tried looking and still no luck.
I even looked into the GeneralEvents and looked at the OnLogError but still cannot find the issue.
Any help is appreciated.
Regards
Ok So I may have found the solution.
First I uninstalled the latest version of testcomplete and did a complete uninstall of office 2016. I then installed office 16, followed by Access Database 2010 followed by an older version of testcomplete. I then upgraded to the latest version.
I also removed the excel code within the onLogError code. This excel code was there so it can write to the excel sheet the problem that occurred during the run. By removing it I won't be able to see why the run failed but I will still see that it failed. I will have to find a new solution for this but this is better than not having my tests work at all when doing a regression run.
One last note. I installed only 32 bit version of office and access database. I am also using the 32bit version of TestComplete instead of the 64 bit.
Thanks to everyone who replied to this post. I will continue to update if needed with any new findings.
I hope this helps anyone running into a similar issue.