Problem with Testing Framework template

2 posts, 0 answers
  1. David
    David avatar
    3 posts
    Member since:
    Apr 2013

    Posted 22 Apr 2013 Link to this post

    I have installed Testing Framework 2012.2, and am using Visual Studio 2010 and NUnit 2.62.

    I have added an NUnit template to my project as described in the Testing Framework: Getting Started / Using NUnit documentation. When I do a build I get "The type or namespace name 'ArtOfTest' could not be found (are you missing a using directive or an assembly reference?)". I tried removing the reference to ArtOfTest.WebAii and re-adding it to the project but this made no difference.

    I want to use the Testing Framework to test a WPF application. Is there any sample code with a simple WPF application and tests available, all of the samples I have been able to find seem to be either for testing web applications or just one or two lines which do not help a new user.

    Update. I have identified the problem.

    1. The reference to nunit.core had the wrong location, presumably because I am using a later version of NUnit. This is a minor point, and not the real problem.

    2. I used VS 2010 to create a C# WPF project. This set the Target Framework to '.NET Framework 4 Clent Profile'. I had to change this to '.NET Framework 4'. This fixed the problem and I have at least got as far as opening the application and verifying that the main window caption is correct.

  2. Plamen
    Plamen avatar
    8 posts

    Posted 24 Apr 2013 Link to this post

    Hi David,

    I am glad to hear you are making progress. Please also refer to our Silverlight/WPF Automation section where you can find more information on how to search and validate Silverlight/WPF elements and how to perform actions upon them. That section also includes a sample automation scenario against simple WPF app that should be enough to get you started. 

    Please go through our online documentation and let me know if you need any assistance to cover a specific WPF automation scenario.

    All the best,
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top