Class Screenshot


  • public final class Screenshot
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Screenshot()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void upload​(byte[] screenshot, java.lang.Long capturedAtMillis)
      Sends screenshot captured in scope of current test execution to Zebrunner.
      • Methods inherited from class java.lang.Object

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

      • Screenshot

        public Screenshot()
    • Method Detail

      • upload

        public static void upload​(byte[] screenshot,
                                  java.lang.Long capturedAtMillis)
        Sends screenshot captured in scope of current test execution to Zebrunner. Captured at timestamp accuracy matters - it is strongly recommended to explicitly set this value. If null is provided - it will be generated automatically
        Parameters:
        screenshot - screenshot bytes
        capturedAtMillis - unix timestamp representing a moment in time when screenshot got captured in milliseconds