I have about 100 forms I want to upload to a server and check the result. But I want to run all the 100 forms even if one fails. If I do this in a loop and assert each time, that Response is 201, that would abort.
And I dont want to write 100 test methods for archieving that, so what can I do?
I was thinking about something like
@SmallTest
public void testForm(Form form) {
int result = uploadForm(form);
assertSame(result, 201); //=created
}
but how could I call that method?
Aucun commentaire:
Enregistrer un commentaire