Package com.codeborne.selenide.logevents
Class ErrorsCollector
- java.lang.Object
-
- com.codeborne.selenide.logevents.ErrorsCollector
-
- All Implemented Interfaces:
LogEventListener
@ParametersAreNonnullByDefault public class ErrorsCollector extends java.lang.Object implements LogEventListener
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLISTENER_SOFT_ASSERT
-
Constructor Summary
Constructors Constructor Description ErrorsCollector()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterEvent(LogEvent event)voidbeforeEvent(LogEvent currentLog)voidfailIfErrors(java.lang.String testName)1.static voidvalidateAssertionMode(Config config)
-
-
-
Field Detail
-
LISTENER_SOFT_ASSERT
public static final java.lang.String LISTENER_SOFT_ASSERT
- See Also:
- Constant Field Values
-
-
Method Detail
-
afterEvent
public void afterEvent(LogEvent event)
- Specified by:
afterEventin interfaceLogEventListener
-
beforeEvent
public void beforeEvent(LogEvent currentLog)
- Specified by:
beforeEventin interfaceLogEventListener
-
failIfErrors
public void failIfErrors(java.lang.String testName)
1. Clears all collected errors, and 2. throws SoftAssertionError if there were some errors- Parameters:
testName- any string, usually name of current test
-
validateAssertionMode
public static void validateAssertionMode(Config config)
-
-