Can I Make Setup and Teardown Methods Fail?
BackingPeck路3 months agoWhy would you want them to fail? But yeah, you can make them fail by inducing an error intentionally.
Win gift cards by playing fun games on Playbite!
Playbite
500k winners and counting...
More Answers
Yup, causing a failure in setup or teardown just needs to trigger an error. I've done this while debugging my test scripts.
Totally! Just add faulty code in those methods and watch the chaos ensue. Been there, done that!
Absolutely, just throw an exception in your setup or teardown methods. It's like a bug's best friend!
馃憖 If you like Teardown...
Diego路3 hours agoThe brands referenced on this page are not sponsors of the rewards or otherwise affiliated with this company. The logos and other identifying marks attached are trademarks of and owned by each represented company and/or its affiliates. Please visit each company's website for additional terms and conditions.
People also want to know
Add an Answer