Posts

Showing posts with the label coded-ui-tests

Data driven coded UI test with excel file as a data source

Data driven coded UI test with excel file as a data source I built a coded UI test and I want to make it a data driven test , I want to get the data from an excel file ( Data.xls )located in the same directory with the project files, I used this line as shown in the MSDN site , but it didnt work , what changes should I do to the line ? [DataSource("System.Data.Odbc", "Dsn=Excel Files;Driver={Microsoft Excel Driver (*.xls)};dbq=|DataDirectory|\Data.xls;defaultdir=.;driverid=790;maxbuffersize=2048;pagetimeout=5;readonly=true", "Sheet1$", DataAccessMethod.Sequential), TestMethod] thank you Providing the error message you get will help us answer your question. – Eric Scherrer Apr 24 '14 at 12:38 @EricScherrer The unit test adapter failed to connect to the data source or...