Coded UI Automation Testing Walkthrough : Data Parameterization from CSV File

Now we will externalize data from a csv file in the following unit. Just create a csv file using excel sheet as is mentioned below. Though the file location is not at all a point of concern, yet we can avoid the same by keeping it in the project directory itself just in case the same project needs to be run from some other machine, the debug still works well.

Some Related posts on Coded UI Testing using VSTS :


Yeah we have created a csv file and have linked it up from the CodedUiTest file, via Test view. Right click to click its properies and follow up.

Now the automated script has been data driven in the true sense , and now if you change the userid and password in the csv file, the script will log you into the respective accounts.


  1. Great post. Can we do the same with an Msaccess database file as well.

  2. Hi Renu,
    Have a look at the below URL