c# - Reading specific data row from CSV file using Coded UI -


here's example of problem looking solve:

i have csv file 2 columns (username, password) , 10 rows (different username , password).

my goal have first test method use first username/ password combination, 2nd test method uses 2nd row , on. right now, if run tests, first test method uses 10 rows of data.

is there way me restrict test method read specific row(say row 1) in csv file? using testcontext.datarow["username"].tostring() now. think way test cases run in coded ui, automatically runs 10 times.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -