How do we write a user-defined function in loadrunner?

Answer Posted / sushma

1)First we need to write user defined function in note pad
Save it as .h file
Include the file path in global.h
Eg. #include "f:\ user_fun.h"
2) Add the code directly in global.h and use it where ever u required
3) we can add extra file . By r. Click on extra files and create new or add new file to script. We have to add file and the include the file in global.h

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How you set maximum number of vuser that a host can run?

851


What is run-time-setting?

852


What is pause command?

873


What is elapsed time in load runner?

821


How does loadrunner execute a performance scenario?

851


What are the process for developing a vuser script?

853


In a web server, database and network are all working fine and now, where could be the problem?

806


What are the different components of loadrunner?

808


What is manual correlation?

843


How to upload media use loadrunner? I record the script but it fail because the top of document is invalidation.How to solve the problem?Which one know the answer please tell me. Thanks!

2211


How do you enable text and image checks in vugen?

855


How you load a loadrunner agent?

915


What is the configuration of systems when using load runner?

752


How to configure yahoo cookies in load runner?

2641


What is loadrunner api function?

832