WPF Extensibility solution
The WPF Extensibility solution provides a public API which you can use to override TestArchitect’s built-in actions.
Overriding TestArchitect’s built-in actions by using WPF Extensibility involves two steps:
- Create an extension.
- Create a handler which will:
extend a specific kind of handler base. For instance, TelerikTableHandler : TATableHandlerBase, and
override the GetControlSupportLevel (Object obj) method to define the supported control and the level of priority.
Note:- We only need to override the necessary methods. The rest of the methods are inherited from the base handler. On the base handler side, each method is responsible for getting the best handler which extends this base handler and implements the method. The best handler has the highest level of support.
- The NetAgent.sln solution is provided to work with WPF Extensibility. You can find the solution at the following location: <installation path>/LogiGear/TestArchitect/samples/Extensions/WPF/WpfExtensionSample.
Creating an extension
Create a project which works as a new extension.
Creating a handler
Now create a class which works as a extension handler.
Building the solution
Build the DLL for the Extension project so that TestArchitect can load the extension.
Applying customized action
You have customized the built-in action get list item count to work with Telerik’s list box control. Now, you will apply that customized action.