Run CodedUI from MTM 2013

霸气de小男生 提交于 2019-12-23 04:33:55

问题


I want to run a codedUI test case using MTM 2013

Here is what I already have so far:

  1. I have codedUI test cases to test my web application.

  2. The solution of these test cases has got nothing to do with my web application.

  3. Now I have few test cases written in MTM 2013 (initially for manual execution). Later I had plan to automate these Test Cases Using codedUI and associate these automated Test cases to MTM test cases so that I don't have to open VSTS to run my automated test cases. Also this may serve the purpose that any other tester can also execute them using MTM.

Here is all I have done so far:

  1. Installed and configured "Test Controller" in my TFS server.

  2. Installed "Test Agent" on the machine I want to execute the automated test cases.

  3. Created Physical Lab Environment successfully in MTM.

  4. Associated the codedUI automation with test cases in MTM.

Now when I go to play test case in MTM, it gives me an error "Cannot create automated test run. A build associated with the active test plan is required to submit an automated test run."

Can you please help me with this. This is the first time I am using MTM test cases to associate codedUI automated test cases.


回答1:


You need to assign a build to your test plan that contains your Coded UI tests. Otherwise, how does it know which version of your tests to run, and which version of your coded is being tested?

MSDN: http://msdn.microsoft.com/en-us/library/dd490760(v=vs.100).aspx




回答2:


Check the answers to following SO questions, they may help you to understand how it is working:

  • Couldn't run my test using Microsoft Test Manager
  • Attach Current Build to Test


来源:https://stackoverflow.com/questions/24145805/run-codedui-from-mtm-2013

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!