« Return to Thread: Can DataProvider model handle this scenario?

Can DataProvider model handle this scenario?

by threecuptea :: Rate this Message:

Reply to Author | View in Thread

If I have three different set of data defined in DataProvider and I expect to get the following result:
Data A : execute successfully
Data B : will get exception ex1
Data C : will get exception ex2

I won't be able to write one generic test using the above data provider, will I?    I have to write three separate tests with expectedException value hard coded.  DataProvider model won't help in this scenario.  Will it?

 « Return to Thread: Can DataProvider model handle this scenario?