The .NET Add-in Extensibility SDK provides a sample support set to help you learn about .NET Add-in Extensibility. The toolkit support set files are installed in the <UFT One .NET Add-in Extensibility SDK installation folder>\samples\WinFormsExtSample folder. You can study the content of these files to gain a better understanding of how to develop your own toolkit support sets.
The sample support set extends UFT One support for the SandBar custom .NET Windows Forms control. The custom server provided in this sample is similar to the one you create in Tutorial: Complex Custom .NET Windows Forms Control.
The SandbarSample.sln solution file located in the WinFormsExtSample folder includes a configuration file and a fully implemented custom server that supports the SandBar control. The SandBarCustomServer implementation is provided in C# and in Visual Basic, in separate projects within the solution (SandbarCustomServer and VBSandbarCustomServer). In addition, the SandbarSample solution includes a sample .NET Windows Forms application that uses the SandBar toolbar control (SandbarTestApp).
Running the sample support set
If you have the SandBar for .NET 2.0/3.x installed on your computer, you can create and run a UFT OneGUI test on the sample application. Create and run the test once before deploying the sample toolkit support set to UFT One and once after doing so. This enables you to learn, hands on, how extensibility can affect UFT One's interaction with custom controls.
To open the SandbarSample solution, use Microsoft Visual Studio 2005 or later.
Before you build the SandbarSample solution, make sure the UFT One .NET Add-in Extensibility SDK is installed on your computer.
After successfully building the SandbarSample solution, deploy the C# or Visual Basic custom server it creates as described in Configuring and Deploying the Support Set.
Before you update the SwfConfig.xml file according to the information in Configuration.xml, consider the following: The Configuration.xml file in the SandbarSample solution is set up to use the DLL generated by the C# project and located in <UFT One .NET Add-in Extensibility installation folder>\samples\WinFormsExtSample\Bin.
To use VBCustomSandBarSrv.dll, replace all appearances of
If your DLL file is located in a different location, update the path in the DllName element accordingly.