Quantcast
Channel: All LoadRunner Practitioners Forum posts
Viewing all articles
Browse latest Browse all 12134

Error handling for image check

$
0
0

Hi All

 

As we do error handling for text check (web_reg_find()), kindly guide me how to to error handling for web_image_check().

Error handling for text check :

 

web_reg_find("Text=<text to check>", "SaveCount=TextCheckLogin", LAST);

 

if(atoi(lr_eval_string("{TextCheckLogin}"))>0)
    {
        lr_output_message("Successful Login");
    }
    else
    {
        lr_error_message("Login Failed");
        return(0);
    }

 

 

Is there any way for error handling in image check?

 

web_image_check("ImageCheck", "Src=images/hp_logo.png", LAST);

 


Viewing all articles
Browse latest Browse all 12134


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>