Test Lists with Visual Studio

6 posts, 0 answers
  1. Stephen
    Stephen avatar
    23 posts
    Member since:
    Feb 2014

    Posted 09 Apr 2014 Link to this post

    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
  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 14 Apr 2014 Link to this post

    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
     
  3. Stephen
    Stephen avatar
    23 posts
    Member since:
    Feb 2014

    Posted 14 Apr 2014 in reply to Boyan Boev Link to this post

    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
  4. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 16 Apr 2014 Link to this post

    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
     
  5. Marc
    Marc avatar
    1 posts
    Member since:
    Apr 2014

    Posted 23 Apr 2014 Link to this post

    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.
  6. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 28 Apr 2014 Link to this post

    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
     
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!