How can we Winrunner testscript for checking all the links at a time?

How can we Winrunner testscript for checking all the links at a time?

location = 0;

set_window(\"ourWindow\",8);


while(obj_exists((link = \"{class: object,MSW_class:

html_text_link,location: \"& location & \"}\"))== E_OK)

{

obj_highlight(link);   

web_obj_get_info(link,\"name\",name);

web_link_valid(link,valid);

if(valid)

      tl_step(\"Check web link\",PASS,\"Web link

       \"\" && name && \"\" is valid.\");

    else

      tl_step(\"Check web link\",FAIL,\"Web link \"\"

       && name && \"\" is not valid.\");

 location++;

}



By:UMANG
Date:2029-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related TESTING Subjective Links

TESTING Subjective interview questions and answers for experienced and fresher