Class LayoutCheck

  • All Implemented Interfaces:
    eu.tsystems.mms.tic.testframework.common.PropertyManagerProvider

    public final class LayoutCheck
    extends java.lang.Object
    implements eu.tsystems.mms.tic.testframework.common.PropertyManagerProvider
    Utility class for handling layout checking screenshots.
    • Field Summary

      • Fields inherited from interface eu.tsystems.mms.tic.testframework.common.PropertyManagerProvider

        PROPERTY_MANAGER
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void assertScreenshot​(org.openqa.selenium.WebDriver webDriver, java.lang.String targetImageName, double confidenceThreshold)  
      static java.nio.file.Path getDir​(java.lang.String basePath)  
      static LayoutCheck.MatchStep matchPixels​(java.io.File screenshot, java.lang.String targetImageName)  
      static LayoutCheck.MatchStep matchPixels​(org.openqa.selenium.TakesScreenshot takesScreenshot, java.lang.String targetImageName)
      Matches image pixels and returns an absolute distance value
      static void toReport​(LayoutCheck.MatchStep step)  
      • Methods inherited from class java.lang.Object

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

      • getDir

        public static java.nio.file.Path getDir​(java.lang.String basePath)
      • matchPixels

        public static LayoutCheck.MatchStep matchPixels​(org.openqa.selenium.TakesScreenshot takesScreenshot,
                                                        java.lang.String targetImageName)
        Matches image pixels and returns an absolute distance value
      • matchPixels

        public static LayoutCheck.MatchStep matchPixels​(java.io.File screenshot,
                                                        java.lang.String targetImageName)
      • assertScreenshot

        public static void assertScreenshot​(org.openqa.selenium.WebDriver webDriver,
                                            java.lang.String targetImageName,
                                            double confidenceThreshold)