Tutorial: Create UFT Support for a Custom WPF Control > Deploy and Test Your Support for Test Object Operations

Deploy and Test Your Support for Test Object Operations

In this section, you deploy the custom server again and test the support that you designed for running test object operations.

  1. Build your solution and then deploy the custom server by copying the CalendarSrv.dll file to the <UFT installation folder>\dat\Extensibility\WPF\MyWpfToolkit folder.

  2. Run the sample control by opening the <WPF and Silverlight Add-in Extensibility SDK installation folder>\samples\WPFExtCalendarSample\Application\WpfCalendar.exe file.

  3. Use the Add Objects to Local button in the Object Repository dialog box to learn the Calendar control. A MyWpfCalendar test object named calender1 is added to the object repository.

  4. Create test steps with the calendar1 test object, using each of the test object operations: SetDate (mm/dd/yyyy), SelectedDate, Next, and Prev. (To view the value returned by the SelectedDate property you can use a msgBox statement.)

  5. Run the test and make sure that the operations are carried out correctly.

Continue to Implement Support for Recording.