MSTEST installtion without even installing VSTS2010

Locked MSTEST installtion without even installing VSTS2010

  • Dienstag, 3. April 2012 14:02
     
     

    Hi All,

    I wanted to exceute  UI Automation TestMethod using MSTest.exe. In my case i can't install even VS2010 nor Test Agent in my Target AUT.  What all dlls has to be deployed  on the target AUT, so that MSTEST can work.

    Thanks & Regards,

    Sujay Sahay

Alle Antworten

  • Mittwoch, 4. April 2012 02:41
     
     

    Hi, you will need to install the test agent in order to run tests on a remote agent. I am not sure if there is a workaround to only copy some dll's

    Thanks,

    Anuj


    http://www.anujchaudhary.com

  • Mittwoch, 4. April 2012 04:10
     
     
    Thanks Anuj, yes i am executing my test script by that way only but since i am doing this activity for one medical domain project where client is not allowing us to install the Test Agent. Otherwise we need to to SIUV of Test Agent. Actually,I am asking about workaround by just deploying some dlls  and all ?Is there any way to do this?
  • Donnerstag, 5. April 2012 07:04
    Moderator
     
     Beantwortet

    Hi Sujay,

    Thank you for posting in the MSDN forum.

    As my understanding, it could work when we copy the .dll files. But it is hard to make sure that which assemblies are used to load. Since when we run our tests, it will load some dependent dll files. So I think it is hard.

    But I try to copy the whole IDE file to a new folder, then I run the tests with CMD, it works like the following screen shot.


    I know that this is not a complete solution, I did some research about this issue, but I didn’t find the better solution, but you could submit the suggestions and ideas: http://visualstudio.uservoice.com/forums/121579-visual-studio. Microsoft engineers will evaluate them seriously, thanks for your understanding.

    Best Regards,


    Jack Zhai [MSFT]
    MSDN Community Support | Feedback to us

  • Freitag, 6. April 2012 08:46
     
     

    Thanks Jack,

    Can you please tell me what all settings you did because I have deploy IDE folder and when execute my Test Script using command it is throwing MSTEST has stopped working.

    Exception details mentioned below:

    Unhandled Exception : System.IO.FileNotFoundException : could not load file or assembly Microsoft.Visualstudio.QualityTools.Common.

  • Freitag, 6. April 2012 09:19
    Moderator
     
     

    Hi Sujay,

    Glad to receive your reply.

    Actually, you could get some information from the screen shot provided by me. I copy the whole IDE folder (in the path C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7) to a new folder (named “M”), for example in the path: C:\M.

    Then I run the cmd like the above screen shot. Then run it like these:

    cd C:\M\IDE   Enter

    MSTest /testcontainer: “…\bin\debug\XX.webtest”  Enter

    Since my computer installed the VS, I’m not very sure whether it could impact the MStest, but the test works. Hope it can help.

    Have a nice weekend,


    Jack Zhai [MSFT]
    MSDN Community Support | Feedback to us

  • Freitag, 6. April 2012 12:27
     
     Beantwortet

    Sujay,

    You would also need to register the copied dlls in the machine which is not having visual studio. See:

    -Tejas.

  • Montag, 9. April 2012 02:18
    Moderator
     
     

    Hi Tejas,

    Thank you for your friendly assistance.

    Hi Sujay,

    Any update? Could you get useful information from our replies?

    Would you mind letting us know the result of the suggestion?

    Best Regards,


    Jack Zhai [MSFT]
    MSDN Community Support | Feedback to us