Ask a Question

Add "/tr_prefer_wmpaint_hooking" to TestComplete 12 invoked by DCOM

hawilliams1275
Visitor

Add "/tr_prefer_wmpaint_hooking" to TestComplete 12 invoked by DCOM

We invoke TestComplete/TestExecute 12 via DCOM and since the "/tr_prefer_wmpaint_hooking" option is not in the project file I am not sure where to set.  It there a way to ensure that this option is aways set without creating a shortcut to set it?

1 REPLY 1
AlexanderM
Staff

Hi,

 

Since you start TestComplete as a COM server, I suggest that you consider changing the server registration records in the Registry to include the needed option to the server command line. For example, for a 32-bit version of TestComplete 12 on a 64-bit system, the Registry branch would be this:

HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{990BBECC-B5F4-478C-9E90-1758B3CE814C}\LocalServer32

 

You need to change the (Default) key in that branch to include "/tr_prefer_wmpaint_hooking" to the command line:

"C:\Program Files (x86)\SmartBear\TestComplete 12\Bin\TestComplete.exe" /tr_prefer_wmpaint_hooking

 

See the attached screenshot.

 

There is a tricky thing though with this approach - TestComplete restores the COM server registration on start to the default state. So once it starts, it removes the parameter. So, in your logic that starts TC via COM, you'll need to implement an extra preparation step that modifies the Registry record before instatiating a new TC instance.

 

Would this work?

-----

Alexander
Customer Care Manager
cancel
Showing results for 
Search instead for 
Did you mean: