Class ScreenshotOnErrorStatement

java.lang.Object
org.junit.runners.model.Statement
com.onenetwork.platform.tools.test.ui.rule.ScreenshotOnErrorStatement

public class ScreenshotOnErrorStatement
extends org.junit.runners.model.Statement
Testing framework statement that instructs runners to take a screenshot whenever internal statement throws exception.
Since:
20.0
  • Constructor Summary

    Constructors 
    Constructor Description
    ScreenshotOnErrorStatement​(org.junit.runners.model.FrameworkMethod method, org.junit.runners.model.Statement test)  
    ScreenshotOnErrorStatement​(org.junit.runners.model.FrameworkMethod method, org.junit.runners.model.Statement test, boolean logBrokenAssumptions)  
  • Method Summary

    Modifier and Type Method Description
    void evaluate()  

    Methods inherited from class java.lang.Object

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

    • ScreenshotOnErrorStatement

      public ScreenshotOnErrorStatement​(org.junit.runners.model.FrameworkMethod method, org.junit.runners.model.Statement test, boolean logBrokenAssumptions)
    • ScreenshotOnErrorStatement

      public ScreenshotOnErrorStatement​(org.junit.runners.model.FrameworkMethod method, org.junit.runners.model.Statement test)
  • Method Details

    • evaluate

      public void evaluate() throws java.lang.Throwable
      Specified by:
      evaluate in class org.junit.runners.model.Statement
      Throws:
      java.lang.Throwable