Question

I have a coded UI project and i have done the hard way of creating recording via code completely avoiding recording part.

Now what i want to do is to use this recording as test case created in windows test manager

Is it possible , if so can anyone pls help me?

Was it helpful?

Solution

To have the recorded test method used when executing the test via MTM, you'll have to associate the automation with the test case TFS work item. This is done by opening the work item, clicking on the "Associated Automation" tab, navigating to the test solution's dll, and then selecting the appropriate test method from the drop down list. At that time, you'll see the "Automation Status" field of the test case change from Not Automated or Planned to Automated. When you save the work item and go back to your test plan, assuming you've set up your test environment correctly (VS Test Controller, VS Test Agents), you should be able to right click on the test and select "Run" to have the MS Test engine run through your code.

I wrote a more detailed description of it here (complete with pretty screen shots). Hope this helps.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top