I have Visual Studio web test attached nicely to a data source, but I need to be able to iterate over each entry in the data source. How should I do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This article seems to Discuss something quite like what you’re talking about. Good luck. Ola
EDIT: From the linked article, your DataSource is exposed to your test via an attribute.
There are several other DataSources you can link to, for example CSV, or even Parameters of a Test Case in TFS. Be sure to include the
DataAccessMethod.Sequential. If there are multiple rows in the table indicated by theDataSourceAttribute, then each test run will haveTestContext.DataRowpointing to the current row/iteration for the test.