MSTEST installtion without even installing VSTS2010
-
2012年4月3日 下午 02: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
所有回覆
-
2012年4月4日 上午 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
-
2012年4月4日 上午 04:10Thanks 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?
-
2012年4月5日 上午 07:04版主
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
- 已標示為解答 Jack Zhai - MSFTMicrosoft Contingent Staff, Moderator 2012年4月11日 上午 07:44
-
2012年4月6日 上午 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.
-
2012年4月6日 上午 09:19版主
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
-
2012年4月6日 下午 12:27
Sujay,
You would also need to register the copied dlls in the machine which is not having visual studio. See:
- Executing visual studio 2010 unit tests without installing visual studio
- Executing visual studio unit tests without installing visual studio
-Tejas.
- 已提議為解答 TejasJ 2012年4月9日 上午 04:57
- 已標示為解答 Jack Zhai - MSFTMicrosoft Contingent Staff, Moderator 2012年4月11日 上午 07:44
-
2012年4月9日 上午 02:18版主
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

