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

Test Lists with Visual Studio

5 Answers 30 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Stephen
Top achievements
Rank 1
Stephen asked on 09 Apr 2014, 09:25 PM
Hi,

I understand that Test Lists are no longer supported in Visual Studio 2012.  My question is, how can I specify which Test Studio tests I want to run in Visual Studio 2012 without using Microsoft TFS, or Microsoft Test Manager?

Thanks,
Steve

5 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 14 Apr 2014, 08:18 AM
Hello Steve,

Thank you for contacting us.

You can simply export your test from Test Studio to Visual Studio and run them via the quick execution (play button).

Let me know if I am missing something.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Stephen
Top achievements
Rank 1
answered on 14 Apr 2014, 06:13 PM
Hi Boyan,

I am trying to run the test with MSTest.exe, not with Test Studio.  So I want to use Visual Studio 2012 and create a test list that I can run using MSTest.  Is there any way to do this?

Thanks,
Steve
0
Boyan Boev
Telerik team
answered on 16 Apr 2014, 08:01 AM
Hello Stephen,

The only way how you can execute test lists in VS 2012 is the following:

     1) Open your solution.
     2) From the Solution Explorer right click the solution item.
     3) Select Add/New Item
     4) Do not click on any of the available items, instead type in the text box 'TestList.vsmdi' or any other item name that ends with '.vsmdi'. Just make sure not to click on any item as it would overwrite your input.
     5) Find 'Solution Items' sub folder directly under your solution
     6) Double click TestList.vsmdi and this will bring up the 'Test List Editor' in VS2012.
     7) Select a test from the 'Test List Editor' and you'll find the Test Properties.
  
See this video for a demonstration.

Unfortunately in VS2012 you can only create a test list and edit it, but in order to execute the test list you need to use MSTest via the command line. You can read in this article more information how to use MSTest and how to execute a test list with a custom settings file.

Hope this helps.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Marc
Top achievements
Rank 1
answered on 23 Apr 2014, 06:23 AM
Hi Boyan,

Is it possible to add tests to the .vsmdi file in VS2012? I tried doing the steps that you described with however I am unable to see how to add the Test studio tests to the vsmdi file.

I'm trying to get TeamCity to run the test studio tests using MSTest upon code check-in and struggling a fair bit as MSTest is not finding any of my tests when passing a test assembly to MSTest.

Thanks.
0
Boyan Boev
Telerik team
answered on 28 Apr 2014, 06:51 AM
Hello Marc,

Yes it is possible, please see the video which I provided in my previous response.

Let me know if this helps.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Stephen
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Stephen
Top achievements
Rank 1
Marc
Top achievements
Rank 1
Share this question
or