Good news for QTP Silverlight testers – HP just released a new patch QTPNET_00120 which adds support for Microsoft Silverlight 5. Installing this patch will updated QTP’s .NET Add-in, providing support for Silverlight 2,3,4 and 5.
QTP slow object recognition of Silverlight Objects?
Have you have been seeing slow performance with QuickTest Pro and Silverlight object recognition? This patch might help since it also improves QTP’s ability to identify Silverlight test objects more quickly.
This patch also contains all the fixes made for the WPF Add-in since QuickTest Professional 11.00 was released. So if you have missed some of the previous WPF patches— no worries– this accumulative patch will install all of them for you.
From the QTP Patch’s Install Notes
1. To work with 64-bit WPF applications, you must install QTPNET_00127(Accumulative Patch for WPF Add-in Support of 64-bit Applications) in addition to this patch
2. The fixes described below for the WPF Add-in require registry changes in order to enable them.
Enables you to set a registry setting that instructs QuickTest to recognize WPF UI elements that
QuickTest does not recognize by default. Example: By default, an element of type System.Windows.Controls.Canvas will not be captured by QuickTest in the Object Spy, Learn, Record, or any other mechanism. This hotfix enables you instruct QuickTest to identify elements of this type.
To enable this option, follow the instructions in the Patch Installation section below.
Prevents the problem that when invoking a user-defined function that was registered to a WPF test object, QuickTest Professional accessed the agent within the tested application’s process,causing a performance issue.
* When this improvement is enabled, if you call a method that is registered to a user-defined function, you must provide values for all arguments,including optional arguments.
* This improvement should be disabled when running in Maintenance Run Mode(See instructions within the .reg file).
To prevent this problem, activate the registry file as described in the Patch Installation section below.
Enables you to set a registry key that makes it possible for QuickTest to continue to recognizing the controls in specified WPF applications even if you restart QuickTest. For details, see the Patch Installation instructions below.
QTP Silverlight Known Issues
Prerequisite: If you are working with the Silverlight Add-in on a computer where the UAC (User Account Control) option is set to ON, you must log into that computer as the primary (built-in) Administrator. To enable other users, even those with administrator privileges, to create and run steps on Silverlight applications, you must disable the UAC option.
- Silverlight out-of-browser applications are not supported on Windows 7 and Windows Server 2008 R2.
- Sometimes, if you select a date from a calendar associated with a date picker during a recording session, two SetDate steps are recorded — one for the calendar and one for the date picker — instead of just one for the date picker. This can cause subsequent run sessions to fail when the calendar’s SetDate step runs because the calendar is not open. Workaround:
Delete the calendar’s SetDate step from the test or component.* If a WpfScrollBar.Click step does not include coordinate arguments, the step fails and an error message is displayed. Workaround: Include coordinate arguments in WpfScrollBar.Click steps.
How to get the new SilverLight5 patch for QTP
Click on the patch name below to directly download from HP’s support site (username and password not required):
What other Patches are available for QTP 11?
For an updated list of all patches available for QTP 11 check out the Patches section in my article: QTP 11 Support Matrix with Patch Updates