enhancement request to support data driven from excel

19 views
Skip to first unread message

tk

unread,
Mar 13, 2011, 9:09:36 PM3/13/11
to MbUnit.Dev
Hi

From this link it looks like there is no support to datadrive from
excel sheet.
http://www.gallio.org/wiki/doku.php?id=mbunit:data-driven_testing:external_data_sources

It is tough to maintain data in csv files. It would be easy to
maintain data in sheets in a single workbook.

Thanks
TK

Jeff Brown

unread,
Mar 19, 2011, 3:41:16 AM3/19/11
to mbun...@googlegroups.com, tk
It should be possible to implement a subclass of DataPatternAttribute or DataAttribute that loads data from a database or Excel spreadsheet.

It shouldn't be too hard, actually.

You could perhaps throw something together based on RowAttribute.cs using OleDbDataAdapter or maybe a third party .Net library for reading Excel spreadsheets.

Don't dismiss [CsvData] out of hand though.  It's pretty powerful.  CSV spreadsheets can be loaded into Excel just like ordinary worksheets.

Jeff.


--
You received this message because you are subscribed to the Google Groups "MbUnit.Dev" group.
To post to this group, send email to mbun...@googlegroups.com.
To unsubscribe from this group, send email to mbunitdev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mbunitdev?hl=en.


Reply all
Reply to author
Forward
0 new messages