TestNG : ExpectedException when using actory annotation
TestNG : ExpectedException when using actory annotation
I have a testNG suite which has to run against multiple data sets. In case of some datasets the test method is expected to throw an exception while in others, a result is expected. I am using @Factory annotation to add parameters for the different data sets and the expected outputs. Is there a way to conditionally add the expectedExceptions ? I know one way is to just add a try catch and throw…
View On WordPress












