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
Post a Comment