LoadRunner Interview Questions
Q: What is Image Check or Image Checkpoint in Vugen or LoadRunner?
A: Vugen allows to add a user-defined check that searches for an image on a web page during the run. This can be done by using function web_image_check. The web_image_check function verifies the presence of a specified image inside an HTML page.
Below is the syntax of web_image_check:
web_image_check(“name”,”attributes of the image properties”, LAST);
The image properties that can be verified are Alt and Src.
Example:
web_image_check(“ImageCheck”, “Alt=logo”, LAST );
In the above example web_image_check function searches for Alt text ‘logo’.
web_image_check(“ImageCheck”, “Alt=logo”,”Src=images/logo.jpg” LAST );
In the above example web_image_check function searches for Alt text ‘logo’ and Src text ‘images/logo.jpg’.