com.atlassian.selenium.visualcomparison.utils
Class ScreenshotDiff

java.lang.Object
  extended by com.atlassian.selenium.visualcomparison.utils.ScreenshotDiff

public class ScreenshotDiff
extends Object


Constructor Summary
ScreenshotDiff(Screenshot oldScreenshot, Screenshot newScreenshot, String id, ScreenResolution resolution, BufferedImage diffImage, ArrayList<BoundingBox> boxes, List<BoundingBox> ignoreAreas)
           
 
Method Summary
 Collection<PageDifference> getDifferences()
           
static String getImageOutputDir(String outputDir, String imageSubDir)
           
 boolean hasDifferences()
           
static String relativePath(File file, String relativeRoot)
           
 void writeDiffReport(String outputDir, String imageSubDir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScreenshotDiff

public ScreenshotDiff(Screenshot oldScreenshot,
                      Screenshot newScreenshot,
                      String id,
                      ScreenResolution resolution,
                      BufferedImage diffImage,
                      ArrayList<BoundingBox> boxes,
                      List<BoundingBox> ignoreAreas)
Method Detail

getDifferences

public Collection<PageDifference> getDifferences()

hasDifferences

public boolean hasDifferences()

getImageOutputDir

public static String getImageOutputDir(String outputDir,
                                       String imageSubDir)

relativePath

public static String relativePath(File file,
                                  String relativeRoot)

writeDiffReport

public void writeDiffReport(String outputDir,
                            String imageSubDir)
                     throws Exception
Throws:
Exception


Copyright © 2014 Atlassian. All rights reserved.