What is the use of web_file function in LoadRunner? How to set path for file input elements in LoadRunner?

Please Like Us!!!

LoadRunner Interview Questions

Q: What is the use of web_file function in LoadRunner? How to set path for file input elements in LoadRunner?
A: web_file function is used to set the path for ‘FILE’ elements.

Syntax:
int web_file(stepname, …, DESCRIPTION, description arguments, ACTION, action arguments, [VERIFICATION, verification arguments,] LAST);

Example:
web_file(
“Step Name”,
DESCRIPTION,
“Name= testwebfile”, //Name of the FILE element in the form
ACTION,
“SetPath= C:\\Testwebfile.txt”,
LAST);

Reviews & Comments

Enjoy!

Be the first to comment

Leave a Reply

Your email address will not be published.