For example I have code for test
@Test(dataprovider = "getData")
public void test(String data) {
//perform some action using 'data'
}
@DataProvider
public Object[][] getData(){
return new Object[][]{
{"One"},
{"Two"},
{"Three"},
{"Four"},
{"Five"}
};
}
For example test with data {"Three"} will be failed. I need that tests for {"Four"}, {"Five"} will skipped or failed(if {"Three"} was failed). How can I do that? Thanks.
Aucun commentaire:
Enregistrer un commentaire