WinRunner: How to test if a link exists and is valid

WinRunner: How to test if a link exists and is valid

Use the web_link_valid command, then add some conditional logic to say whether or not the test passed.

# verify the link is valid

set_window(\"Default Menu\", 1);

yes = web_link_valid(\"YOUR PRODUCT APPLICATION\", valid);

if (yes == 0)

report_msg(\"link exists on page\");

else

report_msg(\"no link\");


By:UMANG
Date:2003-02-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