Let's say I have a record with 20 fields (web app): name, address, age, ... etc. And I enter a test case in MTM with those fields (with dummy test data):

@name in name field
@address in address field
@age in age field

If I open the web app that I'm testing, I would like to populate fields with the dummy data that I have prepared for some undetermined amount of iterations with the same fields, various data (action play). Is there a way to accomplish this using TFS (MTM)?

  • Are you asking that how to auto-fill the fields in web application with the test data present in you MTM test cases? Or you are asking about the manual execution of test cases?
    – Dhiman
    Oct 1, 2015 at 15:47
  • @Dhiman The latter. But, if you could answer both, it would be extremely helpful for me, as I am new to TFS (MTM). I'm used to Jira, but my new job uses TFS.
    – suffa
    Oct 1, 2015 at 15:51

1 Answer 1


First you need to create your test cases in MTM and enter values for the parameters in the Parameters section of the test cases (I guess this you have already achieved).

enter image description here

Now, you move to the 'Test' tab of your MTM and select the child tab 'Run Tests', add your test suite to be executed to this tab (if not already added). Then, when you click the 'Run' option then MTM will get changed to a side panel bar and will prompt for 'Starting Test' (as shown below), now you need to check the checkbox 'Create Action Recording' and navigate to the application in Internet Explorer (as per your test steps).

enter image description here

Your actions are being recorded for this test case, now copy the parameter 1 (like Firstname, by clicking on the parameter) and then enter it in its required field on the application Form. Once you do this, your Parameter '@Firstname' will automatically gets mapped with the 'First Name' field on the application form and it will show you a yellow sign (like shown for Database in front of the parameter name in execution panel as shown below).

enter image description here

Do this for all the 20 parameters you have and MTM will map then automatically and save your recording. Now, you can play back your actions for different type of test data using the 'Play' option and then MTM will insert test data in all 20 (mapped) fields automatically for the different combination of parameters as defined by you and will perform further actions as recorded.

enter image description here

This way you don't need to manually enter all test data parameter combinations and your test steps (actions) will get recorded and executed on run time.

you can refer these links (Link1 and Link2) for more details.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.