This is a migrated thread and some comments may be shown as answers.

Problem with Testing Framework template

1 Answer 102 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 22 Apr 2013, 12:59 PM
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.

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 24 Apr 2013, 12:04 PM
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,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
David
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or