Object ImageHelper

  • All Implemented Interfaces:

    
    public class ImageHelper
    
                        

    Статический класс с методами сравнения скриншотов

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static ImageHelper INSTANCE
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • compareScreenshots

         final static Unit compareScreenshots(File file1, File file2, String message, Boolean needFail, Color color)

        Метод сравнения скриншотов

        Parameters:
        file1 - Первый скриншот
        file2 - Второй скриншот
        message - По умолчанию null.
        needFail - По умолчанию true.
        color - По умолчанию Color.RED.
      • compareScreenshots

         final static Unit compareScreenshots(File file1, File file2, String message, Boolean needFail)

        Метод сравнения скриншотов

        Parameters:
        file1 - Первый скриншот
        file2 - Второй скриншот
        message - По умолчанию null.
        needFail - По умолчанию true.
      • compareScreenshots

         final static Unit compareScreenshots(File file1, File file2, String message)

        Метод сравнения скриншотов

        Parameters:
        file1 - Первый скриншот
        file2 - Второй скриншот
        message - По умолчанию null.
      • compareScreenshots

         final static Unit compareScreenshots(File file1, File file2)

        Метод сравнения скриншотов

        Parameters:
        file1 - Первый скриншот
        file2 - Второй скриншот