java.lang.Object
com.github.invictum.reportportal.log.unit.Error

public class Error extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Function<net.thucydides.core.model.TestStep,Collection<com.epam.ta.reportportal.ws.model.log.SaveLogRQ>>
    Logs error in step using default error formatter - print error with full stack trace
    static Function<net.thucydides.core.model.TestStep,Collection<com.epam.ta.reportportal.ws.model.log.SaveLogRQ>>
    configuredStepError(Function<net.thucydides.core.model.TestStep,String> errorFormatter)
    Logs error using preconfigured Function representation of formatter
    static Function<net.thucydides.core.model.TestOutcome,Collection<com.epam.ta.reportportal.ws.model.log.SaveLogRQ>>
    configuredTestError(Function<net.thucydides.core.model.TestOutcome,String> errorFormatter)
    Logs error using preconfigured Function representation of formatter
    static Function<net.thucydides.core.model.TestOutcome,Collection<com.epam.ta.reportportal.ws.model.log.SaveLogRQ>>
    Logs error in test (outside of a step) using default error formatter - print error with full stack trace

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Error

      public Error()
  • Method Details

    • configuredStepError

      public static Function<net.thucydides.core.model.TestStep,Collection<com.epam.ta.reportportal.ws.model.log.SaveLogRQ>> configuredStepError(Function<net.thucydides.core.model.TestStep,String> errorFormatter)
      Logs error using preconfigured Function representation of formatter
    • configuredTestError

      public static Function<net.thucydides.core.model.TestOutcome,Collection<com.epam.ta.reportportal.ws.model.log.SaveLogRQ>> configuredTestError(Function<net.thucydides.core.model.TestOutcome,String> errorFormatter)
      Logs error using preconfigured Function representation of formatter
    • basic

      public static Function<net.thucydides.core.model.TestStep,Collection<com.epam.ta.reportportal.ws.model.log.SaveLogRQ>> basic()
      Logs error in step using default error formatter - print error with full stack trace
    • errorInTest

      public static Function<net.thucydides.core.model.TestOutcome,Collection<com.epam.ta.reportportal.ws.model.log.SaveLogRQ>> errorInTest()
      Logs error in test (outside of a step) using default error formatter - print error with full stack trace