I currently have a test suite using Nunit and C# with Selenium WebDriver using assertions, is there a way to have a function run only if the assertion fails. Normally this will continue to the teardown and then proceed to the next test, however I need to reset certain parameters on the test if the previous test fails. What is the best way to do this?
Aucun commentaire:
Enregistrer un commentaire