Hi Disha, some of the benefits of using JUnit Error Collector are:
-
Junit error collector allows a test to continue even after the first issue is found and test fails at the end
-
Error collector collects all error objects and reports it only, after all, the test execution over
-
The benefit of adding all errors in an Error Collector is that you can verify all the errors at once
-
Error collector simply adds errors using method addError(throwable err) provided by ErrorCollector.java.
-
Test continuity and recovery handling is crucial to test automation success. Error Collector is the best way to handle such kind of scenarios.