"No tests to execute" from mstest

7 posts, 0 answers
  1. Iris
    Iris avatar
    4 posts
    Member since:
    Oct 2015

    Posted 23 Nov 2015 Link to this post

    I have a visual studio project that contains a test studio web test.  The test contains coded step.

    The project builds.  In Visual studio, I can run it either by

    1) highlighting the test file (.tstest), then click on the green play icon to execute the test

    2) Select visual studio Test menu, then run -> all test

    Either way the test runs and passes.

     

    However, when I try to run it from mstest using

    %mstest /testcontainer:fullpath\TestStudioProject1.dll

     

    I get "No test to execute".

     

    What am I missing in the project?

  2. Iris
    Iris avatar
    4 posts
    Member since:
    Oct 2015

    Posted 23 Nov 2015 Link to this post

    Well, this command got me further -

    %%mstest /testcontainer:fullpath\WebTest1.tstest

    mstest can find the test, but fails to get the file for deployment item 'bin\TestStudioProject1.dll' specified by the test.

    How can I specify that I need the dll deployed?

  3. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 25 Nov 2015 Link to this post

    Hello Iris,

    See if this KB article helps, starting with step 7. Make sure that you first navigate to the project's directory.

    Let me know if you need further assistance.

    Regards,
    Cody
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  4. Shruti
    Shruti avatar
    4 posts
    Member since:
    Mar 2017

    Posted 01 Jun in reply to Cody Link to this post

    I have followed all the steps still it is not working

    In my case it is showing: 

    Loading C:\git\protective-my-hub\Protective.MyHub\UnitTest\bin\Debug\UnitTest.dll...
    Starting execution...
    No tests to execute.

    plz help.. thank u in advance

     

  5. Shruti
    Shruti avatar
    4 posts
    Member since:
    Mar 2017

    Posted 01 Jun in reply to Shruti Link to this post

    Here I have attached screenshot of cmd
  6. Aaron
    Aaron avatar
    52 posts
    Member since:
    May 2016

    Posted 01 Jun in reply to Shruti Link to this post

    To me it looks like you're trying to execute a .dll.

    You should be trying to execute a *.tstest (a singular test) or *.vsmdi (a test list) in that MSTest command. At least, as far as I could understand the linked article above.

    Based on the fact that you're using /testcontainer, I'll assume you're trying to execute a single test, in which case it should be the file path to the single test you want to run in that command, instead of to the .dll.

  7. Nikolay Petrov
    Admin
    Nikolay Petrov avatar
    207 posts

    Posted 06 Jun Link to this post

    Hi Shruti,

    As pointed out by Aaron - try to execute a test not a dll file by following the directions in the article provided by Cody.

    I hope that would help in this case.

    Regards,
    Nikolay Petrov
    Progress Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top