Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. boolean imageCompare(String imgName1, String imgName2, int compatibility, boolean showResult*)
  2.  
  3. This command compares two images and returns true if comparison result meets compatibility requirement. Otherwise it returns false. Image files should be in project's res directory, when running on UI. When running stp_engine.jar, image files should be in res directory at current location or in res directory at location specified by python user (wiht help of -p parameter). Only png files are taken into consideration.
  4.  
  5. imgName1 first image name to compare
  6. imgName2 second image name to compare
  7. compatibility requirement (percentage), that images comparison should meet
  8. showResult - True if you want to see tests-step info in Result View window, False if you don't want.
  9.  
  10. *Parameter is optional, default sets to True.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement