Micro Focus QTP (UFT) Forums
Troubles with the .NET Extensibility - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: Troubles with the .NET Extensibility (/Thread-Troubles-with-the-NET-Extensibility)



Troubles with the .NET Extensibility - galka - 06-08-2011

Hello!

I need your help in testing an application that use a third-party .NET control that are not supported out-of-the-box by the QuickTest Professional .NET Add-in. The object and its operations are not recognized in the Keyword/Expert View.

The Environment:
- Microsoft Windows XP SP3
- Microsoft Visual Studio 2008
- QuickTest Professional 10.00 with both the .NET add-in and the .NET Extensibility SDK installed
- iGrid for .NET 2.0 Demo by the 10Tec Company (using the TenTec.Windows.iGridLib.iGrid.dll)

I've created a Custom Server solution for the iGrid control as directed in the "QuickTest Professional .NET Add-in Extensibility Developer Guide" (Chapter 6). I added the operation (the GetColumnCount() method), which returns the column count as a 32 bit integer. Then I merged the Configuration.xml content into file "<QuickTest Professional>\dat\SwfConfig.xml". Also, I've created a simple windows forms application with the iGrid control to test with the QTP.

Testintg:

Case #1.
1. Start the QTP.
2. Click on the Record button.
3. Select the Windows Application with the iGrid control and run it.
4. Double-click on any cell and type the value.
>>> The result print screen is attached in 1.jpg - iGrid control is not recognized.
5. Open the "Select Object for Step" window and find the iGrid control.
>>> The iGrid item is added but there is no a custom operation GetColumnCount (see the 2.jpg attachment), the operation is only available in the "Object Spy" (see the 3.jpg attachment).

Case #2.
1. Open the "Expert View" in the QTP.
2. Type the record:
SwfWindow("Form1").SwfObject("fGrid").GetColumnCount
3. Insert the breakpoint into it and start the "Debug from Step..."
>>> The operation is recognized in the Watch window and a correct value is returned (see the 4.jpg attachment).

Thanks very much!