Configuring for and Adding performance counters
I have been tasked with looking into how to add the performance counters feature that are available in TestComplete. I began by following the steps on the SmartBear support webpage regarding this topic
but when I got to step 4 and specified the computer IP in the Tested Host field I got the following error
and was ultimately instructed to make sure the remote machine was configured correctly by following the steps outlined on another SmartBear support webpage
Below are the steps from this webpage that I’ve copied and pasted in. Below each step I’m pasting in (what I believe is) the confirmation that this step’s criteria has been met or (in two cases) I’m asking for help about how to verify that the information in a step is complete. Prior to performing these steps I did ensure that I could ping the remote machine from my workstation:
And I have created a Network Suite connection to this VM and can successfully verify its connection on the Hosts tab
Configuring Windows Computers
Windows computers provide access to their performance parameters via the Performance Data Helper (PDH) component. In order for TestComplete to be able to use the PDH component, the monitored computer must be configured in a specific manner.
Common Requirements
- The monitored computer must belong to a Windows domain.
- The user account under which TestComplete is running must belong to one of the following user groups on the monitored computer:
- Administrators
- Performance Monitor Users
- Performance Log Users
Note: On Windows XP, the Performance Monitor Users and Performance Log Users groups are not available; use the Administrators group instead.
- TestComplete must be able to read the following registry keys on the monitored computer:
- HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Perflib
- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurePipeServers\winreg
The read permissions can be granted either to the user account under which TestComplete is running or to one of the groups on the monitored computer to which this account belongs.
How do I check for this or has this been verified by the fact that this user account can get to this point of the registry and view these two keys?
- HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Perflib
Additional Requirements for Remote Computers
To monitor performance counters on a remote computer, the following additional requirements must be met:
- If the TestComplete computer and the remote computer are in different domains, these domains must have a two-way trust relationship.
How do I check for this? - The following services must be enabled and running on the remote computer:
- File and Printer Sharing for Microsoft Networks
- Remote Registry
Note: The Remote Registry service is disabled by default on Windows Vista and later operating systems.
- Server
- File and Printer Sharing for Microsoft Networks
- TCP ports 139 and 445 must be allowed through the firewall on the remote computer.
- The following files must exist on the remote computer:
- <Windows>\System32\Perfc009.dat
- <Windows>\System32\Perfh009.dat
Also, the user account under which TestComplete is running or one of the groups to which the user belongs on the remote computer must have at least read permissions for these files.
- The HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Perflib\009 registry key on the remote computer must contain the Counter value with a list of available performance counters.
Thanks for your help!!!
That's annoying, sorry!
My only other suggestion, is to log a support call - TestComplete: New Support Request