Tuesday, November 12, 2019

JAVA Selenium Visual Testing


Motivation

Visual Testing is convenient, let you find any change of a web page in one line.

Prerequisites

You probably will want to view the articles in this blog below before reading this article

JAVA Selenium Browser Automation Getting Started

JAVA Selenium Commands Testing

JAVA Image Basic Operations

Java Diff Image and Highlight Differences

Simple Note

Testing file VisualTessting.java

Visual Testing Implementation VisualTestingImpl.java

After the testing file is executed, you should find some images in the folder selenium/visualTesting/123456 under your project folder.

References

Converting BufferedImage to ByteBuffer

How to make a hashcode(integer value) positive

How to take Re-entrant lock on String value?

1 comment: