Image Comparison using aShot Keywords FREE

The plugin provide custom keywords to take screen shots with different options, baseline images and compare images or get difference ratio between them.

1.6K
  1. Purpose The plug-in provide custom keywords to take screen shots with different options: normal mode, full page of the current web site, take screen shots and scale images according to device pixel ratio or cut off header & footer and take screen shots of web element(s). Based on taken screen shots and baseline images, we can compare images or get difference ratio between them

  2. Usage examples 'Take screenshot of the page within screen size' CustomKeywords.'kms.turing.katalon.plugins.visualtesting.ScreenCapture.takeScreenshot'('fullscreen.png', FailureHandling.OPTIONAL)

'Take screenshot of the page within screen size and cut header and footer' CustomKeywords.'kms.turing.katalon.plugins.visualtesting.ScreenCapture.takeCuttingScreenshot'('cutting_screen.png',100, 50, FailureHandling.OPTIONAL)

'Take screenshot of the page within screen size and scale image according to dpr' CustomKeywords.'kms.turing.katalon.plugins.visualtesting.ScreenCapture.takeScalingScreenshot'('scaling_screen.png',2 , FailureHandling.OPTIONAL)

'Take screenshot of the full page' CustomKeywords.'kms.turing.katalon.plugins.visualtesting.ScreenCapture.takeEntirePageScreenshot'('fullpage_screen.png', FailureHandling.OPTIONAL)

'Take screenshot of the logo' CustomKeywords.'kms.turing.katalon.plugins.visualtesting.ScreenCapture.takeWebElementScreenshot'(ObjectRepository.findTestObject('Object Repository/Cambridge/img_Logo'), filename, 10, FailureHandling.OPTIONAL) 'Baseline the image' CustomKeywords.'kms.turing.katalon.plugins.visualtesting.ScreenCapture.baselineImage'(filename, baselineDir, FailureHandling.OPTIONAL)

'Compare logo is matched the baselined image' CustomKeywords.'kms.turing.katalon.plugins.visualtesting.ImageComparison.verifyMatchBaseline'(filename, baselineDir, FailureHandling.CONTINUEONFAILURE)

'Compare logo is matched the another image' CustomKeywords.'kms.turing.katalon.plugins.visualtesting.ImageComparison.areMatched'(baselineDir + "\" + filename, screenshotDir + "\" + filename, FailureHandling.CONTINUEONFAILURE)

'Get difference ratio of two images' def ratio = CustomKeywords.'kms.turing.katalon.plugins.visualtesting.ImageComparison.getDifferenceRatio'(baselineDir + "\" + filename, screenshotDir + "\" + filename, FailureHandling.CONTINUEONFAILURE) println ratio

Visit Katalon Forum for Plugin related discussions.

2.5
2 Rating(s)
Loc Nguyen
September 9, 2020

Firstly, before using the keyword, I read the document and note to know how to use the keyword. However, it provided me incorrect syntax: CustomKeywords.'kms.turing.katalon.plugins.visualtesting.ImageComparison.verifyMatchBaseline'(filename, baselineDir, FailureHandling.CONTINUEONFAILURE). May be there is some mistake when typing but I worried about how we validate this keyword before providing to the communitee

Ren
December 16, 2019

Whenever I install this plugin and then run a test case (whether I use a command or Not) chromedriver, actuall all webdrivers instantly fail. So test starts and immediately terminates. I am not sure if this plugin is causing it. However other plugins that are installed do not immediately cause this error. When I uninstall this plugin everything works fine

API keys are required in Katalon Studio Commandline Execution. Generate Key
Information
Project details
Version
1.0.0
Type
Custom Keywords Plugin
Last updated
May 15, 2019 12:24 am
Publisher
Privacy and License Agreement