Performing Visual Testing using Pre-build Command
Steps to get imageID:
- Import javaconnector, you can refer to this link to import
Note: Uploaded image should be in .png format
- Use the below mentioned function to get the ImageID of the uploaded image
Using the above function user will get the ImageID of the Base image and second image (that is used for visual analysis)
Let's see how to use Pre-build commands for visual analysis
- To compare and find the difference between two images
Eg.
- To get all the text present in an image
Eg.
- Command to verify if any word exists or not in an image
- Command to find the “coordinates” of a word
Eg.