Performing Visual Testing using Pre-build Command
Steps to get imageID:
Step 1 - Import javaconnector, you can refer to this link to import
Note - Uploaded image should be in .png format
Step 2 - 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
1. To compare and find the difference between two images
|
Eg.
|
2. To get all the text present in an image
|
Eg.
|
3. Command to verify if any word exists or not in an image
|
|
4. Command to find the “coordinates” of a word
|
Eg.
|