mercredi 27 décembre 2017

Junit testing - Actions for every test. How to minimize code?

I really didn't know how to describe it better in the title, but here it is explained:

I want to write tests for a Rest Api. Meaning: I log into the server for every test, run my call and log out. It would be way less code and more efficient, if I could somehow log into the server at the beginning of the test, do all my calls (still in seperate tests though) and then log out.

Is there a smart way to do this?

Thanks for every reply!

Aucun commentaire:

Enregistrer un commentaire