Create a WPF Test (VS plugin)

  1. Launch Visual Studio.
  2. Click Telerik Test Studio Create New Test Project.
  3.  

    Create New Test Project

     

  4. Choose Telerik Test VB or C# Test Studio Project, name the project, and click OK.
  5.  

    Select Test Studio Project Template

     

  6. Right click on the project node in the solution explorer and select Add New WPF Test.
  7.  

    Add New WPF Test

     

  8. Click Add.

    Add WPF Test Item

  9. Open the new test and click the Configure WPF Application Path icon in the toolbar.
  10.  

    Configure WPF Application Path button

     

  11. The Configure WPF Application Path window appears. There are two options to determine the default application to launch when recording and executing this test.
    • WPF Application Path - drag and drop the shortcut icon into this text box, or click Browse and locate it manually.
    • Current Path Expanded - read-only display of full path if environment variables are used.
    • Use default path - whether to use the path set here or the default path set in Project Settings > General.
    • Active WPF Applications - Telerik Test Studio detects all WPF apps currently running and lists them. Highlight the desired app and press Select Application. I used FamilyShow, available from http://vertigo.com/Lab.aspx.
    • Recording Options - whether to record window state changes.
    •  

      Configure WPF App Path Dialog

  12. Hit Record to launch the app with the recording toolbar docked at the top.
  13. Notice that steps are added to the test as actions are taken within the application.
  14.  

    Recording WPF Steps

     

  15. Close the application to stop recording.